diff --git a/R/rawR.R b/R/rawR.R index 42c4037..915fc83 100644 --- a/R/rawR.R +++ b/R/rawR.R @@ -708,7 +708,9 @@ plot.rawRspectrum <- function(x, relative = TRUE, centroid = FALSE, SN = FALSE, y = x$centroid.intensity[i], pos = 3, labels = paste(format(x$centroid.mZ[i], nsmall = 4), - "\nz = ", x$charges[i], "\nR = "), cex = 0.5) + "\nz = ", x$charges[i], "\nR = ", + x$resolutions[i]), + cex = 0.5) } diff --git a/src/rawR.cs b/src/rawR.cs index d54860f..7930ac5 100644 --- a/src/rawR.cs +++ b/src/rawR.cs @@ -305,6 +305,7 @@ public static void WriteSpectrumAsRcode(this IRawDataPlus rawFile, string filena file.WriteLine("\tmZ = c(" + string.Join(", ", centroidStream.Masses) + "),"); file.WriteLine("\tintensity = c(" + string.Join(", ", centroidStream.Intensities) + "),"); file.WriteLine("\tnoises = c(" + string.Join(", ", centroidStream.Noises) + "),"); + file.WriteLine("\tresolutions = c(" + string.Join(", ", centroidStream.Resolutions.ToArray()) + "),"); file.WriteLine("\tcharges = c(" + string.Join(", ", centroidStream.Charges) + "),"); file.WriteLine("\tbaselines = c(" + string.Join(", ", centroidStream.Baselines) + "),");