get.expected.ct: get.expected.ct

Description Usage Arguments Value Examples

Description

This function is used to get the expected contingency table for a given pair of genes.

Usage

1
2
3
4
get.expected.ct(object, g1, g2)

## S4 method for signature 'scCOTAN'
get.expected.ct(object, g1, g2)

Arguments

object

The cotan object

g1

A gene

g2

The other gene

Value

A contingency table as dataframe

Examples

 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)

seriph78/COTAN_stable documentation built on Dec. 23, 2021, 12:19 a.m.