The problem that I had in following the first tutorial is this: the function
LoadSeqs
creates an object of this class:What we want is a single DNA sequence. We can get the individual sequences back from the collection like so:
seq
is now aand it supports slicing. We can also construct a similar object directly:
We still can't translate a stop codon:
But slicing makes it easy to fix that:
Sequences are complex objects:
Going through the dir reveals the intended method for translating with a terminal stop: