'SeqRecord' object has no attribute 'transcribe'
1
0
Entering edit mode
18 months ago

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 • 920 views
ADD COMMENT
1
Entering edit mode
18 months ago
iraun 6.2k

Hi, try this:

seq_record.seq.transcribe()
ADD COMMENT
0
Entering edit mode

Thanks a lot, it worked

ADD REPLY

Login before adding your answer.

Traffic: 1728 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6