.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. IfNone, a default path is chosen based on thesource; URL downloads append the current date (YYYY-MM-DD) to the filename.force (
bool) – IfTrue, overwrite an existing file atpath.
- Returns:
Path to the downloaded FASTA file.
- Return type:
Path