Beispiel #1
0
 def test_read_bzip2_fasta_file(self):
     filename = os.path.join(thisdir, 'data', 'mini', 'class1_1.fas.bz2')
     al = Alignment(filename, 'fasta')
     expected = ['Sp1', 'Sp2', 'Sp3', 'Sp4', 'Sp5']
     self.assertListEqual(expected, al.get_names())
Beispiel #2
0
 def test_read_gzip_phylip_file(self):
     filename = os.path.join(thisdir, 'data', 'mini', 'class1_1.phy.gz')
     al = Alignment(filename, 'phylip')
     expected = ['Sp1', 'Sp2', 'Sp3', 'Sp4', 'Sp5']
     self.assertListEqual(expected, al.get_names())
Beispiel #3
0
 def test_read_bzip2_fasta_file(self):
     filename = os.path.join(thisdir, 'data', 'mini', 'class1_1.fas.bz2')
     al = Alignment(filename, 'fasta')
     expected = ['Sp1', 'Sp2', 'Sp3', 'Sp4', 'Sp5']
     self.assertListEqual(expected, al.get_names())
Beispiel #4
0
 def test_read_gzip_phylip_file(self):
     filename = os.path.join(thisdir, 'data', 'mini', 'class1_1.phy.gz')
     al = Alignment(filename, 'phylip')
     expected = ['Sp1', 'Sp2', 'Sp3', 'Sp4', 'Sp5']
     self.assertListEqual(expected, al.get_names())
Beispiel #5
0
 def test_read_bzip2_fasta_file(self):
     filename = os.path.join(thisdir, "data", "mini", "class1_1.fas.bz2")
     al = Alignment(filename, "fasta")
     expected = ["Sp1", "Sp2", "Sp3", "Sp4", "Sp5"]
     self.assertListEqual(expected, al.get_names())
Beispiel #6
0
 def test_read_gzip_phylip_file(self):
     filename = os.path.join(thisdir, "data", "mini", "class1_1.phy.gz")
     al = Alignment(filename, "phylip")
     expected = ["Sp1", "Sp2", "Sp3", "Sp4", "Sp5"]
     self.assertListEqual(expected, al.get_names())