In annotate_internal_spliced, putative internal intron spliced last exon events are identified by checking for containment inside internal reference introns i.e. not the first nor last intron.
Whilst excluding the first intron is fine (as no intron chain to match and have separate filtering logic), a novel last exon could appear in the final intron of the reference last exon (e.g. ONECUT1), like the proximal isoform of a classical ALE event. These would otherwise be classified as 'other', where really this is a suitable definition for these events.
Simple fix would be to also extract reference last introns & concat the two grs for checking
In
annotate_internal_spliced
, putative internal intron spliced last exon events are identified by checking for containment inside internal reference introns i.e. not the first nor last intron.Whilst excluding the first intron is fine (as no intron chain to match and have separate filtering logic), a novel last exon could appear in the final intron of the reference last exon (e.g. ONECUT1), like the proximal isoform of a classical ALE event. These would otherwise be classified as 'other', where really this is a suitable definition for these events.
Simple fix would be to also extract reference last introns & concat the two grs for checking