extract fasta sequence using fasta header with python 3
Hi all,
I have a list of fasta headers and a corresponding multi fasta file.
Using python3 I would like to iterate through my list of ids and extract the matching fasta sequence form my fasta file. I, then, want to write each header and sequence to its own fasta file.
What is the best approach using python3?
Many thanks.
• 3,127 views
•
link
0 answers
No answers yet.
Log in to answer this question.
What have you tried?
Grep/awk. But I want to try with python.
Sure, what have you tried with Python?
Question already asked many times, you can check Biopython
http://seqanswers.com/forums/showthread.php?t=64929
Extracting Sequence From A 3Gb Fasta File
Extract Sequence From Fasta File Using Ids From A Separate File
Hello ddowlin!
Questions similar to yours can already be found at:
We have closed your question to allow us to keep similar content in the same thread.
If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.
Cheers!