This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Working with Degenerate Codons in BioPython

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

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=""> "

0 answers

No answers yet.

Log in to answer this question.