profStep-methods: Get and set m/z step for generating profile data

Description Methods See Also Examples

Description

These methods get and set the m/z step for generating profile (matrix) data from raw mass spectral data. Smaller steps yield more precision at the cost of greater memory usage.

Methods

object = "xcmsRaw"

profStep(object)

See Also

xcmsRaw-class, profMethod

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
	## Not run: 
		library(faahKO)
		cdfpath <- system.file("cdf", package = "faahKO")
		cdffiles <- list.files(cdfpath, recursive = TRUE, full.names = TRUE)
		xset <- xcmsRaw(cdffiles[1])

		xset
		plotSurf(xset, mass=c(200,500))

		profStep(xset)<-0.1 ## decrease the bin size to get better resolution
		plotSurf(xset, mass=c(200, 500))
		##works nicer on high resolution data.
	
## End(Not run)

yclement/xcms documentation built on April 10, 2020, 12:08 a.m.