Entering edit mode
12.4 years ago
viv_bio
▴
50
import os from Bio import SeqIO import glob list_of_files = glob.glob( "directory path/./*.fasta") for file_name in list_of_files: R = SeqIO.parse(file_name) for records in R: print records
from this i can parse over all the files in directory but i am not able to print Sequence records in it .
Is that pseudo code? The SeqIO parse function requires a format argument as well, e.g. "fasta" or "gb".