R/PeakML.Isotope.getFCMtx.R

Defines functions PeakML.Isotope.getFCMtx

Documented in PeakML.Isotope.getFCMtx

PeakML.Isotope.getFCMtx <- function (trendList, sampleGroups, followCarbon){

	numCarbons <-  length(trendList[[1]])
	plotMtx <- matrix(nrow = 1, ncol = length(sampleGroups))
	dimnames(plotMtx) <- list(1, sampleGroups)
	
	for (sam in 1:length(sampleGroups)){
		VAL <- trendList[[sam]][[followCarbon]]
		if (!is.null(VAL)){
			plotMtx[1, sam] <- VAL
		} else {
			plotMtx[1, sam] <- 0
		}
	}
	
	plotMtx
}

Try the mzmatch.R package in your browser

Any scripts or data that you put into this service are public.

mzmatch.R documentation built on May 31, 2017, 4:31 a.m.