Working with Degenerate Codons in BioPython
0
1
Entering edit mode
7.6 years ago
ckan91 ▴ 40

I'm trying to get a sub-sequence with only 4 fold, 3 fold ,etc degenerate codons. I found this part of the biopython cookbook that has some functions that could do this [link]. However the code keeps referencing an input to the functions just called "table". I haven't been able for the life of me to figure out that sort of table I should be inputting.

Example: degenerated_subseq(seq, x, table): seq is the sequence, x the level of degeneracy. What is table?

Does anyone have any ideas? Thanks for your help!

Chris

biopython • 3.4k views
ADD COMMENT
0
Entering edit mode

Thanks for the reply friveroll. Would you use it this way? degenerated_subseq(seq_string, 4, Bio.Data.CodonTable.standard_dna_table)

I get a key error when I try it that way. "KeyError: <bio.data.codontable.ncbicodontabledna object="" at="" 0x031e06d0=""> "

ADD REPLY

Login before adding your answer.

Traffic: 2010 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