Skip to contents

Matches the prefixes of peptide_ids (the part before the trailing "_<number>", e.g. agilent in agilent_123) against the prefixes of the libraries known to get_peptide_library(): agilent, twist and corona2 for "combined", humanProteome for "human_proteome", and icam for "icam".

Usage

detect_peptide_libraries(peptide_ids)

Arguments

peptide_ids

Character vector of peptide IDs.

Value

Character vector with the names of the matched libraries, ready to pass to get_peptide_library(); empty if no peptide matched any library.

Examples

detect_peptide_libraries(c("agilent_1", "icam_7", "pep_x"))
#> [1] "combined" "icam"