mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix for random_intervals and other tools using bx.intervals.io.GenomicIntervalReader.
Header lines are no longer requested.
This commit is contained in:
@@ -109,7 +109,7 @@ def main():
|
||||
#set up length and number of regions to mimic
|
||||
regions = [ [] for i in range(len(bounds)) ]
|
||||
|
||||
for region in bx.intervals.io.GenomicIntervalReader( open(intervals_fname, 'r' ), chrom_col=interval_chr, start_col=interval_start, end_col=interval_end, strand_col=interval_strand, fix_strand=True):
|
||||
for region in bx.intervals.io.GenomicIntervalReader( open(intervals_fname, 'r' ), chrom_col=interval_chr, start_col=interval_start, end_col=interval_end, strand_col=interval_strand, fix_strand=True, return_header=False):
|
||||
#loop through bounds, find first proper bounds then add
|
||||
#if an interval crosses bounds, it will be added to the first bound
|
||||
for i in range(len(bounds)):
|
||||
|
||||
Reference in New Issue
Block a user