propy.ProCheck

Check whether the input protein sequence is a valid amino acid sequence.

propy.ProCheck.ProteinCheck(ProteinSequence: str) → int[source]

Check whether the protein sequence is a valid amino acid sequence or not.

Parameters:ProteinSequence (a pure protein sequence) –
Returns:flag – if the check is no problem, result will return the length of protein. if the check has problems, result will return 0.
Return type:bool

Examples

>>> from propy.GetProteinFromUniprot import GetProteinSequence
>>> protein = GetProteinSequence(ProteinID="Q9NQ39")
>>> result = ProteinCheck(protein)