R/PeakML.Methods.writeGroupAnnotations.R

Defines functions PeakML.Methods.writeGroupAnnotations

Documented in PeakML.Methods.writeGroupAnnotations

PeakML.Methods.writeGroupAnnotations <- function(project, GroupAnnotations)
{
	annotnames <- names(GroupAnnotations)
	
	for (annot in 1:length(annotnames))
	{
		for (groupnumber in 1:length(GroupAnnotations[[annot]]))
		{
			if (!is.na(GroupAnnotations[[annot]][groupnumber]))
			{
				.jcall(project, returnSig="V",method="addGroupAnnotation",as.integer(groupnumber-1), as.character(annotnames[annot]),as.character(GroupAnnotations[[annot]][groupnumber]))
			}
		}
	}
}

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.