calTissueDist | R Documentation |
calculate Startrac.dist (tissue distribution preference)
calTissueDist(
dat.tb,
byPatient = F,
colname.cluster = "majorCluster",
colname.patient = "patient",
colname.tissue = "loc",
method = "chisq",
min.rowSum = 0
)
dat.tb |
data.frame. Each line for a cell, and these columns as required: 'majorCluster', 'loc' |
byPatient |
logical. whether calculate the index for each patient. (default: FALSE) |
colname.cluster |
character. which column specify the cluster (default: "majorCluster") |
colname.patient |
character. which column specify the patient (default: "patient") |
colname.tissue |
character. which column specify the tissue (default: "loc") |
method |
character. method to use, one of "chisq", "fisher", and "freq" (default: "chisq") |
min.rowSum |
integer. rows with rowSum <= this value will be filtered out (default: 0) |
calculate Startrac.dist (tissue distribution preference).
an array full of R_o/e (method="chisq") or list with components of OR, p.value etc. from fisher.test (method="fisher")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.