1
Topics
This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.
Topics - LauraShireman
2
XCMS / Why do I have fewer compounds with more samples?
Here's an example of my code:
Code: [Select]
Samples <- list.files(getwd(), pattern="mzdata.xml", full.names=F, recursive=TRUE)
xs1 <- xcmsSet(Samples[1:50], method = "centWave", ppm=15, peakwidth=c(4,12),
snthresh = 5, mzCenterFun="apex", prefilter=c(5,500),
integrate = 1, fitgauss= TRUE)
xs2 <- xcmsSet(Samples[51:150], method = "centWave", ppm=15, peakwidth=c(4,12),
snthresh = 5, mzCenterFun="apex", prefilter=c(5,500),
integrate = 1, fitgauss= TRUE)
xset.grouped <- group(c(xs1, xs2)), method="density", bw=4,
minsamp=1, mzwid=0.007, max=500)
xset.RTcor <- retcor(xset.grouped, method="peakgroups",
missing=20, extra=50, smooth="loess",
family="symmetric", plottype="none")
xset.grouped2 <- group(xset.RTcor, method="density", minsamp=1,
mzwid=0.007, bw=2, max=500)
xset.filledpeaks <- fillPeaks(xset.grouped2)
xset.peaks <- peakTable(xset.filledpeaks, filebase="xset peak table")
If I only align xs1, I get more compounds than if I align both xs1 and xs2.
Thanks for any help!
Laura
3
XCMS / Saving an xcmsSet object
Many thanks in advance for any help! You guys are great!
Laura
4
XCMS / XCMS2: collect() doesn't work
Code: [Select]
Error in function (classes, fdef, mtable) :
unable to find an inherited method for function "collect", for signature "xcmsRaw"
Here is the code I'm using:
Code: [Select]
library(xcms)
Data.raw <- xcmsRaw(filename="20110724pooledplasma-MSMS-06.mzdata.xml", includeMSn=TRUE)
Data.raw
Data.coll <- collect(Data.raw, rt=30)
Any suggestions? Thanks in advance!
Laura
5
XCMS / Plot multiple EICs from the same sample
Laura
6
CAMERA / Plot all EICs of a single isotope group
On that topic, when getIsotopeCluster or any of the other commands in CAMERA ask for "value" or "intval", what do "maxo", "into" and "intb" refer to?
Thanks!
Laura
7
XCMS / How do I plot the EIC from an xcmsRaw object?
Code: [Select]
QC1.raw <- xcmsRaw("QC1.mzdata.xml", profstep=0.01, profmethod="bin")When I try the "getEIC" command, I get this error:
QC1.eic <- getEIC(QC1.raw, mzrange=c(512.0, 512.4), rtrange=c(705,740))
plot(QC1.eic, mzrange=c(512.0, 512.4), rtrange=c(705,740))
Error in vector("list", nrow(rtrange)) : invalid 'length' argument
There may also be an error in the plot command, but I haven't been able to get past getEIC, so I'm not sure whether the plot command will work the way that I want.
Ultimately, what I want to do is use my own data to get graphs like those in figure 1 from "Highly sensitive feature detection for high resolution LC/MS" by Ralf Tautenhahn, Christoph Böttcher and Steffen Neumann, 2008, BMC Bioinformatics. I can get the plotRaw function to work, which gives me the upper of the two graphs in figure 1, but I can't figure out how to make the lower graph. The help file for XCMS says that mzrange and rtrange should each be a two-column matrix, but I don't really understand what that means. I mean, for the retention time, for example, I just want to look at 705 to 740 seconds, so that would be one row. What would the other rows in the matrix be?
Thanks!
Laura
8
CAMERA / Way too many ions being assigned to the same compound
Here's the code I'm using, in case that's illuminating.
Code: [Select]
Set1.annot <- xsAnnotate(Set1.filledpeaks)
Set1.F <- groupFWHM(Set1.annot, perfwhm=0.005)
Set1.C <- groupCorr(Set1.F, cor_eic_th=1.6, pval=0.001, calcIso=TRUE,
calcCiS=TRUE)
Set1.FI <- findIsotopes(Set1.C, maxcharge=3, maxiso=4, ppm=10,
mzabs=0.0001, intval="maxo", minfrac=0.1)
Set1.FA <- findAdducts(Set1.FI, ppm=10, mzabs=0.0001, multiplier=3,
polarity="negative", rules=NULL, max_peaks=100)
Set1.peaklist <- getPeaklist(Set1.FA)
write.csv(Set1.peaklist, file="Set1 annotated peaklist.csv")
By the way, what are the allowable numbers for cor_eic_th? Is that referring to equation 1 in Kuhl 20012 Analytical Chemistry? So can that parameter range from 0 to 3?
Thank you very much in advance!
Laura
9
XCMS / Undesired filtering somewhere
Code: [Select]
Samples <- list.files(getwd(), pattern="mzdata.xml", full.names=FALSE, recursive=TRUE)When I have my samples in 4 folders, one each for the four treatment groups I've got, I get 12,793 mass features. (Yes, I know that many of those are noise and that I'm probably too stringent on some of my mass spectral resolution parameters. :-) I'll adjust that later, once I better understand what's going on here.) When I put those exact same data files all together into one folder, I get 3,806 mass features.
U5g.raw <- xcmsSet(Samples, method = "centWave", snthresh = 10, ppm=15, peakwidth=c(6,12), mzCenterFun="apex", integrate = 1,fitgauss= TRUE)
U5g.raw
U5g.grouped <- group(U5g.raw, method="density", minsamp=1, mzwid=0.004, bw=10, max=10)
U5g.RTcor <- retcor(U5g.grouped, missing=15, extra=30, smooth="loess", family="symmetric", plottype="mdevden")
U5g.grouped2 <- group(U5g.RTcor, method="density", minsamp=1, mzwid=0.004, bw=10, max=10)
U5g.filledpeaks <- fillPeaks(U5g.grouped2)
U5g.peaks <- peakTable(U5g.filledpeaks, filebase="ESI+ urine 5g peak table")
Anyone have any thoughts on what's going on? I thought that if I put "minsamp=1" for a grouping parameter that meant that I wasn't filtering at all, but if I'm not filtering based on group membership, why do I get a different number of mass features when I group my samples by treatment group than when I don't?
Thanks in advance. This board has really, really been helpful to me in the past!
Laura
10
XCMS / How do I plot the EIC for compounds XCMS has found?
* picked peaks with xcmsSet,
* grouped them with group,
* corrected the retention time with retcor,
* grouped again with group,
* filled in missing peaks with fillPeaks,
* and generated a difference report with diffreport.
When I called the diffreport function, I had it also plot the EICs for the top 20-most different peaks, and those plots are the kind of plots I want. How do I create plots for the EICs of other compounds that XCMS has found? I don't really want it to plot every single one of the 5000+ compounds it found and then just look through that list and find the png files I'm interested in. How do I choose the ones that I want? I've tried playing around with getEIC, plotEIC, plotPeaks and plotChrom, and, to be honest, I can't get a single one of them to work, and I'm just not really understanding what the help file is saying.
Thanks in advance.
Laura
11
XCMS / Peak filtering
Thanks!
Laura S.
12
XCMS / Vicinity elimination postprocessing
Thanks in advance!
Laura S.