what is the easiest/fastest way to convert from BAM to GTF
1
0
Entering edit mode
5.6 years ago
Sam ▴ 150

I converted the output of STAR to BAM and for the next step I need to convert it to GTF, so what is the easiest/fastest way to convert from BAM to GTF?

Thanks

Bam GTF • 5.5k views
ADD COMMENT
3
Entering edit mode

What do you mean by BAM to GTF ? There is no direct connection between BAM and GTF. You usually quantify genes from GTF (gene annotation) by using BAM file (alignment) as input. What is your goal ? Are you planning to do transcript assembly (in that case you can go for Cufflinks which generated GTF for your assembled transcripts) ?

Request: Please put some effort in framing your question with more details.

ADD REPLY
1
Entering edit mode

As said by @EagleEye, what you just mentioned doesn't sound like something you would like to do. A Bam file contains records organized by read and mapping position, a Gtf contains features with start-end positions and correspondent parent feature (like exons in a gene).

ADD REPLY
0
Entering edit mode

I think I may know @Sam's meaning. Do you mean that a single record in bam file may represent a single record in GTF. Have you mapped the cDNA sequence to the reference?

ADD REPLY
0
Entering edit mode
4.4 years ago

You may look into this one to see if the script works for you.

https://github.com/PASApipeline/PASApipeline/issues/79

ADD COMMENT

Login before adding your answer.

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