Skip to content

Commit

Permalink
do not print . transcripts
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Sep 13, 2023
1 parent b1fc217 commit 71b652f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions isoquant.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ def add_hidden_option(*args, **kwargs): # show command only with --full-help

parser.add_argument('--check_canonical', action='store_true', default=False,
help="report whether splice junctions are canonical")
add_additional_option("--keep_noncanonical", help="report transcripts for which the strand cannot be detected "
"using canonical splice sites",
action='store_true', default=False)
parser.add_argument("--sqanti_output", help="produce SQANTI-like TSV output",
action='store_true', default=False)
parser.add_argument("--count_exons", help="perform exon and intron counting", action='store_true', default=False)
Expand Down
9 changes: 7 additions & 2 deletions src/graph_based_model_construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,14 @@ def construct_fl_isoforms(self):
#logger.debug("uuu Novel isoform %s has coverage: %d cutoff = %d, component cov = %d, max_coverage = %d"
# % (new_transcript_id, count, novel_isoform_cutoff, component_coverage, self.intron_graph.max_coverage))
if count < novel_isoform_cutoff:
pass #logger.debug("uuu Novel isoform %s has low coverage: %d\t%d" % (new_transcript_id, 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 (not polya_site or transcript_ss_strand == '.'):
pass #logger.debug("uuu Avoiding single intron %s isoform: %d\t%s" % (new_transcript_id, count, str(path)))
# 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.keep_noncanonical:
logger.info("Avoiding unreliable transcript with %d exons" % len(novel_exons))
pass
else:
if self.params.use_technical_replicas and \
len(set([a.read_group for a in self.path_storage.paths_to_reads[path]])) <= 1:
Expand Down

0 comments on commit 71b652f

Please sign in to comment.