casanovoutils.residues#
Utilities for loading and distributing the amino acid residue mass vocabulary.
Attributes#
Functions#
|
Load a mapping of amino acid residue names to masses from a YAML file. |
|
Copy the default |
|
Module Contents#
- casanovoutils.residues.get_residues(residues_path: os.PathLike | None = None) dict[str, float]#
Load a mapping of amino acid residue names to masses from a YAML file.
If
residues_pathis not provided, the function loads a defaultresidues.yamlfile located in the same directory as this module.- Parameters:
residues_path (PathLike, optional) – Path to a YAML file containing residue mass information. If
None(default), the bundledresidues.yamlfile is used.- Returns:
A dictionary mapping residue identifiers (typically one-letter or multi-character amino acid codes) to their corresponding masses.
- Return type:
dict[str, float]
- casanovoutils.residues.dump_residues(destination_path: os.PathLike) None#
Copy the default
residues.yamlfile included with this package to a specified destination.- Parameters:
destination_path (PathLike) – Path to copy the YAML file to. May be a directory or a file path.
- Return type:
None
- casanovoutils.residues.COMMANDS: casanovoutils.types.Commands#
- casanovoutils.residues.main() None#