Skip to content

Commit

Permalink
added resolution #2
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanse committed Oct 26, 2020
1 parent cab177e commit bb3dce9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/rawR.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}

Expand Down
1 change: 1 addition & 0 deletions src/rawR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) + "),");

Expand Down

0 comments on commit bb3dce9

Please sign in to comment.