Beispiel #1
0
 def test_make_most_abundant(self):
     """make_most_abundant should return function with correct behavior"""
     ids = "R27DLI_4812 R27DLI_600  R27DLI_727  U1PLI_403   U1PLI_8969".split()
     seqs = dict(parse_fasta(dna_seqs.splitlines(), label_to_name=label_to_name))
     f = make_most_abundant(seqs)
     result = f(ids, seqs)
     assert result in ["R27DLI_4812", "R27DLI_727", "U1PLI_8969"]
 def test_longest_id(self):
     """longest_id should return id associated with longest seq"""
     ids = \
         "R27DLI_4812 R27DLI_600  R27DLI_727  U1PLI_403   U1PLI_8969".split(
         )
     seqs = dict(parse_fasta(dna_seqs.splitlines(),
                                    label_to_name=label_to_name))
     self.assertEqual(longest_id(ids, seqs), 'U1PLI_403')
 def test_longest_id(self):
     """longest_id should return id associated with longest seq"""
     ids = \
         "R27DLI_4812 R27DLI_600  R27DLI_727  U1PLI_403   U1PLI_8969".split(
         )
     seqs = dict(
         parse_fasta(dna_seqs.splitlines(), label_to_name=label_to_name))
     self.assertEqual(longest_id(ids, seqs), 'U1PLI_403')
 def test_make_most_abundant(self):
     """make_most_abundant should return function with correct behavior"""
     ids = \
         "R27DLI_4812 R27DLI_600  R27DLI_727  U1PLI_403   U1PLI_8969".split(
         )
     seqs = dict(
         parse_fasta(dna_seqs.splitlines(), label_to_name=label_to_name))
     f = make_most_abundant(seqs)
     result = f(ids, seqs)
     assert result in ['R27DLI_4812', 'R27DLI_727', 'U1PLI_8969']