| 1 |
#NEXUS |
| 2 |
|
| 3 |
[ NEXUS test file. Weird, but NEXUS standard compatible.] |
| 4 |
|
| 5 |
begin data; |
| 6 |
dimensions ntax=9 nchar=48; |
| 7 |
format datatype=dna gap=- missing=? interleave=yes; |
| 8 |
taxlabels t1 |
| 9 |
't2 the name' |
| 10 |
'isn''that [a] strange name?' 'one should be punished, for (that)!' |
| 11 |
t5 t6 t7 t8 t9; |
| 12 |
charlabels 1 'a', 2 'b', 3 'c', 5 'f', 10 'A', 11 'B', 23 'x', 24 'y', 30 '1,2,3 can''t decide for a name?!', 48 final; |
| 13 |
|
| 14 |
matrix |
| 15 |
[interleaved matrix: secont taxon name is spelled either with quotes or with underscores, |
| 16 |
but must be treated as the same name] |
| 17 |
t1 A-C-G-Tc-gtgtgtgctct-t-t |
| 18 |
't2 the name' A-C-GcTc-gtg-----tct-t-t |
| 19 |
'isn''that [a] strange name?' A-CcGcTc-gtgtgtgct------ |
| 20 |
'one should be punished, for (that)!' A-C-G-T----------------- |
| 21 |
t5 A-C?G-T?--acgt??-???-??? |
| 22 |
t6 AcCaGtTc-?--aaaaaaaa-a-a |
| 23 |
t7 A?C-GgTg-ggggggggggg-g-g |
| 24 |
t8 AtCtGtTt-ttttttttttt-?-? |
| 25 |
[last taxon of the matrix] |
| 26 |
t9 cccccccc-cccccccccccNc-c |
| 27 |
|
| 28 |
t1 ------ac-gtgtgtgctct-t-t |
| 29 |
t2_the_name ----acac-gtg-----tct-t-t |
| 30 |
'isn''that [a] strange name?' --acacac-gtgtgtgct------ |
| 31 |
'one should be punished, for (that)!' ------------------------ |
| 32 |
t5 --??---?--acgt??-???-??? |
| 33 |
t6 acgactac-?--aaaaaaaa-a-a |
| 34 |
t7 ??--?ggg-ggggggggggg-g-g |
| 35 |
t8 tttttttt-ttttttttttt-?-? |
| 36 |
[last taxon of the matrix] |
| 37 |
t9 cccccccc-cccccccccccNc-c |
| 38 |
; |
| 39 |
end; |
| 40 |
[t5 --??---?--a[last quarter of sequence starts here]cgt??-???-???] |
| 41 |
|
| 42 |
[ this is a [nested ] comment] |
| 43 |
[ a special commend was [& not cut out] here] |
| 44 |
|
| 45 |
begin sets; |
| 46 |
|
| 47 |
[simple blocks dividing the data into three parts] |
| 48 |
charset |
| 49 |
c1=1-8; |
| 50 |
charset c2= 9-16; |
| 51 |
charset c3 |
| 52 |
= |
| 53 |
17-24 |
| 54 |
; |
| 55 |
|
| 56 |
[characters can be specified by their character labels] |
| 57 |
charset byname= 1 f-'1,2,3 can''t decide for a name?!'; |
| 58 |
charset pos1=1-48\3; |
| 59 |
charset pos2=b-final\3; |
| 60 |
charset pos3=3-11\3 12-48\3; |
| 61 |
charset mix=pos2 1; charset mux=mix 9 c3 |
| 62 |
; |
| 63 |
|
| 64 |
[big chinks are nice for testing] |
| 65 |
charset bigchunk=2-47; |
| 66 |
charset firsthalf=1-24; |
| 67 |
charset secondhalf=25-48; |
| 68 |
charset big=1 3 5 7; |
| 69 |
|
| 70 |
[classical subdivision into codon positions] |
| 71 |
charpartition codons = a : pos1, |
| 72 |
b: pos2 , |
| 73 |
c:pos3 |
| 74 |
; |
| 75 |
|
| 76 |
[some taxon sets] |
| 77 |
taxset normal=1 3 4-6 8; |
| 78 |
taxset tbyname1=3 t1-t6; |
| 79 |
taxset tbyname2 = 't2 the_name' - t7; |
| 80 |
taxset tbyname3 = t1 - t2_the_name; |
| 81 |
taxset reference=1 2 tbyname1; |
| 82 |
|
| 83 |
|
| 84 |
[another character partition] |
| 85 |
charpartition |
| 86 |
|
| 87 |
part=one:c1, |
| 88 |
two:c2, |
| 89 |
three:c3; |
| 90 |
|
| 91 |
[and a taxpartition] |
| 92 |
taxpartition taxpart=goodnames:1 5-9, badnames: 2 3 4; |
| 93 |
|
| 94 |
end; |
| 95 |
|
| 96 |
[unknown blocks should be read and ignored] |
| 97 |
begin spam; |
| 98 |
this is a unknown block; |
| 99 |
and should be completely ignored; |
| 100 |
end; |
| 101 |
|
| 102 |
[Some trees] |
| 103 |
begin trees; |
| 104 |
translate |
| 105 |
|
| 106 |
3 t1, |
| 107 |
4 't2 the name' |
| 108 |
,1 'isn''that [a] strange name?', |
| 109 |
2 'one should be punished, for (that)!' |
| 110 |
, |
| 111 |
9 t5, |
| 112 |
7 t6 , |
| 113 |
8 t7, |
| 114 |
5 |
| 115 |
t8, 6 t9; |
| 116 |
|
| 117 |
tree tree1 = [&R] [&W3.5] (1,(2,3),(4,(5,6,(7,(8,9))))); |
| 118 |
tree tree1 = (1,(2,(4,(5,6,(7,(8,(9,3))))))); |
| 119 |
tree tree1 = (1,(2:0.5,(4:0.3,(5:1.2,6:3.4,(7:1,(8:99.9,(9:99,3:0.98)12:13)33:0.44)1:2.0)3:4.0)0.3:0.4)10:100); |
| 120 |
end; |
| 121 |
|