Created
July 30, 2016 17:51
-
-
Save mdshw5/0f8ec95238760146ab6e665543797be8 to your computer and use it in GitHub Desktop.
biostars 204336
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyfaidx import Fasta | |
with Fasta('1st.fa') as first, Fasta('2nd.fa') as second, open('result.fa', 'w') as result: | |
for a, b in zip(first, second): | |
result.write('>' + a.name) | |
result.write(str(a)) | |
result.write('>' + b.name) | |
result.write(str(b)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment