format the gtf file
2
0
Entering edit mode
2.7 years ago
bright602 ▴ 50

Hi there, I have a gtf file. Could some one let me know how to move the third column with "transcript" to the first line of each gene block with the same gene id?

Thanks so much!

enter image description here

gtf • 1.2k views
ADD COMMENT
0
Entering edit mode

1) do not use excel.

enter image description here

2) why would you want to do this ?

ADD REPLY
0
Entering edit mode

Do not post the images of the data.

ADD REPLY
3
Entering edit mode
2.7 years ago
Juke34 8.9k

Here several tools that can help you https://agat.readthedocs.io/en/latest/topological-sorting-of-gff-features.html

ADD COMMENT
0
Entering edit mode
2.7 years ago
Carambakaracho ★ 3.3k

You want to do this in excel? Rename all transcript to AAA_transcript in col 3, sort by coordinate and then by feature type (col 3), rename back. You can implement something similar in Python, but I'm not sure it's worth the effort.

Also not sure why you want this but it's certainly not common practice, so there's unlikely a tool for this.

ADD COMMENT

Login before adding your answer.

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