addCellMetadata
¶
addCellMetadata
Description¶
adds cell metadata to the giotto object
Usage¶
addCellMetadata(
gobject,
new_metadata,
vector_name = NULL,
by_column = FALSE,
column_cell_ID = NULL
)
Arguments¶
Argument |
Description |
---|---|
|
giotto object |
|
new cell metadata to use (data.table, data.frame, …) |
|
(optional) custom name if you provide a single vector |
|
merge metadata based on cell_ID column in pDataDT (default = FALSE) |
|
column name of new metadata to use if by_column = TRUE |
Details¶
You can add additional cell metadata in two manners:
Provide a data.table or data.frame with cell annotations in the same order as the cell_ID column in pDataDT(gobject)
Provide a data.table or data.frame with cell annotations and specificy which column contains the cell IDs, these cell IDs need to match with the cell_ID column in pDataDT(gobject)
Value¶
giotto object