This is a test version of Biostars. For the public version, visit https://www.biostars.org.
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.

python fasta

Grep/awk. But I want to try with python.

Sure, what have you tried with Python?

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!

PS: This is a duplicate post

0 answers

No answers yet.

Log in to answer this question.