Extract gene hit list from list of enrichResult
Source:R/jamenrich-utils.R
enrichList2geneHitList.RdExtract gene hit list from list of enrichResult
Usage
enrichList2geneHitList(
enrichList,
geneColname,
geneDelim = "[,/ ]",
make_unique = TRUE,
verbose = FALSE,
...
)Arguments
- enrichList
listofenrichResultobjects- geneColname
characterstring with the column name containing delimited gene identifiers.- geneDelim
characterregular expression used to split delimited gene values. By default,enrichResultuses '/' forward slash as delimiter, however the default here will split any space or comma as well.- make_unique
logicaldefault TRUE, whether to return only unique genes per set, or potentially multiple genes per set. Typically there should only ever be one instance of a gene per set, but through a variety of other mechanisms they may exist, for example if two gene identifiers are resolved into the same gene symbol.- verbose
logicalwhether to print verbose output.- ...
additional arguments are ignored.
Details
This function is mainly for internal use in multienrichjam,
it takes a list of enrichResult objects, and determines
the full set of genes involved in each enrichResult.
Note that genes are sorted using jamba::mixedSort() for
alpha-numeric sorting, based upon version sorting.
This function also works with ComplexHeatmap::HeatmapList
objects.
See also
Other jam utility functions:
ashape(),
avg_angles(),
avg_colors_by_list(),
cell_fun_bivariate(),
collapse_mem_clusters(),
colorRamp2D(),
curateIPAcolnames(),
deconcat_df2(),
display_colorRamp2D(),
find_colname(),
find_enrich_colnames(),
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(),
summarize_node_spacing(),
with_ht_opts(),
xyAngle()