Skip to main content

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 - majah

1
XCMS / m/z sort assumption violated
Hi,

I have the same problem as many people have had, and I found posts relevant to this topic but was not able to get the code to work. So I have HILIC UPLC-MS data. I tried running xcms but received this error saying that m/z sort assumption was violated. I tried running the following code but I got no output and no .CDF files were corrected; can you please advise me on what I should do next:

## Notes: This program will check the m/z vector for a single file for sort violation
##  If a sort violation is found the m/z vector is reorganised along with the Intensity
##  vector. Finally a new CDF file is made which is fixed.
## !!!NB!!! : Parallel version does not report progress

require(xcms)
checkAllcdfs<-function(Ftype="mzXML", nSlaves=1){
  AllCDFs<-list.files(recursive=TRUE, pattern=Ftype, ignore.case=TRUE, full.names=TRUE)
  if(nSlaves >1){
      if(require(snow)){
        cl <- makeCluster(nSlaves, type = "SOCK")
      }
      clusterEvalQ(cl, library(xcms))
      unlist(clusterApply(cl, AllCDFs, checkCDFfile))
      stopCluster(cl)
  } else{
      sapply(AllCDFs, checkCDFfile)
      cat("n")
  }
}

checkCDFfile<-function(file, type=".mzXML"){
  cat("n")
  cat(paste("Loading File:", file, sep=""))
  xr<-xcmsRaw(file, profstep=0)
  for(i in 1:length(xr@scanindex)){
      scan<-getScan(xr, scan=i)
      if(is.unsorted(scan[,"mz"]) == TRUE){
        cat(" x ")
        newfile<-sub(type, "-Fixed.mzdata", file, ignore.case=TRUE)
        write.mzdata(xr, newfile)
        file.copy(file, sub(type, ".OLD", file, ignore.case=TRUE))
        unlink(file)
        rm(list=ls())
        gc()
        return(1)
      }
      if(i == length(xr@scanindex)){
        cat(" O ")
        rm(list=ls())
        gc()
        return(0)
      }
  }
}
2
XCMS Online / Stored Datasets Error
Hello,

I am trying to use some stored datasets for a new job I am creating, but only when I click on Data 1 "select stored dataset" does it show me my stored datasets. Data 2 shows that I have no stored datasets--is this a bug?

Thank you.
Majda
3
XCMS Online / Parameters: Cannot Extract Particular Mass
Hello,

Job ID: 103677

I am trying to look at a particular mass that I know is in raw chromatograms but for some reason cannot extract it with the parameters I am putting in.
I am able to extract it using Marker Lynx software, however.


Parameters I am setting are as follows:

Feature Detection

method centwave
ppm 25
minimum peak width 5
maximum peak width 12
signal/noise threshold 10
noise filter 0
mxdiff -0.005
prefilter peaks 1
prefilter intensity 30
integration method 1

Retention Time Correction

Method obiwarp
profStep 0.1


Alignment

mzwid 0.01
minfrac 0.1
bw 10
max 100
minsamp 1

I was following somebody's parameters who was able to extract the particular ion in question, but in a different dataset and different biospecimen.

I am unsure of which parameters I should try changing to get this mass of interest extracted.

Thank you for your help in advance!

Sincerely,
Majda
4
XCMS Online / XCMS peak picking
Hello,

I am unsure of how XCMS extracts ions and I would really like to understand it. For example, when the instrument takes snap-shots while running samples, one ion can come at several different masses which are a little different (under the same peak) i.e. 107.1043, 107.1057, 107.1068, etc. When XCMS extracts these ions, does it consider them separate or one and the same ion?

Thank you very much!

Majda
5
XCMS Online / Median Peak Area
Hi,

I need to have median peak area for something and was wondering if the results file we can download upon running data has that information? If not, is there a way for me to obtain that information?

Thank you very much!

Majda
6
XCMS Online / Statistics
Hello,

just a quick question: what kind of statistical test is done when comparing dataset 1 with dataset 2?

Thank you.
Majda
7
XCMS Online / Data Upload
Hello,

The last couple of days I have been having problems with data uploads. For some reason, each time I upload there is a different file that has a status of "Invalid MD5".
Is there a way to fix this so that all the files get uploaded correctly?

Thank you very much!

Majda
8
XCMS Online / Polarity
Hi,

I ran some ESI- data for the first time. I chose negative polarity in the settings, and didn't select any adducts under identification since there were none to choose from.
However, the results table still shows positive isotopes i.e. [3][M+1]+
Is there a mistake?

p.s. job ID is: 3543

I also realized it is very possible I am reading the adducts incorrectly. Can you please explain to me what this means, what it refers to: [3][M+1]+

Thank you.
Majda
9
XCMS Online / mzdiff setting
Hello,

I would like to set mzdiff to -0.005. However, the filed seems to only accept 5 characters, so if I want the value to be negative, the smallest number I can put in is -0.01.

Is there a way to increase the filed so that it fits -0.005?

Thanks much!

Majda
10
XCMS Online / Peak Exclusion
Hi,

Is there a way to exclude a particular peak before processing data in Web XCMS?

Thank you very much!

Sincerely,
Majda
11
XCMS Online / Error
Hello,

I tried processing two datasets previously used with different parameters (and the extraction worked that first time). However, this second time around, there is an error saying "XCMS Processing Failed".
The only thing I changed in the parameter settings is no retention time.

Job ID is: 1998

Thank you very much!

Majda
12
XCMS Online / Prefilter Parameters
Hello,

I am following parameters optimized for our LC/MS datasets, and in R, this parameter is

prefilter=c(1,30)

In the web-based version of XCMS, would this be prefilter intensity and prefilter peaks?

Thanks very much!

Majda
13
XCMS Online / File Check Error
Hi,

I am trying to rerun some analysis with different parameters. I have uploaded these datasets before and they went through the file check just fine. This time I am getting an error and the process is stuck at the "file check" point. Job ID is 1898.

Also, is it possible to get more space on the web-based XCMS page?

Thank you very much!

Majda
14
XCMS Online / Total Ion Chromatograms
Hello,

1. There is a problem I don't know how to fix, and this has happened to me a few times now. I ran some data on XCMS online, and Total Ion Chromatograms (original) does not show any peaks, while the corrected graph looks fine.

The ID of the job I ran is 1799.

Can you please help me fix this?

2. Additionally, I am still unable to change any parameters on UPLC/MS without having an error message pop up saying that min peak width has to be less than the max peak width, and so I cannot save the changes.

I appreciate your help very, very much!

Sincerely,
Majda
15
XCMS Online / Retention Time Correction
Hi,

I am trying to run  my data without a retention time correction so that I can compare data before and after the correction. However, whenever I run the data, an error message appears half way into the run.

1) Am I supposed to be setting up some specific parameters not related to the retention time parameters, i.e. feature detection "method" or "integration method" under feature detection? Are these parameters supposed to be something specific for LC/MS data?

2) Also, I would like to be able to change min peak width and max peak width to 5 and 12, specifically, as I am trying to reproduce some data and follow someone else's foot steps for this particular analysis.

Thank you very much! I appreciate your responses! I am new to XCMS but I am very excited about it, and looking forward to using it more and more!

Sincerely,
Majda