Example #1
0
    def properties(self):
        """
        Translate an amino acid sequence to properties of the form:
        'F': HYDROPHOBIC | AROMATIC.

        @return: A generator yielding properties for the residues in the
            current sequence.
        """
        return (PROPERTIES.get(aa, NONE) for aa in self.sequence)
Example #2
0
    def properties(self):
        """
        Translate an amino acid sequence to properties of the form:
        'F': HYDROPHOBIC | AROMATIC.

        @return: A generator yielding properties for the residues in the
            current sequence.
        """
        return (PROPERTIES.get(aa, NONE) for aa in self.sequence)
Example #3
0
 def testCorrectAAs(self):
     """
     The PROPERTIES dict must have the correct AA keys.
     """
     self.assertEqual(AA_LETTERS, sorted(PROPERTIES.keys()))
Example #4
0
 def testCorrectAAs(self):
     """
     The PROPERTIES dict must have the correct AA keys.
     """
     self.assertEqual(AA_LETTERS, sorted(PROPERTIES.keys()))