This fails, even though the file is in FASTA format.
We must change the extension.
Now, this kinda sorta works, but there is a slight problem:
We must tell it what type of characters we're dealing with.
That's much better:
Let's print the sequence. The commented versions don't work:
The error with the first line is:
Finally, let's translate:
But, it only works if I trim off the stop codon in the file. I have no idea how to do this from code, since the objects don't support slicing.
Any ideas?
What we can do is manipulate the data before making the object. Now, we can even use a text file!
We had to split off the title line first, then lose the last three bases. That is good enough for now.