This is a test version of Biostars. For the public version, visit https://www.biostars.org.
No space separating sequence and name PopArt error !?

Dear all,

I have encountered this error in PopArt, when i try to insert the nexus file with my haplotypes and my traits. All of my traits have specific latitude and longitude and they are sorted on, but still this errors keeps brothers me.

Does anyone knows how to fix it?

Thanks

popart traits haplotypes python

Did you check that a space is present between sequence name and the sequence itself? You can compare your input file with PopArt example file. Also, you may want to show us how the input file looks (at least the part showing sequence name and beginning of sequence).

Are you using the NEXUS format? This is how the NEXUS example file looks.

BEGIN CHARACTERS;
[You can either use the matchchar option or else include all characters for 
all sequences.]
DIMENSIONS NCHAR=56;
FORMAT DATATYPE=DNA MISSING=? GAP=- MATCHCHAR=. ;
MATRIX


seq_1 ATATACGGGGTTA---TTAGA----AAAATGTGTGTGTGTTTTTTTTTTCATGTGG

seq_2 ......--..A..---...C.----.G...C.A...C..C...C............

seq_3 ..........A..---...T.----.G.............................

seq_4 ..........A..---G...T----..............................A

seq_5 ..........A..---G...G----..............................C

seq_6 ..........A..---G...C----..............................T

seq_7 ..........A..---G....----..............................A

;

END;

Yes, i use the nexus format and my code is wrote in the same way as you posted.

0 answers

No answers yet.

Log in to answer this question.