Add Cell Metadata¶
-
addCellMetadata()
Adds cell metadata to the Giotto Object.
addCellMetadata(
gobject,
new_metadata,
vector_name = NULL,
by_column = FALSE,
column_cell_ID = NULL
)
Arguments¶
gobject |
giotto object |
new_metadata |
new cell metadata to use (data.table, data.frame, etc.) |
vector_name |
Optional: custom name if you provide a single vector |
by_column |
merge metadata based on |
column_cell_ID |
column name of new metadata to use if |
Value¶
Giotto Object
Details¶
You can add additional cell metadata in two manners:
Provide a
data.table
ordata.frame
with gene annotations in the same order as the gene_ID column infDataDT(gobject)
.Provide a
data.table
ordata.frame
with gene annotations and specify which column contains the gene IDs. These gene IDs need to match with the gene_ID column infDataDT(gobject)
.