The most central and basic object type in PyCogent is Sequence. There are several ways to construct a DNA Sequence object. For the demo, I need to load a FASTA-formatted sequence, and recover the title and DNA sequence separately. (Substitute your own to follow along).
Now, here are five ways to create a DNA Sequence object:
output:
Here is one more that is a little trickier:
We'll look at the most basic methods of DNA Sequence objects next.