View source: R/get_driver_genes.R
get_driver_genes | R Documentation |
Infers the genes driving significant cell-type-specific enrichment results
by computing the mean rank of the adjusted Z-score from the
GWAS gene annotation file ("ADJ_ZSTAT"
) and
the cell-type specificity score from the CellTypeDataset
("specificity_proportion"
).
get_driver_genes(
ctd,
ctd_species = infer_ctd_species(ctd = ctd),
prepare_ctd = TRUE,
magma_res,
GenesOut_dir,
fdr_thresh = 0.05,
n_genes = 100,
spec_deciles = NULL,
verbose = TRUE,
...
)
ctd |
CellTypeData object |
ctd_species |
Either 'human' or 'mouse' |
prepare_ctd |
Whether to run
prepare_quantile_groups on the |
magma_res |
Merged results from merge_results. |
GenesOut_dir |
Folder to search for .genes.out
files implicated in |
fdr_thresh |
FDR threshold for |
n_genes |
Max number of drive genes to return per cell-type enrichment. |
spec_deciles |
[Optional] Which "specificity_proportion" deciles to include when calculating driver genes. (10 = most specific). |
verbose |
Print messages. |
... |
Arguments passed on to
|
ctd <- ewceData::ctd()
GenesOut_dir <- MAGMA.Celltyping::import_magma_files()
magma_res <- MAGMA.Celltyping::merge_results(
MAGMA.Celltyping::enrichment_results)
genesets <- MAGMA.Celltyping::get_driver_genes(ctd = ctd,
magma_res = magma_res,
GenesOut_dir = GenesOut_dir,
fdr_thresh = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.