addCellColData.Rd
This function adds new data to cellColData in a given ArchRProject.
addCellColData(
ArchRProj = NULL,
data = NULL,
name = NULL,
cells = NULL,
force = FALSE
)
An ArchRProject
object.
The data to add to cellColData
.
The column header name to be used for this new data in cellColData
. If a column with this name already exists,
you may set force
equal to TRUE
to overwrite the data in this column.
The names of the cells corresponding to data
. Typically new data is added to all cells but you may use this
argument to only add data to a subset of cells. Cells where data
is not added are set to NA
.
A boolean value indicating whether or not to overwrite data in a given column when the value passed to name
already exists as a column name in cellColData
.
# Get Test ArchR Project
proj <- getTestProject()
# Add Cell Column Data
addCellColData(proj, data = proj$TSSEnrichment, name = "TSS2", cells = getCellNames(proj))