Find enrichment colnames
Usage
find_enrich_colnames(
x,
keyColname = c("ID", "Name", "pathway", "itemsetID", "Description"),
nameColname = c("Name", "pathway", "Description", "itemsetID", "ID"),
descriptionColname = c("Description", "Name", "Pathway", "ID"),
geneColname = c("geneID", "geneNames", "Genes"),
countColname = c("gene_count", "count", "geneHits"),
geneRatioColname = c("GeneRatio", "^Ratio"),
pvalueColname = c("padjust", "p.adjust", "adjp", "padj", "qvalue", "qval", "q.value",
"pvalue", "p.value", "pval", "FDR"),
directionColname = c("activation.z.{0,1}score", "z.{0,1}score"),
pathGenes = c("setSize", "pathGenes", "Count"),
geneHits = c("Count", "geneHits", "gene_count"),
verbose = FALSE,
...
)
Arguments
- x
data.frame
,enrichList
,Mem
, orlist
ofdata.frame
objects.- keyColname
character
default 'ID' indicating the primary identifier for each set. This column may be a numeric identifier.- nameColname
character
default 'Name', with the set name, typically a short name for each set.- descriptionColname
character
default 'Description' with the longer set description. It will usenameColname
orkeyColname
as needed.- geneColname
character
default 'geneID' containing delimited genes associated with each enrichment result.- countColname
character
default 'Count' with the number of genes in thegeneColname
column. It will be calculated as needed.- geneRatioColname
character
default 'GeneRatio' with the numeric (decimal) ratio of test genes to pathway genes, or a character indication in the form '6/24' with 'tested/pathway' gene counts.- pvalueColname
character
default 'padjust' with the best available column to use for statistical significance of enrichment.- directionColname
character
default 'zscore' with a directional score, typically a z-score or some other reasonably scaled numeric value where the sign indicates directionality, with '+' meaning activated and '-' meaning suppressed.- pathGenes
character
default 'setSize' indicating the number of genes in each set as tested for enrichment. This number is not always reported, however it is not used by 'multienrichjam', but is required by someclusterProfiler
functions.- geneHits
character
default 'Count' indicating the number of genes in thegeneColname
column. It will be calculated as needed.- verbose
logical
default FALSE, whether to print verbose output.- ...
additional arguments are ignored.
Value
character
of recognized colnames named by the type
of column, using NA
for any column types not found.
list
named by each column name argument, with one character
value or NULL
in each entry.
See also
Other jam utility functions:
ashape()
,
avg_angles()
,
avg_colors_by_list()
,
bulk_cnet_adjustments()
,
call_fn_ellipsis_deprecated()
,
cell_fun_bivariate()
,
collapse_mem_clusters()
,
colorRamp2D()
,
deconcat_df2()
,
display_colorRamp2D()
,
enrichList2geneHitList()
,
filter_mem_genes()
,
filter_mem_sets()
,
find_colname()
,
get_hull_data()
,
get_igraph_layout()
,
gsubs_remove()
,
handle_igraph_param_list()
,
isColorBlank()
,
make_legend_bivariate()
,
make_point_hull()
,
mem_find_overlap()
,
order_colors()
,
rank_mem_clusters()
,
rotate_coordinates()
,
subgraph_jam()
,
subset_mem()
,
summarize_node_spacing()
,
xyAngle()
Examples
newborn_txt <- system.file("extdata",
"Newborns-IPA.txt",
package="multienrichjam");
ipa_dfs <- importIPAenrichment(newborn_txt);
find_enrich_colnames(ipa_dfs[[1]])
#> $keyColname
#> [1] "Name"
#>
#> $nameColname
#> [1] "Name"
#>
#> $descriptionColname
#> [1] "Name"
#>
#> $geneColname
#> [1] "geneNames"
#>
#> $countColname
#> NULL
#>
#> $geneRatioColname
#> [1] "Ratio"
#>
#> $pvalueColname
#> [1] "P-value"
#>
#> $directionColname
#> NULL
#>
#> $pathGenes
#> NULL
#>
#> $geneHits
#> NULL
#>
er <- enrichDF2enrichResult(ipa_dfs[[1]])
find_enrich_colnames(er)
#> $keyColname
#> [1] "ID"
#>
#> $nameColname
#> [1] "Description"
#>
#> $descriptionColname
#> [1] "Description"
#>
#> $geneColname
#> [1] "geneID"
#>
#> $countColname
#> [1] "Count"
#>
#> $geneRatioColname
#> [1] "GeneRatio"
#>
#> $pvalueColname
#> [1] "p.adjust"
#>
#> $directionColname
#> NULL
#>
#> $pathGenes
#> [1] "setSize"
#>
#> $geneHits
#> [1] "Count"
#>