Current behavior of tools reading BED file typically crashes out if the BED parser encounters an unexpected number of tokens as is often the case for # "comment" lines and track name=... comment lines. We don't want it to crash out and ignore these comment lines instead
See examples:
https://genome.ucsc.edu/FAQ/FAQformat.html#format1
browser position chr7:127471196-127495720
browser hide all
track name="ItemRGBDemo" description="Item RGB demonstration" visibility=2 itemRgb="On"
chr7 127471196 127472363 Pos1 0 + 127471196 127472363 255,0,0
chr7 127472363 127473530 Pos2 0 + 127472363 127473530 255,0,0
chr7 127473530 127474697 Pos3 0 + 127473530 127474697 255,0,0
...
Add support to skip lines beginning with browser, track, or # when reading BED files. No need to copy these headers when writing to BED files.
Affected Tools:
...check for others I may have missed in this list.
Current behavior of tools reading BED file typically crashes out if the BED parser encounters an unexpected number of tokens as is often the case for
#"comment" lines andtrack name=...comment lines. We don't want it to crash out and ignore these comment lines insteadSee examples:
https://genome.ucsc.edu/FAQ/FAQformat.html#format1
Add support to skip lines beginning with
browser,track, or#when reading BED files. No need to copy these headers when writing to BED files.Affected Tools:
...check for others I may have missed in this list.