cal_w2_pval | R Documentation |
This function calculates the BSDE Barycenter p-value of a given gene.
cal_w2_pval( count_per_gene, meta_individual, meta_phenotype, perm_num = 200, unif_round_unit = 0.2, weight = 1, shrink = FALSE )
count_per_gene |
Gene count. Vector of length n (n is number of cells). |
meta_individual |
Label of individuals (length n). |
meta_phenotype |
0/1 vector of length n (0=control, 1=case). |
perm_num |
Number of random permutations for computing p-value. |
unif_round_unit |
Bin width for empirical histogram (default: 0.2). |
weight |
Weight vector (non-negative, length=number of subjects) for subjects. Can be used for inverse probability weighting to control for confounding. Default: 1 for equal weights. |
shrink |
If |
a list contains:
pval: p-value
case_bc_ob: density of the aggregated Barycenter distribution of the cases
ctrl_bc_ob: density of the aggregated Barycenter distribution of the controls
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.