This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Issues with executing on Nexus files with MrBayes

Hello All,

I converted a fasta file of mine to the Nexus format using ALTER (http://sing.ei.uvigo.es/ALTER/). I receive the error below when executing on the full file path of the nexus file. I checked the Nexus file against the issues describes in the manual and it seems to be OK. The sample files from Mr.Bayes work. Does anyone have an idea of what might be the problem? Thank you for your help!

Chris

The Error:

MrBayes > execute C:\Users\ckan9\OneDrive\UCSC Research\Urchin Introgression\sliding_window\MrBayesTesting\SPU_010116_fasta_nosprp.fa.alter.nex

   Expecting ';'
   Instead found 'Research' in command 'Execute' at position 38

The top of the Nexus file:

#NEXUS
BEGIN DATA;
dimensions ntax=9 nchar=5529;
format missing=?
interleave=yes datatype=DNA gap=- match=.;

matrix
spurp       ATGACTTCTCTCAGGTCTTCCTTCACCTTGAGGTTCCTCCTTACCCTAAG
sdro        ATGAGTCCTCTGAGGCCTTCCTTCACCTTGAGGTTCCTCCTTGCCCTAAG
spal        ATGASTCCTCTSRGGCCTTCCTTCACCTTGAGGTTCCTCCTTGCCCTAAG
sfra        ATGACTCCTCTCAGGCCTTCCCTCACCTTGAGGTTCCTCCTTGCCCTAAG
sint        ATGACTCCTCTCGGGCCTTCCTTCACCTTGARGTTCCTCCTTGCCCTAAG
hpul        ATGACTYCTCTCGGGCCTTYCTTCACCTTGAGGTTCCTCCTTGCCCTAAG
snud        ATGACTCCTCTCAGGTCTTCCTTCACCTTGCGGTTCCTCCTTGCCCTAAG
afra        ATGACTCCTCTCAGGCCTTCCTTCACCTTGAGGTTCCTCCTTGCCCTATG
pdep        ATGACTCCTCTCAGGCCTTCCTTCACCTTGAGGTTCCTCCTTGCCCTAAG
mrbayes

1 answer

You are missing a semi-colon ";" at the end of the file.

The last block of my nexus file looks like this. I tried adding an extra ";" and it didn't work. How should I change it instead?

sdro        ATAGAGGGTTCTTTGAAGAATCTGACWTT
spal        ATAGAGGRTTCTTTGAAGAATCTGACRTT
sfra        ATAGAGGATTCTTTGAAGAATCGGACATT
sint        ATAGAGGGTTCTTTGAAGAATCTGACATT
hpul        ATAGAGGGTTCTTTGAAGAATCTGACATT
snud        ATAGAGGATTCTTTGAAGAATCTGACATT
afra        ATAGAGGGTTCTTTGAAGAATCTGACATT
pdep        ATAGAGGATTCTTTGAAGAATCTGACATT

;
end;

Log in to answer this question.