Description Usage Arguments Value Author(s) Examples
Given an input of a Summarized Experiment with a counts or CPM assay, This function creates additional assays for a gene expression count dataset to be used in further analysis.
1 2 3 4 5 6 7 8 |
SE_obj |
a |
input_name |
a character string specifying the name of the assay to
be referenced for creating additional assays. Default is |
output_name |
a character string to concatenate to "log" when computing
a log assay. If |
log |
logical. Indicate whether an assay returned should be the log
of whichever assay is specified in |
counts_to_CPM |
logical. This argument only applies if the
|
prior_counts |
an integer specifying the average count to be added to
each observation to avoid taking the log of zero. Used only if
|
This function returns a SummarizedExperiment
object with up
to 3 additional assay types attached to the original inputted object.
cpm |
Counts per million |
logcpm |
Log counts per million |
log_<output_name> |
Log of original inputted assay.
|
Aubrey Odom
1 2 3 4 5 6 7 8 9 10 11 12 | # Create a log assay of the original assay input
# TB_hiv dataset already has counts data
log_only <- mkAssay(TB_hiv, log = TRUE, counts_to_CPM = FALSE)
log_only
# Create a CPM assay
CPM_only <- mkAssay(TB_hiv)
CPM_only
# Create a logCPM, logcounts, and CPM assay
all_assays <- mkAssay(TB_hiv, log = TRUE)
all_assays
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.