Description Usage Arguments Details Value Examples
View source: R/operations_on_scores.R
Filters a table of scores based on a threshold of significance defined either by a MIC score, or by a p-value
1 | filter_scores(x, on = "MIC", pval = NULL, thresh = 0.4)
|
x |
data.frame: the table of scores |
on |
variable used for the threshold
(accepts only |
pval |
numeric vector of p-values corresponding to
the MIC scores in |
thresh |
value of the threshold |
if on = "MIC"
, filter_scores
will retain any association whose MIC >= threshold
else if on = "pval"
, filter_scores
will retain any association whose p-value <= threshold
Returns a filtered table of scores
1 2 3 4 5 6 7 | ## Not run:
scores_tab <- compute_scores(my_gene_exp_matrix, n.cores = 6)
pvalues <- assign_pval(scores_tab$`MIC (strength)`, nb_cells = 96)
signif_scores_tab <- filter_scores(scores_tab, on = "pval",
pval = pvalues, threshold = 0.05)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.