AutoLockMass-methods: Automatic parameter for Lock mass fixing 'AutoLockMass' ~~

Description Arguments Value Methods Author(s) Examples

Description

AutoLockMass - This function decides where the lock mass scans are in the xcmsRaw object. This is done by using the scan time differences.

Arguments

object

An xcmsRaw-class object

Value

AutoLockMass A numeric vector of scan locations corresponding to lock Mass scans

Methods

object = "xcmsRaw"

signature(object = "xcmsRaw")

Author(s)

Paul Benton, [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
	## Not run: library(xcms)
		library(faahKO) ## These files do not have this problem to correct for but just for an example
		cdfpath <- system.file("cdf", package = "faahKO")
		cdffiles <- list.files(cdfpath, recursive = TRUE, full.names = TRUE)
		xr<-xcmsRaw(cdffiles[1])
		xr
		##Lets assume that the lockmass starts at 1 and is every 100 scans
		lockMass<-xcms:::makeacqNum(xr, freq=100, start=1)
		## these are equalvent
		lockmass2<-AutoLockMass(xr)
		all((lockmass == lockmass2) == TRUE)

		ob<-stitch(xr, lockMass)
	
## End(Not run)

xcms documentation built on May 18, 2019, 2 a.m.