View source: R/candidate_mining.R
score_genes | R Documentation |
Score candidate genes and select the top n genes
score_genes(
mined_candidates,
hubs = NULL,
tfs = NULL,
pick_top = 10,
weight_tf = 2,
weight_hub = 2,
weight_both = 3
)
mined_candidates |
Data frame resulting from |
hubs |
Character vector of hub genes. |
tfs |
Character vector of transcription factors. |
pick_top |
Number of top genes to select. Default: 10. |
weight_tf |
Numeric scalar with the weight to which correlation coefficients will be multiplied if the gene is a TF. Default: 2. |
weight_hub |
Numeric scalar with the weight to which correlation coefficients will be multiplied if the gene is a hub. Default: 2. |
weight_both |
Numeric scalar with the weight to which correlation coefficients will be multiplied if the gene is both a TF and a hub. Default: 3. |
Data frame with top n candidates and their scores.
data(tfs)
data(hubs)
data(mined_candidates)
set.seed(1)
scored <- score_genes(mined_candidates, hubs$Gene, tfs$Gene_ID)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.