Is there a simple way to get the list/array of retention times from a xcmsRaw object?
Example Code:
xraw <- xcmsRaw(cdfFile)
So for example getting information from it :
xraw@env$intensity
or
xraw@env$mz
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can see what slots are available in your
xcmsRawinstance withWhat you want is
xraw@msnRt– it is avectorofnumeric.The
envslot is a environment that stores 3 variables:More details on the class itself at
class?xcmsRaw.EDIT: The
msnRtslot is populated only if you specifyincludeMSn = TRUEand your input file must be inmzXMLormzML, not incdf; if you use thefaahKOexample from?xcmasRaw, you will see thatAlso,
xr@msnRtwill only store the retention times for MSn scans, withn > 1. See thexset@rtwherexsetis anxcmsSetinstance for the raw/corrected MS1 retention times as provided byxcms.EDIT2: Alternatively, have a go with the
mzRpackagebut you will be outside of the default
xcmspipeline if you take this route (although Steffen Neumann, fromxcms, does knowmzRvery well, oubviously).Finally, you are better of to use the Bioconductor mailing list of the
xcmsonline forum if you want to maximise your chances to get feedback from thexcmsdevelopers.Hope this helps.