This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Extract sequences from a FASTA file using a gtf file

Hi, I have a de novo assembled FASTA file that I used with Cuffdiff. I now have a sorted gtf file (only retained the transcripts that were significantly differentially expressed).

Is there a program that I can use to: 1. pull only the transcripts listed in the gtf file from the FASTA file 2. find the longest ORFs

so that I can run some manual BLAST searches to validate my semi-automatic BLAST.

Is there an easy way to do this? Perhaps I just need to run a search function in the FASTA file using the transcript IDs listed in my sorted gtf file.

rna-seq

2 answers

The first part looks like a job for bedtools getfasta.

Duh duh duh duh duh duh doo doo doo da! BEDTools!

Dun dun DUNNNNNNNNN!

wild reading this in the AI era as a finishing phd student rip

  1. Pull only the transcripts listed in the gtf file from the FASTA file

Use bedtools getfasta.

  1. Find the longest ORFs

See this related thread for some options.

Log in to answer this question.