Adding gff support for NearestExonJB plugin - #856
Open
jamie-m-a wants to merge 1 commit into
Open
Conversation
likhitha-surapaneni
self-requested a review
August 13, 2026 08:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR allows NearestExonJB to retrieve exon locations from a tabix-indexed GFF3 file:
--plugin NearestExonJB,gff3=/path/to/genes.gff.gzIt also adds parent_only=1, which excludes exons from readthrough transcripts, artifact genes, and unsupported GFF gene-parent types.
To test...
Use this variant:
1 1243545 . G ACompare the database-backed plugin:
--plugin NearestExonJB,intronic=1with the GFF-backed plugin:
--plugin NearestExonJB,gff3=Homo_sapiens.GRCh38.116.chr.gff.gz,intronic=1,parent_only=1Using the release 116 GFF, both modes should annotate the same transcripts and exon boundaries:
ENST00000330388.2 ENSE00001299832+7+end+109
ENST00000468365.1 ENSE00001882488+7+end+287
ENST00001086007.1 ENSE00001299832+7+end+109
ENST00001145430.1 ENSE00001299832+7+end+109
ENST00001086006.1 ENSE00004705606+393+end+91 ENSE00001311835+409+start+152
The other transcripts should have nothing.