Join/Combine gff3 or gtf files
1
0
Entering edit mode
6.1 years ago

Hi,

I am trying to assemble/join gff3 or gtf files from 2 different organisms to use as a reference for Stringtie. How do I do that? I tried using the cat command but I end up getting an output file which is exactly the first of the 2 gff3 files.

For example cat file1.gff3 >> file2.gff3 > combined.gff3 gives me an output combined.gff3 which is exactly file1.gff3

What can I do?

RNA-Seq genome sequencing • 5.6k views
ADD COMMENT
1
Entering edit mode
6.1 years ago
n,n ▴ 370
cat file1.gff3 file2.gff3 >> combined.gff3

That cat syntax should give you what you want Hope this helps

ADD COMMENT
1
Entering edit mode

The header from file2 is going to be in the middle of your combined gff. You might want to fix that.

ADD REPLY
0
Entering edit mode

This worked. Thank you!

ADD REPLY

Login before adding your answer.

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