View source: R/mgpEstimation.R
Calculates rotations based on each group
1 2 3 | groupRotations(exprData, genes, geneColName, groups, outDir,
geneTransform = function(x) { homologene::mouse2human(x)$humanGene
})
|
exprData |
data.frame. Expression data. First collumns of the expression data should include gene names in the same format as the ones specified in the marker gene lists. Any other non-expression related fields must not be of type 'double' |
genes |
a named list containing marker gene lists of each cell type |
geneColName |
character. name of the column containing the gene names in the expression file |
groups |
a vector stating which groups each sample belongs to |
outDir |
if provided group rotations will be saved there |
geneTransform |
a function that will be applied to the gene list. the default behavior is to change mouse genes to human genes. set to NULL to keep the genes as they are |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.