View source: R/query_vcf_conda.R
query_vcf_conda | R Documentation |
Query a subset of a VCF file (remote or local)
using tabix
via echoconda.
Advantages:
Fast.
Not dependent on any R packages.
query_vcf_conda(
target_path,
query_granges,
samples = character(),
download_index = FALSE,
query_save = FALSE,
save_path = NULL,
conda_env = "echoR_mini",
verbose = TRUE
)
target_path |
Path to local VCF file or remote URL. |
query_granges |
GRanges object
to be used for querying the |
samples |
[Optional] Sample names to subset the VCF by. If this option is used, the GRanges object will be converted to a ScanVcfParam for usage by readVcf. |
download_index |
Whether to download the index when querying.
Corresponds to the |
query_save |
Whether to save the results of the query on disk. Note: Writing to disk can take some time. |
save_path |
File path to save query subset to (as VCF). |
conda_env |
Conda environments to search in.
If |
verbose |
Print messages. |
CollapsedVCF object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.