Detect the peptide libraries a set of peptides belongs to
Source:R/peptide-library.R
detect_peptide_libraries.RdMatches 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".
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"