assign_pval: assign_pval

Description Usage Arguments Details Value

View source: R/compute_scores_and_pval.R

Description

Assigns p-values to MIC scores

Usage

1
assign_pval(MIC_scores, nb_cells)

Arguments

MIC_scores

numeric vector of MIC scores

nb_cells

nb of cells in the gene expression matrix

Details

Since the p-value of a given MIC score cannot be computed by a simple mathemical function, assigns_pval reads the p-value table generated by the authors of the MINE statistics (see http://www.exploredata.net/Downloads/P-Value-Tables) at the closest sample_size to nb_cells.

For each MIC score, assign_pval will then retrieve the corresponding p-value from this table.

Value

Returns a vector of p-values


charles-bernard/mage documentation built on May 14, 2019, 2 a.m.