.contaminants

proteopy.download.contaminants(source='frankenfield2022', path=None, force=False)[source]

Download contaminant FASTA files from putative sources.

  • frankenfield2022: Frankenfield et al., 2022 (doi:10.1021/acs.jproteome.2c00145).

  • gpm_crap: The Global Proteome Machine (GPM) common Repository of Adventitious Proteins (cRAP).

Parameters:
  • source (str) – Contaminant FASTA source. Supported: "frankenfield2022", "gpm_crap".

  • path (str | Path | None) – Destination file path for the downloaded FASTA. If None, a default path is chosen based on the source; URL downloads append the current date (YYYY-MM-DD) to the filename.

  • force (bool) – If True, overwrite an existing file at path.

Returns:

Path to the downloaded FASTA file.

Return type:

Path