new_cem {CEMiTool} | R Documentation |
Create a CEMiTool object
new_cem(expr = data.frame(), sample_annot = data.frame(), sample_name_column = "SampleName", class_column = "Class")
expr |
Object of class |
sample_annot |
Object of |
sample_name_column |
A string specifying the column to be used as sample identification. Default: "SampleName". |
class_column |
A string specifying the column to be used as a grouping factor for samples. Default: "Class" |
Object of class CEMiTool
# Create new CEMiTool object cem <- new_cem() # Create new CEMiTool object with expression and sample_annotation data data(expr0) data(sample_annot) cem <- new_cem(expr0, sample_annot, "SampleName", "Class") # Equivalent to a call to new() cem2 <- new("CEMiTool", expression=expr0, sample_annotation=sample_annot) identical(cem, cem2)