We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 329669c commit b5a9b20Copy full SHA for b5a9b20
6 files changed
.github/workflows/check-bioc.yml
@@ -187,9 +187,10 @@ jobs:
187
cd preprocessCore
188
R CMD INSTALL --configure-args="--disable-threading" .
189
190
- - name: Install latest PSMatch from github
+ - name: Install latest PSMatch and PTMods from github
191
run: |
192
BiocManager::install("RforMassSpectrometry/PSMatch", ask = FALSE, force = TRUE)
193
+ BiocManager::install("RforMassSpectrometry/PTMods", ask = FALSE, force = TRUE)
194
continue-on-error: true
195
shell: Rscript {0}
196
DESCRIPTION
@@ -80,6 +80,7 @@ Depends:
80
Imports:
81
MsCoreUtils,
82
PSMatch (>= 1.15.3),
83
+ PTMods (>= 0.99.5),
84
BiocParallel,
85
IRanges (>= 2.13.28),
86
plyr,
NAMESPACE
@@ -21,6 +21,8 @@ importFrom(PSMatch,
21
getAminoAcids,
22
defaultNeutralLoss)
23
24
+importFrom(PTMods, convertAnnotation)
25
+
26
importFrom(MsCoreUtils, closest, rbindFill,
27
impute_matrix, normalize_matrix,
28
robustSummary, medianPolish,
R/functions-Spectrum2.R
@@ -12,7 +12,6 @@
12
calculateFragments_Spectrum2 <- function(sequence, object, tolerance=0.1,
13
method=c("highest", "closest", "all"),
14
relative=FALSE, ...) {
15
-
16
isValidSequence <- !missing(sequence) && !is.na(sequence) &&
17
nchar(sequence)
18
isValidSpectrum <- is(object, "Spectrum2") && peaksCount(object)
R/plotting-Spectrum.R
@@ -121,13 +121,13 @@ plotSpectrumVsSpectrum <- function(spectra, tolerance=25e-6,
121
modifications = c(C = 57.02146),
122
neutralLoss = defaultNeutralLoss(),
123
z = 1,
124
- fragments = calculateFragments_Spectrum2(object,
125
- sequence = sequence, tolerance = tolerance,
126
- relative = relative, type = type, z = z,
127
- fixed_modifications = modifications,
128
- neutralLoss = neutralLoss,
129
- verbose = isMSnbaseVerbose()) |>
130
- suppressWarnings(),
+ fragments = suppressWarnings(
+ calculateFragments_Spectrum2(object,
+ sequence = sequence, tolerance = tolerance,
+ relative = relative, type = type, z = z,
+ fixed_modifications = modifications,
+ neutralLoss = neutralLoss,
+ verbose = isMSnbaseVerbose())),
131
fragments.cex = 0.75, peaks.lwd = 1, peaks.cex = 0.5, ...) {
132
if (peaksCount(object) > 0 && !centroided(object)) {
133
message("Your spectrum is not centroided.")
man/calculateFragments-methods.Rd
@@ -86,7 +86,7 @@
\examples{
87
## find path to a mzXML file
88
file <- dir(system.file(package = "MSnbase", dir = "extdata"),
89
- full.name = TRUE, pattern = "mzXML$")
+ full.names = TRUE, pattern = "mzXML$")
90
91
## create basic MSnExp
92
msexp <- readMSData(file, centroided = FALSE)
@@ -95,13 +95,7 @@ msexp <- readMSData(file, centroided = FALSE)
95
msexp <- pickPeaks(msexp)
96
97
## calculate fragments for ACE with default modification
98
-calculateFragments("ACE", modifications=c(C=57.02146))
99
100
-## calculate fragments for ACE with an addition N-terminal modification
101
-calculateFragments("ACE", modifications=c(C=57.02146, Nterm=229.1629))
102
103
-## calculate fragments for ACE without any modifications
104
-calculateFragments("ACE", modifications=NULL)
+calculateFragments("ACE")
105
106
calculateFragments("VESITARHGEVLQLRPK",
107
type=c("a", "b", "c", "x", "y", "z"),
0 commit comments