Description Usage Arguments Value Examples
View source: R/calculate-expression.R
Calculate transcripts-per-million (TPM) values for expression from counts for a set of features.
1 | calculateTPM(object, effective_length = NULL, calc_from = "counts")
|
object |
an |
effective_length |
vector of class |
calc_from |
character string indicating whether to compute TPM from
|
Matrix of TPM values.
1 2 3 4 5 6 7 8 9 10 11 12 | data("sc_example_counts")
data("sc_example_cell_info")
pd <- new("AnnotatedDataFrame", data = sc_example_cell_info)
example_sceset <- newSCESet(countData = sc_example_counts, phenoData = pd)
effective_length <- rep(1000, 2000)
tpm(example_sceset) <- calculateTPM(example_sceset, effective_length,
calc_from = "counts")
## calculate from FPKM
fpkm(example_sceset) <- calculateFPKM(example_sceset, effective_length)
tpm(example_sceset) <- calculateTPM(example_sceset, effective_length,
calc_from = "fpkm")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.