Skip to content

Commit

Permalink
do not use keep order
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Apr 11, 2024
1 parent 26d5eaf commit d3ea126
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dataset_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def collect_reads_in_parallel(sample, chr_id, args):
tmp_printer = TmpFileAssignmentPrinter(save_file, args)
bam_files = list(map(lambda x: x[0], sample.file_list))
bam_file_pairs = [(pysam.AlignmentFile(bam, "rb", require_index=True), bam) for bam in bam_files]
gffutils_db = gffutils.FeatureDB(args.genedb, keep_order=True) if args.genedb else None
gffutils_db = gffutils.FeatureDB(args.genedb) if args.genedb else None
illumina_bam = sample.illumina_bam

logger.info("Processing chromosome " + chr_id)
Expand Down Expand Up @@ -210,7 +210,7 @@ def construct_models_in_parallel(sample, chr_id, dump_filename, args, read_group
return EnumStats(read_stat_file), EnumStats(transcript_stat_file)

if args.genedb:
gffutils_db = gffutils.FeatureDB(args.genedb, keep_order=True)
gffutils_db = gffutils.FeatureDB(args.genedb)
else:
gffutils_db = None
aggregator = ReadAssignmentAggregator(args, sample, read_groups, gffutils_db, chr_id)
Expand Down Expand Up @@ -364,7 +364,7 @@ def __init__(self, args):

if args.genedb:
logger.info("Loading gene database from " + self.args.genedb)
self.gffutils_db = gffutils.FeatureDB(self.args.genedb, keep_order=True)
self.gffutils_db = gffutils.FeatureDB(self.args.genedb)
else:
self.gffutils_db = None

Expand Down

0 comments on commit d3ea126

Please sign in to comment.