Skip to content

Commit

Permalink
Text case from Kamil Slowikowski for Nexus bug just fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Mar 20, 2012
1 parent 541f2b5 commit 475de4d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Tests/Nexus/codonposset.nex
@@ -0,0 +1,25 @@
#NEXUS
[MacClade 4.05 registered to Computational Biologist, University]


BEGIN DATA;
DIMENSIONS NTAX=2 NCHAR=22;
FORMAT DATATYPE=DNA MISSING=? GAP=- ;
MATRIX
[ 10 20 ]
[ . . ]

Aegotheles AAAAAGGCATTGTGGTGGGAAT [22]
Aerodramus ?????????TTGTGGTGGGAAT [13]
;
END;


BEGIN CODONS;
CODONPOSSET * CodonPositions =
N: 1-10,
1: 11-22\3,
2: 12-22\3,
3: 13-22\3;
CODESET * UNTITLED = Universal: all ;
END;
12 changes: 12 additions & 0 deletions Tests/output/test_AlignIO
Expand Up @@ -135,6 +135,18 @@ Testing reading nexus format file Nexus/test_Nexus_input.nex with 1 alignments
Checking can write/read as 'stockholm' format Checking can write/read as 'stockholm' format
Checking can write/read as 'fasta' format Checking can write/read as 'fasta' format
Checking can write/read as 'tab' format Checking can write/read as 'tab' format
Testing reading nexus format file Nexus/codonposset.nex with 1 alignments
Alignment 0, with 2 sequences of length 22
AAAAAGGCATTGTGGTGGGAAT Aegotheles
?????????TTGTGGTGGGAAT Aerodramus
Checking can write/read as 'clustal' format
Checking can write/read as 'nexus' format
Checking can write/read as 'phylip' format
Checking can write/read as 'phylip-relaxed' format
Checking can write/read as 'phylip-sequential' format
Checking can write/read as 'stockholm' format
Checking can write/read as 'fasta' format
Checking can write/read as 'tab' format
Testing reading stockholm format file Stockholm/simple.sth with 1 alignments Testing reading stockholm format file Stockholm/simple.sth with 1 alignments
Alignment 0, with 2 sequences of length 104 Alignment 0, with 2 sequences of length 104
UUAAUCGAGCUCAACACUCUUCGUAUAUCCUC-UCA...UGU AP001509.1 UUAAUCGAGCUCAACACUCUUCGUAUAUCCUC-UCA...UGU AP001509.1
Expand Down
1 change: 1 addition & 0 deletions Tests/test_AlignIO.py
Expand Up @@ -36,6 +36,7 @@
("fasta", 3, 1, 'GFF/multi.fna'), #Trivial nucleotide alignment ("fasta", 3, 1, 'GFF/multi.fna'), #Trivial nucleotide alignment
#Following example is also used in test_Nexus.py #Following example is also used in test_Nexus.py
("nexus", 9, 1, 'Nexus/test_Nexus_input.nex'), ("nexus", 9, 1, 'Nexus/test_Nexus_input.nex'),
("nexus", 2, 1, 'Nexus/codonposset.nex'),
("stockholm", 2, 1, 'Stockholm/simple.sth'), ("stockholm", 2, 1, 'Stockholm/simple.sth'),
("stockholm", 6, 1, 'Stockholm/funny.sth'), ("stockholm", 6, 1, 'Stockholm/funny.sth'),
("phylip", 6, 1, 'Phylip/reference_dna.phy'), ("phylip", 6, 1, 'Phylip/reference_dna.phy'),
Expand Down

0 comments on commit 475de4d

Please sign in to comment.