Skip to contents

Use AScore results to improve phosphosite localization.

Usage

best_PTM_location_by_ascore(msnid, ascore)

Arguments

msnid

(MSnID object) MS/MS ID data

ascore

(data.frame) AScore results

Value

(MSnID object) MS/MS ID data with added AScore

Examples

if (FALSE) {
# Get AScore results
path_to_ascore <- system.file("extdata/phospho/ascore_output",
                              package = "PlexedPiperTestData")
ascore <- read_AScore_results(path_to_ascore)

# MS/MS IDs
path_to_MSGF_results <- system.file("extdata/global/msgf_output",
                                    package = "PlexedPiperTestData")
msnid <- read_msgf_data(path_to_MSGF_results)

# Improve phosphosite localization
msnid <- best_PTM_location_by_ascore(msnid, ascore)
}