Exemplo n.º 1
0
 def test_dna_strange_character_replace(self):
     create = Create(prerequisites)
     seqs = [Sequence('namer','ATGC')]
     create._mask_strange_sequence_letters(seqs, Create._NUCLEOTIDE_PACKAGE_TYPE)
     self.assertEqual(1, len(seqs))
     self.assertEqual('ATGC', str(seqs[0].seq))
     
     seqs = [Sequence('namer','ATGCRTWU')]
     create._mask_strange_sequence_letters(seqs, Create._NUCLEOTIDE_PACKAGE_TYPE)
     self.assertEqual(1, len(seqs))
     self.assertEqual('ATGCNTNT', str(seqs[0].seq))
Exemplo n.º 2
0
 def test_strange_character_replace(self):
     create = Create(prerequisites)
     seqs = [Sequence('namer','SEQWENCE')]
     create._mask_strange_sequence_letters(seqs, Create._PROTEIN_PACKAGE_TYPE)
     self.assertEqual(1, len(seqs))
     self.assertEqual('SEQWENCE', str(seqs[0].seq))
     
     seqs = [Sequence('namer','SEQUENCE')]
     create._mask_strange_sequence_letters(seqs, Create._PROTEIN_PACKAGE_TYPE)
     self.assertEqual(1, len(seqs))
     self.assertEqual('SEQXENCE', str(seqs[0].seq))
Exemplo n.º 3
0
    def test_dna_strange_character_replace(self):
        create = Create(prerequisites)
        seqs = [Sequence('namer', 'ATGC')]
        create._mask_strange_sequence_letters(seqs,
                                              Create._NUCLEOTIDE_PACKAGE_TYPE)
        self.assertEqual(1, len(seqs))
        self.assertEqual('ATGC', str(seqs[0].seq))

        seqs = [Sequence('namer', 'ATGCRTWU')]
        create._mask_strange_sequence_letters(seqs,
                                              Create._NUCLEOTIDE_PACKAGE_TYPE)
        self.assertEqual(1, len(seqs))
        self.assertEqual('ATGCNTNT', str(seqs[0].seq))
Exemplo n.º 4
0
    def test_strange_character_replace(self):
        create = Create(prerequisites)
        seqs = [Sequence('namer', 'SEQWENCE')]
        create._mask_strange_sequence_letters(seqs,
                                              Create._PROTEIN_PACKAGE_TYPE)
        self.assertEqual(1, len(seqs))
        self.assertEqual('SEQWENCE', str(seqs[0].seq))

        seqs = [Sequence('namer', 'SEQUENCE')]
        create._mask_strange_sequence_letters(seqs,
                                              Create._PROTEIN_PACKAGE_TYPE)
        self.assertEqual(1, len(seqs))
        self.assertEqual('SEQXENCE', str(seqs[0].seq))