Comments (8)
Hi, let's clarify what you mean by direct infusion. Is it a 30sec measurement of some syringe-injected sample ? Resulting in a raw file with, say, 30 scans ? MSW was designed for input files with exactly one spectrum. Yours, Steffen
from xcms.
Hi Steffen
It is a 40 second run of the syringe injected sample with 30 scans per sample.
Thanks for responding so quickly
Jon
from xcms.
Hi Steffen
It is a 40 second run of the syringe injected sample with 30 scans per
sample.
Thanks for responding so quickly
Jon
On 3 August 2016 at 11:56, sneumann [email protected] wrote:
Hi, let's clarify what you mean by direct infusion. Is it a 30sec
measurement of some syringe-injected sample ? Resulting in a raw file with,
say, 30 scans ? MSW was designed for input files with exactly one
spectrum. Yours, Steffenβ
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#45 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AT0IbuMVo8SwiEFo3TWPLWkoaus4gvSWks5qcHPjgaJpZM4JbbrK
.
from xcms.
So the actual fix is to add a more meaningful error message if n>1 spectra
are present in the file, which fillPeaks.MSW is not designed to handle,
since it does not know from which scan to take the intensity.
from xcms.
Okay is that the same for the xcmsSet.MSW method as well? Is there a way of obtaining an averaged spectra of the scans before using the fillPeaks.MSW function in R
from xcms.
Hi Steffen
I have been looking into the original issue that I was having with the fillPeaks.MSW function and because the program doesn't know which intensity value to extract I have added a mean function in the code which appears to fix the problems. Instead of just taking the first scan intensity it will average all the intensities found in that mass range, but I was wondering if the same is true for the xcmsSet (method=MSW) if this also only takes the first scan and if so could the same fix solve the problem?
nppos <- nppos + 1
mzpos <- which(abs(lcraw@env$mz - groupmat[g,"mzmed"]) == min(abs(lcraw@env$mz - groupmat[g,"mzmed"])))
mmzpos <- mzpos[which(lcraw@env$intensity[mzpos] == max(lcraw@env$intensity[mzpos]))]
mmzpos<-mean(mmzpos)
mmzr <- seq((mmzpos-mrange[1]),(mmzpos+mrange[2]))
maxo <- max(lcraw@env$intensity[mmzr])
medMZmin <- median(peakmat[groupindex[[g]], "mzmin"])
medMZmax <- median(peakmat[groupindex[[g]],"mzmax"])
minMzpos <- min(which(abs(lcraw@env$mz - medMZmin) == min(abs(lcraw@env$mz - medMZmin))))
maxMzpos <- max(which(abs(lcraw@env$mz - medMZmax) == min(abs(lcraw@env$mz - medMZmax))))
into = sum(lcraw@env$intensity[minMzpos:maxMzpos])
Also if the peak intensity is only found in a fraction of the scans could this also be attributed to noise? and if so is it worth building into the function a scan number and fraction of scans the peak needs to be present to be counted as a real peak?
Thanks
Jon
from xcms.
The findPeaks.MSW was also just uses one spectrum,
our previous FT-ICR did essentially a single-spectrum.
Instead of trying to tweak xcms, I'd rather check if some other
feature extraction tool was developed for direct infusion data.
And only if that fails to modify xcms. RMassBank was designed
to extract data-dependent MS/MS spectra, and it also had
the multiplicity filter against noise that you just described.
Yours, Steffen
from xcms.
This is now also fixed with the new user functions.
from xcms.
Related Issues (20)
- Handling multtest dependency (BioC build error) HOT 3
- Two overlapping peaks with the same m/z detected as one HOT 2
- Does minSamples override minFraction when grouping? HOT 2
- ERROR: Dimensions of profile matrices do not match ! HOT 1
- Why does fill peaks with XCMSnExp object result in considerably less features than fill peaks with XCMSset? HOT 6
- How are features obtained if you donβt specify any class information for grouping? HOT 1
- Add XCMS object as data to EDAM Ontology HOT 4
- Introduce a changelog HOT 1
- combineSpectra of a feature HOT 3
- xcmsRaw - error HOT 6
- return EIC with peak detection output HOT 1
- Polarity cannot be extracted HOT 3
- Error in writeMSData HOT 1
- Need all chromatograms in particular sample HOT 1
- Build error invalid class "MsBackendMzR" object: slots not in object: "peaksVariables" HOT 2
- Build failure on arm/Linux HOT 2
- Properly serialize an xcms result object to disk/files HOT 21
- do_findChromPeaks_centWave returns wrong maxo and int* values HOT 3
- findChromPeaks finds duplicate peaks HOT 1
- No method to convert XcmsExperiment to xcmsSet - Version 3.99.5 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcms.