How to merge two GTFs which share some common features
0
0
Entering edit mode
3.6 years ago
emalekos ▴ 40

I have a custom GTF that is made up of experimentally determined exons and transcripts and includes the Ensembl gene ID for each entry. Some of these entries are known annotations and others are new. I would like to merge these with a gencode annotation GTF. My first thought was to do:

cat gencode.vM26.annotation.gtf custom.gtf > combined.gtf

and then sort the combined GTF, but this would result in redundant entries as the files contain some common annotations.

My next idea was to use stringtie with the gencode GTF as my reference:

stringtie --merge -G gencode.vM26.annotation.gtf wSmale.isoforms.gtf -m 0 -F 0 -T 0 -i -o test.gtf

but this forces a rename of the transcript prefix to "MSTRG" (by default) which results in a loss of information. (For my stringtie parameters, I wasn't sure how to choose them well so I just picked the the most permissive, is this problematic?). I would like to merge without renaming my custom file entries.

Does anyone have a solution to this problem?

stringtie GTF annotation • 1.1k views
ADD COMMENT
1
Entering edit mode
3.6 years ago
GenoMax 147k

See the answers and discussion in: How to combine 2 incomplete GTF

ADD COMMENT

Login before adding your answer.

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