@@ -34,7 +34,7 @@ plotSpectrumVsSpectrum <- function(spectra, tolerance=25e-6,
3434 xlim , ylim ,
3535 legend.cex = 1 ,
3636 peaks.pch = 19 , ... ) {
37- if (norm )
37+ if (norm )
3838 spectra <- lapply(spectra , normalize )
3939
4040 if (missing(xlim )) {
@@ -48,10 +48,10 @@ plotSpectrumVsSpectrum <- function(spectra, tolerance=25e-6,
4848 ylim <- c(- maxInten , maxInten )
4949 }
5050
51- if (missing(common ))
51+ if (missing(common ))
5252 common <- lapply(spectra , function (x )logical (peaksCount(x )))
5353
54- if (missing(sequences ))
54+ if (missing(sequences ))
5555 sequences <- character (2 )
5656
5757 orientation <- c(1 , - 1 )
@@ -71,7 +71,7 @@ plotSpectrumVsSpectrum <- function(spectra, tolerance=25e-6,
7171 if (msLevel(spectra [[i ]]) == 1 ) {
7272 label <- paste0(" Retention time: " , formatRt(rtime(spectra [[i ]])),
7373 " , # common: " , sum(common [[i ]]))
74-
74+
7575 } else {
7676 label <- paste0(" prec scan: " , precScanNum(spectra [[i ]]))
7777 if (peaksCount(spectra [[i ]])) {
@@ -124,9 +124,10 @@ plotSpectrumVsSpectrum <- function(spectra, tolerance=25e-6,
124124 fragments = calculateFragments_Spectrum2(object ,
125125 sequence = sequence , tolerance = tolerance ,
126126 relative = relative , type = type , z = z ,
127- modifications = modifications ,
127+ fixed_modifications = modifications ,
128128 neutralLoss = neutralLoss ,
129- verbose = isMSnbaseVerbose()),
129+ verbose = isMSnbaseVerbose()) | >
130+ suppressWarnings(),
130131 fragments.cex = 0.75 , peaks.lwd = 1 , peaks.cex = 0.5 , ... ) {
131132 if (peaksCount(object ) > 0 && ! centroided(object )) {
132133 message(" Your spectrum is not centroided." )
@@ -159,4 +160,3 @@ plotSpectrumVsSpectrum <- function(spectra, tolerance=25e-6,
159160 cex = fragments.cex , col = " #808080" )
160161 }
161162}
162-
0 commit comments