Skip to content

Commit

Permalink
fix temporary assert
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Apr 3, 2024
1 parent fdb32bf commit 6c34070
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/graph_based_model_construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ def process(self, read_assignment_storage):
self.assign_reads_to_models(read_assignment_storage)
self.forward_counts()

if len(set([x.read_id for x in read_assignment_storage])) != len(self.read_assignment_counts):
# FIXME: remove asserts below
if self.transcript_model_storage and len(set([x.read_id for x in read_assignment_storage])) != len(self.read_assignment_counts):
logger.warning("Some reads were not assigned %d %d" % (len(set([x.read_id for x in read_assignment_storage])), len(self.read_assignment_counts)))

# FIXME: remove asserts below
if any(value < 0 for value in self.read_assignment_counts.values()):
logger.warning("Negative values in read assignment counts")

Expand Down Expand Up @@ -396,7 +397,7 @@ def construct_fl_isoforms(self):
# 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:
logger.info("Avoiding unreliable transcript with %d exons (strand cannot be detected)" % len(novel_exons))
logger.debug("Avoiding unreliable transcript with %d exons (strand cannot be detected)" % len(novel_exons))
pass
else:
if self.params.use_technical_replicas and \
Expand Down

0 comments on commit 6c34070

Please sign in to comment.