Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.402 kB
#!/usr/bin/env python
"""We need the SeqIO module from within the Bio (Biopython) module.
Modules can have modules inside of them.
"""
try:
from Bio import SeqIO
except ImportError:
print "Sorry, you need Biopython to run this."
import sys
sys.exit(1)
fasta_file = "NBMycotube-83332.init.fa"
for sequence in SeqIO.parse(open(fasta_file, "rb"), "fasta"):
print str(sequence.seq)
Jump to Line
Something went wrong with that request. Please try again.