tidytcells.aa

Functions to clean and standardise amino acid sequence data.

Functions

tidytcells.aa.standardise(seq: str, suppress_warnings: bool = False)[source]

Ensures that a string value looks like a valid amino acid sequence.

Parameters:
  • seq (str) – String value representing an amino acid sequence.

  • suppress_warnings (bool) – Disable warnings that are usually emitted when standardisation fails. Defaults to False.

Returns:

Capitalised version of seq, if seq is a valid amino acid sequence. Otherwise the input is rejected and None is returned.

Return type:

str or None

tidytcells.aa.standardize(*args, **kwargs)[source]

Alias for tidytcells.aa.standardise().