As with the previous example using clustal, it's important to be sure the the binary is on my path. I did this from the Desktop:
Now, we expect to run muscle as we did clustal, but there is a slight problem:
The result of the app() call is supposed to be a dictionary-like object with a key 'Align' but that key is not present. Of the two file-like objects that are present, 'StdErr' shows that the program ran, but there aren't any results. This is probably an error, since we're supposed to have a "consistent API."
To work around this issue, we go to an example in the online docs, and try the following instead. I've changed the sequence file to
test.fasta
, which contains five bacterial 16S rRNA sequences.The file ends up where it should be, with the first two lines:
The next step is to make a tree.
For the last part, I downloaded the code from the supplementary files for the PyCogent paper. I won't show the code because, unfortunately, it doesn't work.
Although the paper says it uses ReportLab, and that is what I installed the other day, the code is looking for matplotlib, which I don't have. But still, we're making progress.