Skip to content

Commit

Permalink
fix SS strand filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Apr 9, 2024
1 parent 891f346 commit 6117cff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dataset_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def process_assigned_reads(self, sample, dump_filename):
reverse=True
)
logger.info("Processing assigned reads " + sample.prefix)
logger.info(" Transcript models construction is turned %s" %
logger.info("Transcript models construction is turned %s" %
("off" if self.args.no_model_construction else "on"))

# set up aggregators and outputs
Expand Down
3 changes: 2 additions & 1 deletion src/graph_based_model_construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def construct_fl_isoforms(self):
if count < novel_isoform_cutoff:
# logger.debug("uuu Novel isoform %s has low coverage: %d\t%d" % (new_transcript_id, count, novel_isoform_cutoff))
pass
elif len(novel_exons) == 2 and self.params.require_monointronic_polya and not polya_site:
elif (len(novel_exons) == 2 and
((self.params.require_monointronic_polya and not polya_site) or transcript_ss_strand == '.')):
# logger.debug("uuu Avoiding single intron %s isoform: %d\t%s" % (new_transcript_id, count, str(path)))
pass
elif transcript_strand == '.' and not self.params.report_unstranded:
Expand Down

0 comments on commit 6117cff

Please sign in to comment.