Fix for random_intervals and other tools using bx.intervals.io.GenomicIntervalReader.

Header lines are no longer requested.
This commit is contained in:
Daniel Blankenberg
2007-07-02 15:28:46 +00:00
parent f29aa679d2
commit 78a71d31e3
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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)):