Skip to content

Commit

Permalink
Handle input BED files for conversion to interval lists
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanb committed Nov 1, 2010
1 parent 3dc7d9f commit d33dffb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nextgen/scripts/utils/sort_gatk_intervals.py
Expand Up @@ -39,7 +39,10 @@ def read_intervals(in_handle):
if len(parts) == 1:
chr_name, loc = parts[0].split(":")
start, end = loc.split("-")
yield [chr_name, start, end, "+", "interval_%s" % i]
yield (chr_name, start, end, "+", "interval_%s" % i)
elif len(parts) == 6:
chr_name, start, end, strand, name, _ = parts
yield (chr_name, start, end, strand, name)
elif len(parts) == 5:
yield parts
else:
Expand Down

0 comments on commit d33dffb

Please sign in to comment.