View source: R/ClinicalEnrichment.R
clinicalEnrichment | R Documentation |
Performs pairwise and groupwise fisher exact tests to find differentially enriched genes for every factor within a clinical feature.
clinicalEnrichment(
maf,
clinicalFeature = NULL,
annotationDat = NULL,
minMut = 5,
useCNV = TRUE,
pathways = FALSE
)
maf |
|
clinicalFeature |
columns names from 'clinical.data' slot of |
annotationDat |
If MAF file was read without clinical data, provide a custom |
minMut |
Consider only genes with minimum this number of samples mutated. Default 5. |
useCNV |
whether to include copy number events if available. Default TRUE. Not applicable when 'pathways = TRUE' |
pathways |
Summarize genes by pathways before comparing. Default 'FALSE' |
Performs fishers test on 2x2 contingency table for WT/Mutants in group of interest vs rest of the sample. Odds Ratio indicate the odds of observing mutant in the group of interest compared to wild-type
result list containing p-values
plotEnrichmentResults
## Not run:
laml.maf = system.file('extdata', 'tcga_laml.maf.gz', package = 'maftools')
laml.clin = system.file('extdata', 'tcga_laml_annot.tsv', package = 'maftools')
laml = read.maf(maf = laml.maf, clinicalData = laml.clin)
clinicalEnrichment(laml, 'FAB_classification')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.