Skip to content

Commit cc81a28

Browse files
committed
gene_caller: Try further exon ends for short invalid exons
1 parent 0ba7714 commit cc81a28

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/geneml/gene_caller.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,10 @@ def recurse(results: list[list[GeneEvent]], events: list[GeneEvent], i: int, gen
273273
continue
274274
if exon_size > params.max_exon_size:
275275
return num_ops # Further exon ends make the exon even longer
276-
if not check_exon_validity(preds, exon_start, exon_end,
277-
min_avg_exon_score=0.05, max_intron_score=0.9):
278-
return num_ops # Further exon ends are also expected to be inconsistent
276+
if not check_exon_validity(preds, exon_start, exon_end):
277+
if exon_end - exon_start <= 20:
278+
continue # Short exons may be false positives, try further exon ends
279+
return num_ops # Further ends are likely invalid too
279280

280281
# Build CDS incrementally - extract current exon sequence
281282
exon_seq = seq[exon_start:exon_end]

0 commit comments

Comments
 (0)