calculate_lfc | R Documentation |
Calculate log fold changes.
calculate_lfc(
data = NULL,
id_column = 1,
gene_column = 2,
control_indices = NULL,
treatment_indices = NULL,
pseudocount = 0.5
)
data |
sample count matrix. |
id_column |
the index of column containing unique sgRNA identifiers. |
gene_column |
the index of column containing gene symbols. |
control_indices |
vector indices of columns containing control sample counts. |
treatment_indices |
vector indices of columns containing treatment sample counts. |
pseudocount |
a pseudocount (Default: 0.5). |
Takes the per-guide mean of control samples, adds a pseduocount to all counts (including control mean) and calculates the log2 fold change. Requires column indices be defined:
id_column
- column containing guide (sgRNA) identifiers (Default = 1).
gene_column
- column containing gene symbols/identifiers (Default = 2).
control_indices
- indices of columns containing control sample counts.
treatment_indices
- indices of columns containing treatment sample counts.
a data frame containing sample log fold changes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.