sorting merged GTFs for Tophat/Cufflinks pipeline
0
0
Entering edit mode
9.6 years ago
trakhtenberg ▴ 160

Hello,

I am trying to prepare mouse gene annotation GTF for Tophat/Cufflinks pipeline. I would like to merge Gencode GTF with non-overlapping transcripts from the UCSC Genes GTF. I noted that these GTFs are sorted somewhat differently. For example, if a transcript is on a minus strand, Gencode sorted start coordinates for this transcript are in descending order (so start codon comes before stop codon), and then back to ascending order for the next transcript that is on the plus strand. In UCSC Genes GTF, however, a transcript on a minus strand is also in ascending order (so stop codon comes before start codon).

In both of these formats, however, if there is an exon that is shared between 2 alterative transcript splice isoforms, it is listed amongst the other exons for the first exon, and then it is listed again amongst the second isoform exons, even though its coordinate is now out of order overall, since it was preceded by later exons of the first transcript when its features were listed first.

The first question I have is: if I just fuse these GTFs, and as a result (in addition to the above differences) will have entries for the same chromosome interrupted by entries from other chromosome (not in the middle of transcripts though), would this limit its utilization by the Tophat/Cufflinks pipeline?

The second question is: if I sort merged GTF like this: LC_ALL="C" sort -k 1,1 -k 4,4n input.gtf > sorted.gtf, it would sort everything by chromosomes and in ascending start coordinates order, but if there is an exon that is shared between 2 alterative transcript splice isoforms, it would just list it twice consecutively amongst the features of the first transcript, instead of placing it later amongst the features of the later, second isoform (as it was in the original GTFs). Would this difference in where shared exon is placed limit GTF’s utilization by the Tophat/Cufflinks pipeline?

The third question is: which command or script I could use to have the shared exon listed only amongst the features of transcript isoforms in which it participates (like in the original GTFs)?

Would appreciate help, thank you!

GTF Cufflinks • 3.3k views
ADD COMMENT
0
Entering edit mode

Hello trakhtenberg!

It appears that your post has been cross-posted to another site: SEQanswers and the tuxedo-tools forum.

This is typically not recommended as it runs the risk of annoying people in both communities.

ADD REPLY

Login before adding your answer.

Traffic: 2219 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