def read_fasta_file(fasta):
# read it in
# assume there is only one
try:
fasta_record = SeqIO.read(open(fasta), "fasta")
except ValueError:
log.error("Fasta file %s has more than one sequence -- Exiting",
fasta)
raise
return fasta_record
评论列表
文章目录