Flatten a GTF
1
1
Entering edit mode
2.1 years ago

Dear community,

To 'flatten' a GTF is required for some programs. However, how does one flatten a GTF? There is not too much material online about it.

I had found this python script --written for Python 2.x, I believe-- for DEXSeq: https://github.com/olgabot/rna-seq-diff-exprn/blob/master/scripts/external/dexseq_prepare_annotation.py

However, is there a more rudimentary way?

Mit freundlichen Grüßen,

Kevin

flatten GTF annotation • 1.4k views
ADD COMMENT
1
Entering edit mode

I had a customer asking me for something similar: https://github.com/NBISweden/AGAT/issues/188
I thought this type of task was really rare/particular, apparently not as much...
The thing is I don't get what has to be flatten... what should happen when exons from differente genes would be merged because overlap (or non coding gene vs coding gene)? What should be done about attributes like ID and gene name in such case? We risk to loose all useful information hold by the GFF/GTF e.g. about from which gene exon are part of. If finally all underlying information is really needed I guess using bedtools intersect might be enough.

ADD REPLY
0
Entering edit mode

Good points, Juke34

ADD REPLY
0
Entering edit mode

I have never seen anyone merging exons from different genes. Rsubread and DEXSeq both document how they flatten exons and neither merge exons from different genes.

ADD REPLY
0
Entering edit mode

Ok so Rsubread and DEXSeq both merge exons from isoforms only. This sounds much more easy. The person that asked me for that task had problem because the tool he wanted to use ( FeatureSequence ) was not able to work due to exons from different genes that was overlaping.

ADD REPLY
1
Entering edit mode
2.1 years ago
Gordon Smyth ★ 7.1k

Rsubread::flattenGTF()

ADD COMMENT
0
Entering edit mode

Thank you very much Gordon

ADD REPLY

Login before adding your answer.

Traffic: 1776 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6