query_table | R Documentation |
Query by genomic coordinates.
query_table(
target_path,
target_index = paste0(target_path, ".tbi"),
query_granges,
query_method = c("rsamtools", "seqminer", "conda"),
local = NULL,
overlapping_only = FALSE,
query_save = TRUE,
save_path = tempfile(fileext = "tsv.gz"),
cleanup_tbi = TRUE,
conda_env = "echoR_mini",
nThread = 1,
verbose = TRUE
)
target_path |
Path to tabix file. |
target_index |
Tabix index file for |
query_granges |
GRanges object
to be used for querying the |
query_method |
Method used for querying. See query for available options. |
local |
Whether |
overlapping_only |
Remove variants that do not overlap with the
positions in |
query_save |
Whether to save the queried data subset. |
save_path |
File path to save query subset to (as table). |
cleanup_tbi |
Remove local copies of tabix index file (.tbi) after completing queries. |
conda_env |
Conda environments to search in.
If |
nThread |
Number of threads to use. |
verbose |
Print messages. |
data.table
with the queried subset of genomic data.
Other tabix functions:
construct_tabix_path()
,
construct_vcf_path()
,
convert()
,
index
,
query_vcf()
,
read_bgz()
,
run_bgzip()
query_dat <- echodata::BST1
#### local ####
target_path <- echodata::example_fullSS()
tabix_files <- echotabix::convert(target_path = target_path,
start_col = "BP")
query_res <- echotabix::query_table(
target_path = tabix_files$path,
query_dat = query_dat)
#### remote ####
target_path <- file.path(
"https://egg2.wustl.edu/roadmap/data/byFileType",
"chromhmmSegmentations/ChmmModels/coreMarks/jointModel/final",
"E099_15_coreMarks_dense.bed.bgz"
)
query_res2 <- echotabix::query_table(
target_path = target_path,
query_granges = query_dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.