AddMeta {IRISFGM} | R Documentation

## AddMeta

### Description

This function can import cell annotation information to IRIS-FGM object.

### Usage

    AddMeta(object, ...)

    .addMeta(object = NULL, meta.info = NULL)

    ## S4 method for signature 'IRISFGM'
    AddMeta(object = NULL, meta.info = NULL)

### Arguments

`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

### Value

It will add meta informatoin to IRISFGM.

### Examples

    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)

[Package IRISFGM version 1.2.0 Index]