View source: R/calcConsensus.R
calcConsensus | R Documentation |
colData
Calculate a consensus matrix of segment means based on colData
calcConsensus(
scCNA,
assay = "segment_ratios",
consensus_by = "subclones",
fun = c("median", "mean"),
BPPARAM = bpparam()
)
scCNA |
The CopyKit object. |
assay |
String with the name of the assay to pull data from to calculate the consensus matrix. |
consensus_by |
A string with the column from colData that will be used to isolate the cells by factor and calculate the consensus. |
fun |
A string indicating the summarizing function to be used. |
BPPARAM |
A BiocParallelParam specifying how the function should be parallelized. |
Consensus profiles are calculated by averaging or taking the median of the ith segment mean of all single cells assigned to the same element of colData,
A consensus matrix stored in the consensus slot of the CopyKit object
copykit_obj <- copykit_example_filtered()
copykit_obj <- findClusters(copykit_obj)
copykit_obj <- calcConsensus(copykit_obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.