Description Usage Arguments Details Value See Also Examples
Calculate EMD score for a single gene
1 | calculate_emd_gene(vec, samplesA, samplesB, binSize = 0.2)
|
vec |
A named vector containing data (e.g. expression data) for a single gene. |
samplesA |
A vector of sample names identifying samples in |
samplesB |
A vector of sample names identifying samples in |
binSize |
The bin size to be used when generating histograms for "group A" and "group B". |
The data in vec
is divided into "group A" and "group B" by the
identifiers given in samplesA
and samplesB
. The hist
function is used to generate histograms for the two resulting groups, and the
densities are retrieved and passed to emd2d
to compute the
EMD score.
The emd score is returned.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.