View source: R/snap-utilities.R
calBmatCor | R Documentation |
This function takes one or two snap object as input and calculate the correlation between cell-by-bin matrix between replicates. If obj2 is NULL, obj1 will be randomly split into two pseudo replicates and the correlaion between these two pseudo-replicates will be calcualted and returned. For obj1, the cell-by-bin matrix cannot be empty. This function helps check whether the current cell-by-bin matrix is sufficient for downstream analysis. If the pearson correlation is less than 0.95 recommend to use a bigger bin.size.
calBmatCor(obj1, obj2)
obj1 |
A snap object for replicate 1 |
obj2 |
A snap object for replicate 2 [NULL]. |
Return pearson correlation between replicates.
data(demo.sp); calBmatCor(demo.sp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.