Merges a list of XGR annotations into a single GRangesList (or merged GRanges) object.
XGR_query(
lib.selections = c("ENCODE_TFBS_ClusteredV3_CellTypes", "TFBS_Conserved",
"Uniform_TFBS"),
as_grangesList = FALSE,
dat = NULL,
n_top = NULL,
nThread = 1
)
Which XGR annotations to check overlap with.
For full list of libraries see
here.
Passed to the RData.customised
argument in xRDataLoader.
Return as a GRangesList, instead of a single merged GRanges object.
data.table of genomic coordinates to query with.
Set as NULL
to return genome-wide data.
Filter to only the top N annotations
that have the greatest amount of overlap with the genomic coordinates of
dat
.
Number of cores to parallelise across.
Other XGR:
XGR_enrichment_bootstrap()
,
XGR_enrichment_plot()
,
XGR_enrichment()
,
XGR_filter_assays()
,
XGR_filter_sources()
,
XGR_import_annotations()
,
XGR_iterate_enrichment()
,
XGR_iterate_overlap()
,
XGR_merge_and_process()
,
XGR_parse_metadata()
,
XGR_plot_enrichment()
,
XGR_prepare_foreground_background()
,
XGR_sep_handler()
,
xgr_example
gr.lib <- echoannot::XGR_query(
lib.selections = c("ENCODE_DNaseI_ClusteredV3_CellTypes"),
dat = echodata::BST1,
n_top = 1)
#> Start at 2022-10-30 16:26:07
#>
#> 'ENCODE_DNaseI_ClusteredV3_CellTypes' (from http://galahad.well.ox.ac.uk/bigdata/ENCODE_DNaseI_ClusteredV3_CellTypes.RData) has been loaded into the working environment (at 2022-10-30 16:26:16)
#>
#> End at 2022-10-30 16:26:16
#> Runtime in total is: 9 secs
#> Converting dat to GRanges object.
#> 778 query SNP(s) detected with reference overlap.