You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Scientific_python/Skimage_biopython.ipynb rather than:
from Bio import SeqIO
for item in SeqIO.FastaIO.FastaIterator(open('data/sweet_taste_receptor.txt', 'r')):
print(item)
our documentation would use:
from Bio import SeqIO
for item in SeqIO.parse('data/sweet_taste_receptor.txt', 'fasta'):
print(item)
(I'd actually use double quotes - your examples are inconsistent on this point)
Key points: Emphasises file-format neutral API (makes switching file format later much easier, closer to the usage you followed for AlignIO) and also will take care of closing the file handle internally.
The text was updated successfully, but these errors were encountered:
In
Scientific_python/Skimage_biopython.ipynb
rather than:our documentation would use:
(I'd actually use double quotes - your examples are inconsistent on this point)
Key points: Emphasises file-format neutral API (makes switching file format later much easier, closer to the usage you followed for
AlignIO
) and also will take care of closing the file handle internally.The text was updated successfully, but these errors were encountered: