Fasta file from a gff file
Hi, I have a GFF file and a genome sequence file in fasta format. I need to get a fasta file containing the sequence of 1 kb uspstream of each gene on the x chromosome?
I prefer linux scripts however, python code is fine too.
Really appreciate if anyone can help me.
• 2,784 views
•
link
1 answer
Hey bro,
gffread can do this for you, and it is strand-specific. Take a look at the example here: A: Cufflinks gffread utility
To add 1000bp up and downstream of each gene, then just write a script that modifies the GFF input file. AWK should easily work, in this regard.
Kevin
• 1 views
•
link
Log in to answer this question.
Look at bedtools or bedops.
Thanks h.mon. I am wondering is it working for gff file too?
BioPython would make this very easy, though their support for GFF is limited. Brad Chapman built BCBio though which handles gff and is able to interface with BioPython nicely