... | ... |
@@ -6,6 +6,8 @@ setMethod("psms", |
6 | 6 |
signature=c("mzRident"), |
7 | 7 |
function(object) { |
8 | 8 |
psms <- object@backend$getPsmInfo() |
9 |
+ specpars <- object@backend$getSpecParams() |
|
10 |
+ psms <- merge(psms, specpars, by="spectrumID", sort=FALSE) |
|
9 | 11 |
psms$acquisitionNum <- |
10 | 12 |
as.numeric(sub("^.*=([[:digit:]]+)$", "\\1", psms$spectrumID)) |
11 | 13 |
return(psms) |
... | ... |
@@ -15,6 +17,10 @@ setMethod("score", |
15 | 17 |
signature=c("mzRident"), |
16 | 18 |
function(x) return(x@backend$getScore())) |
17 | 19 |
|
20 |
+setMethod("specParams", |
|
21 |
+ signature=c("mzRident"), |
|
22 |
+ function(object) return(object@backend$getSpecParams())) |
|
23 |
+ |
|
18 | 24 |
setMethod("para", |
19 | 25 |
signature=c("mzRident"), |
20 | 26 |
function(object) return(object@backend$getPara())) |
... | ... |
@@ -17,5 +17,6 @@ RCPP_MODULE(Ident) |
17 | 17 |
.method( "getScore", &RcppIdent::getScore, "Scoring information about this mzid files" ) |
18 | 18 |
.method( "getPara", &RcppIdent::getPara, "Parameters used in identification." ) |
19 | 19 |
.method( "getDB", &RcppIdent::getDB, "Database used in identification." ) |
20 |
+ .method( "getSpecParams", &RcppIdent::getSpecParams, "SpectrumIdentificationResult cvParams" ) |
|
20 | 21 |
; |
21 | 22 |
} |