This is a test version of Biostars. For the public version, visit https://www.biostars.org.
'SeqRecord' object has no attribute 'transcribe'

I am learning how to use python and I need to get the RNA sequence from the DNA sequences of a Multi-Fasta file, but when I try to do it I get the same error.

Here is my code:

from Bio import SeqIO
for seq_record in SeqIO.parse("gene.fna", "fasta"):
  print(seq_record.transcribe())

The error:

AttributeError: 'SeqRecord' object has no attribute 'transcribe'

Any help would be greatly appreciated.

biopython

1 answer

Hi, try this:

seq_record.seq.transcribe()

Log in to answer this question.