Description Usage Arguments Value Examples
This function is used to get the expected contingency table for a given pair of genes.
1 2 3 4 | get.expected.ct(object, g1, g2)
## S4 method for signature 'scCOTAN'
get.expected.ct(object, g1, g2)
|
object |
The cotan object |
g1 |
A gene |
g2 |
The other gene |
A contingency table as dataframe
1 2 3 4 5 6 7 8 9 10 11 | data("ERCC.cotan")
g1 = rownames(ERCC.cotan@raw)[sample(nrow(ERCC.cotan@raw), 1)]
g2 = rownames(ERCC.cotan@raw)[sample(nrow(ERCC.cotan@raw), 1)]
while (g1 %in% ERCC.cotan@hk) {
g1 = rownames(ERCC.cotan@raw)[sample(nrow(ERCC.cotan@raw), 1)]
}
while (g2 %in% ERCC.cotan@hk) {
g2 = rownames(ERCC.cotan@raw)[sample(nrow(ERCC.cotan@raw), 1)]
}
get.expected.ct(object = ERCC.cotan, g1 = g1, g2 = g2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.