Created
August 8, 2014 16:32
-
-
Save mdshw5/5a6bfb56321175fc6c48 to your computer and use it in GitHub Desktop.
biostars 108872
This file contains hidden or 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 | |
fa = Fasta('multi.fasta', strict_bounds=True) | |
for seq in fa: | |
with open('multi.500bp.fasta, 'w') as out: | |
out.write(seq[:500]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment