Skip to content

Commit

Permalink
Add column names to BED datatype so that column names are displayed i…
Browse files Browse the repository at this point in the history
…n dataset viewer.
  • Loading branch information
jgoecks committed Aug 15, 2016
1 parent 0dee019 commit 78c58f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/datatypes/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ class Bed( Interval ):
data_sources = { "data": "tabix", "index": "bigwig", "feature_search": "fli" }
track_type = Interval.track_type

column_names = [ 'Chrom', 'Start', 'End', 'Name', 'Score', 'Strand', 'ThickStart', 'ThickEnd', 'ItemRGB', 'BlockCount', 'BlockSizes', 'BlockStarts' ]

"""Add metadata elements"""
MetadataElement( name="chromCol", default=1, desc="Chrom column", param=metadata.ColumnParameter )
MetadataElement( name="startCol", default=2, desc="Start column", param=metadata.ColumnParameter )
Expand Down

0 comments on commit 78c58f0

Please sign in to comment.