commit/galaxy-central: jgoecks: Add data placeholders so that BED files without all optional fields can be dynamically filtered.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/863e1150c85b/ changeset: 863e1150c85b user: jgoecks date: 2012-08-22 20:42:05 summary: Add data placeholders so that BED files without all optional fields can be dynamically filtered. affected #: 1 file diff -r 931382e567f501ff8529cdd3c7b45c2d08d0ab23 -r 863e1150c85b7383a1b136c9b3c9376da81bc16b lib/galaxy/visualization/tracks/data_providers.py --- a/lib/galaxy/visualization/tracks/data_providers.py +++ b/lib/galaxy/visualization/tracks/data_providers.py @@ -484,6 +484,11 @@ # Score (filter data) if length >= 5 and filter_cols and filter_cols[0] == "Score": + # If dataset doesn't have name/strand/thick start/thick end/blocks, + # add placeholders. There should be 8 entries if all attributes + # are present. + payload.extend( [ None for i in range( 8 - len( payload ) ) ] ) + try: payload.append( float( feature[4] ) ) except: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket