calcRatios | R Documentation |
Calculates the ratios from a matrix of counts
calcRatios(
scCNA,
assay = c("ft", "bincounts", "smoothed_bincounts"),
fun = c("mean", "median")
)
scCNA |
The scCNA object |
assay |
String with the name of the assay to pull data from to calculate the ratios. |
fun |
A string indicating the summarizing function to be used. |
Calculates a sample-wise normalization of the selected assay by the mean bin counts returns ratios where a value of 1 corresponds to the neutral copy number state of the sample
A ratio matrix within the slot assay(scCNA, 'ratios')
can be accessed with ratios
.
copykit_obj <- mock_bincounts()
copykit_obj <- calcRatios(copykit_obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.