ERROR IN THE PRINT COMMAND
Title
Question
error in the following command: print(seq_record.id)
Biopython Parsing-Data 05-06 min 10-20 sec
Answers:
Hello,
Please check the name of your FASTA file which you have downloaded and saved from the database.
For seq_record in SeqIO.parse("sequence.fasta", "fasta"):
print(seq_record.id)
print(repr(seq_record.seq))
print(len(seq_record))
The name of the FASTA file in the first line of the code should correspond to "sequence.fasta", if not you may see the error in executing the rest of the code.
If you can send us the screenshot of the error message you are getting, we can try to resolve the issue.
For seq_record in SeqIO.parse("sequence.fasta", "fasta"):
print(seq_record.id)
print(repr(seq_record.seq))
print(len(seq_record))
Login to add comment