Entering edit mode
7.8 years ago
yreynaud
•
0
Hi, I have a fasta file like this:
>NZ_CP012501.1 Escherichia coli strain 08-00022 plasmid pCFSAN004179G, complete sequence
GTTCTGGACGTACTGTGTCAGTGTGTCGATACCCCGGCGCATATCGACGGGTTTTACGACCAGGAATACG
TTATCAGGCGTCAGCATGGCGAAGAGCCCGGAAAACATCGGTTAACTGAGAAGGCTGGCAGCACATCCGG
ATACCTCCGGGAAGGAAAAGTGTGACAGGCTCATCCGACAATGGTCTGCCATCAGCCATACCGGGAGCGC
CAGACACTGAAACTGGAATAATTTCAGGTGCTCTGGCTCGTTTTTCGGCTTTTGCGACATCCTGCGGCCA
> mus musculus
TTTAAAAAGATATTATATATTA
> or whatever in the header
GGGGATATATTATATATATATAT
I want to keep in a multifasta only sequence belonging to coli. I tried several stuff using SeqIO or awk but it failed each time. Any idea? Thnaks!!!!
Hehe, we submitted nearly identical solutions at the same moment.
Great minds think alike :)
Thanks guys, it work perfectly!!!