Description Usage Arguments Value
View source: R/step-select-genes.R
step_select_genes()
creates a specification of a recipe step that will
select genes by differential expression analysis, discarding those that don't
pass a certain p-value threshold. Currently, cor_de()
is used.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | step_select_genes(
recipe,
...,
role = NA,
trained = FALSE,
condition = NULL,
genes_pass = NULL,
padj_cutoff = 0.05,
max_n_genes = NULL,
min_n_genes = NULL,
options = list(method = "spearman", padj_method = stats::p.adjust.methods[1]),
skip = FALSE,
id = recipes::rand_id("select_genes")
)
|
recipe |
A recipe object. The step will be added to the sequence of operations for this recipe. |
... |
One or more selector functions to choose which variables will be
used to compute the components. See |
role |
For model terms created by this step, what analysis role should they be assigned?. By default, the function assumes that the new principal component columns created by the original variables will be used as predictors in a model. |
trained |
A logical to indicate if the quantities for preprocessing have been estimated. |
condition |
The condition for the differential expression. See
|
genes_pass |
This should not be specified by the end user. Information about which genes do and don't pass the p-value threshold in the differential expression analysis is stored here. |
padj_cutoff |
Genes with an adjusted p-value less than or equal to
|
max_n_genes |
A positive integer. The maximum number of genes selected by this step. |
min_n_genes |
A positive integer. The minimum number of genes selected.
This guarantees that even if no genes pass |
options |
A list with two elements named |
skip |
A logical. Should the step be skipped when the
recipe is baked by |
id |
A character string that is unique to this step to identify it. |
An updated version of recipe with the new step added to the sequence of existing steps (if any).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.