Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - cbroeckl

16
XCMS / Re: retrieve an averaged spectrum
Thanks for the tip Steffen


Stupid questions maybe:  I have never really accessed the behind the scenes code, and for the life of me I cannot find the file you refer to.  In my xcms/R folder there are only xcms documents (three of them), and my search isn't finding any files called mzClust.R on my C: drive.  Sorry to be a pain. 

Corey
17
XCMS / Re: retrieve an averaged spectrum
Ralf,

I have spectra that are already centroided.  I can extract individual spectra from the file using getSpec(), and I can choose those spectra by using the xcmsRaw()@TIC slot.  I am trying to understand how to apply mzClust to to spectra.  The default output for getScan is not an xcmsSet or Raw object structure, so I don't think I can use that directly as input for mzClust.  If I could coerce a spectrum into an xcmsSet object structure, maybe this is possible. 

So I think that I either need to
1. extract individal scans from a raw data file so that they are inserted into an xcmsSet object or
2. coerce the getSpec() output into something mzClust can take. 

I am a bit stumped as to how to do this.  Any tips?  Thanks,

Corey
19
XCMS / Re: peak shape/symmetry?
anyone have any thoughts on how 'mu' is related to retention time?  Thanks,

Corey
21
XCMS / Re: peak shape/symmetry?
as a follow up to this thread, i would normally interpret mu as the mean, which in the case of a fitted peak would represent retention time.  However, mu is roughtly 2.2 times higher than the retention time.  Any explanation on why this is? 

I am interested becuase the gaussian fit may at times be a more reproducible estimate of retention time than the raw data.  Thoughts?  Thanks,
22
XCMS / Re: group or peakTable problem
FYI,

group.nearest did work for this application.  The catechin molecular ion was present in two of the 52 files, and ended up as a feature group in the peakTable.  I am a little shocked at how many more feature groups there are:  nearly 10 fold more, but that was a first run through, and I can't say that I have optimized parameters at all.  It does take quite a bit longer than the density algorithm.  Thanks for the tips.
Corey
23
XCMS / Re: group or peakTable problem
This is actually a little concerning.  I do not routinely structure my files for XCMS to recognize groups.  So if all my files (52) are in a single group, then I am only recovering features that are present in 1/2 of my files - 26 samples?  Shouldn't the minfrac take precendence over that value? 

Corey
24
XCMS / Re: group or peakTable problem
Carsten,

Just saw your second response.  Thanks for the help.  I will try the other grouping method instead in the short term.

Corey
25
XCMS / Re: group or peakTable problem
thanks carsten,

I am perplexed.  I haven't used the other grouping method but can try it.  I have tried setting the minsamp or minfrac to zero and that doesn't work.  If I take the two samples that contain the catechin molecular ion and group then the catechine molecular ion makes it intot he peak table.  If I use the c() command to add this to my 'background' xcms set, then group - the catechin molecular ion, while still present in the xcms@peaks slot, is absent from the peak Table. 

Is it possible that it is a function of the c() step?  I don't use this routinely, but was hoping to do so in this instance so that I didn't have to perform peak detection on the background files each time - just once.

Corey
26
XCMS / Re: group or peakTable problem
Anyone have any suggestions as to why a feature in two of my samples (out of 52) does not make into my peakTable?  Any tips are appreciated.  Thanks,
Corey
27
XCMS / Re: group or peakTable problem
The retention time was adjusted by two seconds.  Increasing the bw for the post-retention time correction xset does not result in the 291 peak making it into the peakTable.  Any other ideas?  Could it be a bug somewhere?  This behavior doesn't make sense to me at all. 

> xset4@peaks[which(xset4@peaks[,"mz"] > 291.086 & xset4@peaks[,"mz"] < 291.087),]
          mz    mzmin    mzmax      rt  rtmin  rtmax      into      intb      maxo    sn    egauss      mu    sigma        h    f dppm scale
[1,] 291.0866 291.0862 291.0870 109.8970 106.897 112.896 1349308.18 1347901.04 338777.25  873 0.08150396 245.1626 3.932065 340105.13 4863    2    2
[2,] 291.0863 291.0818 291.0898 111.3708 107.112 117.395  59929.07  59922.21  15187.01 15186 0.11094711 244.9695 4.436207  13578.48 2527    4    -1
    scpos scmin scmax lmin lmax sample
[1,]  244  242  246  49  63    51
[2,]    -1    -1    -1  48  72    52

> xset5@peaks[which(xset5@peaks[,"mz"] > 291.086 & xset5@peaks[,"mz"] < 291.087),]
          mz    mzmin    mzmax      rt    rtmin    rtmax      into      intb      maxo    sn    egauss      mu    sigma        h    f dppm scale
[1,] 291.0866 291.0862 291.0870 107.7186 104.7037 110.7324 1349308.18 1347901.04 338777.25  873 0.08150396 245.1626 3.932065 340105.13 4863    2    2
[2,] 291.0863 291.0818 291.0898 109.0032 104.7192 115.0076  59929.07  59922.21  15187.01 15186 0.11094711 244.9695 4.436207  13578.48 2527    4    -1
    scpos scmin scmax lmin lmax sample
