AddMeta {IRISFGM} | R Documentation |
This function can import cell annotation information to IRIS-FGM object.
AddMeta(object, ...) .addMeta(object = NULL, meta.info = NULL) ## S4 method for signature 'IRISFGM' AddMeta(object = NULL, meta.info = NULL)
object |
input IRIS-FGM object |
... |
other arguments passed to methods |
meta.info |
meta information table should be a data frame with rows representing cell and coloumn representing different group condition |
It will add meta informatoin to IRISFGM.
x <- matrix(rnorm(100),ncol = 10) colnames(x) <- paste0("cell",1:ncol(x)) rownames(x) <- paste0("gene",1:nrow(x)) my_meta <- data.frame(row.names = paste0("cell",1:ncol(x)), cluster = c(rep("ClusterA",5),rep("ClusterB",5))) object <- CreateIRISFGMObject(x) object <- AddMeta(object, meta.info = my_meta)