This function imports sage identification results as a
PSMatch::PSM()
object.
sagePSM(
idTable,
spectrum = "scannr",
peptide = "peptide",
protein = "proteins",
decoy = "label",
rank = "rank",
score = "hyperscore",
fdr = "spectrum_q",
...
)
character(1)
containing the path to the
identification results, typically "results.sage.tsv", or a
data.frame
containing the identification results.
character(1)
variable name that defines a
spectrum in the PSM data. Default are "scannr"
.
character(1)
variable name that defines a peptide
in the PSM data. Detaults are "peptide"
.
protein character(1)
variable name that defines a
protein in the PSM data. Detaults are "proteins"
.
character(1)
variable name that defines a decoy hit
in the PSM data. Detaults are "label"
.
character(1)
variable name that defines the
rank of the peptide spectrum match in the PSM data. Default is
"rank"
.
character(1)
variable name that defines the
PSM score. default is "hyperscore"
.
character(1)
variable name that defines the spectrum
FDR (or any relevant reliability score that can be used for
filtering, such as the PEP) in the PSM data. Default is
"spectrum_q"
.
Additional arguments passed to read.delim()
.
An instance of class PSM()
.
## Add the data to the package's cache if they
## aren't already available
if (!sagerAvailableData("id"))
sagerAddData("id")
basename(f <- sagerIdData())
#> [1] "92fe02655fa2c_results.sage.tsv"
sagePSM(f)
#> PSM with 977 rows and 34 columns.
#> names(34): peptide proteins ... protein_fdr ms1_intensity