[1,]  244  242  246  49  63    51
[2,]    -1    -1    -1  48  72    52
> xset6@peaks[which(xset6@peaks[,"mz"] > 291.086 & xset6@peaks[,"mz"] < 291.087),]
          mz    mzmin    mzmax      rt    rtmin    rtmax      into      intb      maxo    sn    egauss      mu    sigma        h    f dppm scale
[1,] 291.0866 291.0862 291.0870 107.7186 104.7037 110.7324 1349308.18 1347901.04 338777.25  873 0.08150396 245.1626 3.932065 340105.13 4863    2    2
[2,] 291.0863 291.0818 291.0898 109.0032 104.7192 115.0076  59929.07  59922.21  15187.01 15186 0.11094711 244.9695 4.436207  13578.48 2527    4    -1
    scpos scmin scmax lmin lmax sample
[1,]  244  242  246  49  63    51
[2,]    -1    -1    -1  48  72    52
>

> peaklist <- peakTable(xset6, value="into")
> peaklist[which(peaklist[,"mz"] > 291.05 & peaklist[,"mz"] < 291.11),]
 [1] mz                    mzmin                mzmax                rt                    rtmin                rtmax               
 [7] npeaks                Library_serumC8      Library_120912_011001 Library_120917_018301 Library_120917_009801 Library_120912_007801
[13] Library_120925_000701 Library_120921_013201 Library_120912_013501 Library_120817_016501 Library_120912_004001 Library_120917_000701
[19] Library_120917_011601 Library_120917_013301 Library_120912_017501 Library_120921_003901 Library_120917_003901 Library_120817_000901
[25] Library_120912_004701 Library_120817_015501 Library_120917_001301 Library_120912_000401 Library_120917_002201 Library_120921_002601
[31] Library_120925_001901 Library_120817_004801 Library_120925_001401 Library_120912_011002 Library_120917_018302 Library_120917_009802
[37] Library_120912_007802 Library_120925_000702 Library_120921_013202 Library_120912_013502 Library_120817_016502 Library_120912_004002
[43] Library_120917_000702 Library_120917_011602 Library_120917_013302 Library_120912_017502 Library_120921_003902 Library_120917_003902
[49] Library_120817_000902 Library_120912_004702 Library_120817_015502 Library_120917_001302 Library_120912_000402 Library_120917_002202
[55] Library_120921_002602 Library_120925_001902 Library_120817_004802 Library_120925_001402 Library_120817_004401 Library_120817_004402
<0 rows> (or 0-length row.names)
>

> peaklist <- peakTable(xset4, value="into")
> peaklist[which(peaklist[,"mz"] > 291.05 & peaklist[,"mz"] < 291.11),]
 [1] mz                    mzmin                mzmax                rt                    rtmin                rtmax               
 [7] npeaks                Library_serumC8      Library_120912_011001 Library_120917_018301 Library_120917_009801 Library_120912_007801
[13] Library_120925_000701 Library_120921_013201 Library_120912_013501 Library_120817_016501 Library_120912_004001 Library_120917_000701
[19] Library_120917_011601 Library_120917_013301 Library_120912_017501 Library_120921_003901 Library_120917_003901 Library_120817_000901
[25] Library_120912_004701 Library_120817_015501 Library_120917_001301 Library_120912_000401 Library_120917_002201 Library_120921_002601
[31] Library_120925_001901 Library_120817_004801 Library_120925_001401 Library_120912_011002 Library_120917_018302 Library_120917_009802
[37] Library_120912_007802 Library_120925_000702 Library_120921_013202 Library_120912_013502 Library_120817_016502 Library_120912_004002
[43] Library_120917_000702 Library_120917_011602 Library_120917_013302 Library_120912_017502 Library_120921_003902 Library_120917_003902
[49] Library_120817_000902 Library_120912_004702 Library_120817_015502 Library_120917_001302 Library_120912_000402 Library_120917_002202
[55] Library_120921_002602 Library_120925_001902 Library_120817_004802 Library_120925_001402 Library_120817_004401 Library_120817_004402
<0 rows> (or 0-length row.names)
>
28
XCMS / Re: group or peakTable problem
I have tried both minfrac=0 and minsamp=0 in the second peak grouping step.  I also tried trivial non zero values for the minfrac step, the feature representing the standard molecular ion is absent in either case.

Corey
29
XCMS / Re: group or peakTable problem
Ralf,

I am a bit confused I think.  Even if they aren't properly aligned - they should be in the resulting dataset right?  I can play with the bw setting tommorrow, but assuming that works, can you explain to me why the bw matters?  Shouldn't the peak end up as its own column in the peaklist if it is present in one sample?
30
XCMS / Re: group or peakTable problem
Any one out there have a suggestion I am missing?  Shouldn't I be able to recover all the signals from peak detection in the grouped dataset if I set the minFrac setting to zero?  Thanks,
Corey