This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Calculating intron coordinates from gtf/gff3

I want to parse intron and intergenic coordinates from gtf/gff3 file. I am looking for straight forward approach. Any oneliner?

gtf gff

What kind of output do you exactly want ? A toy example could help too.

Have you searched Biostars, there are many intron related questions. However, calculating introns is not as straight forward as it might seem. You cannot just take the gaps between all annotated exons, because different introns can exist for different isoforms. If you oversimplify the task (1 transcript isoform per gene only, no overlapping genes) anyway you can get very close to a one liner in R/BioC using the IRanges, GRanges, and their interval arithmetics (e.g. gaps).

0 answers

No answers yet.

Log in to answer this question.