Identify the sources with the most annotations in the locus. Then only keep these sources.
Arguments
- gr.lib
Results from XGR_query.
- n_top_sources
Number of top sources to include per library.
See also
Other XGR:
XGR_enrichment(),
XGR_enrichment_bootstrap(),
XGR_enrichment_plot(),
XGR_filter_assays(),
XGR_import_annotations(),
XGR_iterate_enrichment(),
XGR_iterate_overlap(),
XGR_merge_and_process(),
XGR_parse_metadata(),
XGR_plot_enrichment(),
XGR_prepare_foreground_background(),
XGR_query(),
XGR_sep_handler(),
xgr_example
Examples
if (FALSE) { # \dontrun{
gr.filt <- echoannot::XGR_filter_sources(gr.lib = echoannot::xgr_example)
} # }