View source: R/multifinemap_handler.R
multifinemap_handler | R Documentation |
Fine-mapping will be repeated on the same locus using each of the tools
in finemap_methods
.
Then, all results will be merged into the locus-specific multi-finemap file,
along with the original per-SNP GWAS/QTL summary statistics.
Each tools will have the following columns:
The posterior probability (PP) of a SNP being causal for the trait. Though this is a generalization and the exact meaning of PP will differ by tools (e.g. Posterior Inclusion Probability for SUSIE).
Which credible set the SNP is part of (within a locus).
If =0
, then the SNP was not part of any credible set.
Some tools only produce one credible set per locus.
multifinemap_handler( dat, locus_dir, fullSS_path = NULL, finemap_methods, finemap_args = NULL, dataset_type = "GWAS", force_new_finemap = FALSE, LD_matrix = NULL, n_causal = 5, compute_n = "ldsc", conditioned_snps = NULL, credset_thresh = 0.95, case_control = TRUE, priors_col = NULL, verbose = TRUE, seed = 2022, nThread = 1, conda_env = "echoR_mini" )
dat |
Fine-mapping results data. |
locus_dir |
Locus-specific directory to store results in. |
fullSS_path |
Path to the full summary statistics file (GWAS or QTL) that you want to fine-map. It is usually best to provide the absolute path rather than the relative path. |
finemap_methods |
Fine-mapping methods to run. See lfm for a list of all fine-mapping methods currently available. |
finemap_args |
A named nested list containing additional arguments
for each fine-mapping method. e.g.
|
dataset_type |
The kind dataset you're fine-mapping (e.g. GWAS, eQTL, tQTL). This will also be used when creating the subdirectory where your results will be stored (e.g. Data/<dataset_type>/Kunkle_2019). |
force_new_finemap |
By default, if an fine-mapping results file for
a given locus is already present,
then echolocatoR will just use the preexisting file.
Set |
LD_matrix |
Linkage Disequilibrium (LD) matrix to use for fine-mapping. |
n_causal |
The maximum number of potential causal SNPs per locus. This parameter is used somewhat differently by different fine-mapping tools. See tool-specific functions for details. |
compute_n |
How to compute per-SNP sample size (new column "N").
|
conditioned_snps |
Which SNPs to conditions on when fine-mapping with (e.g. COJO). |
credset_thresh |
The minimum mean Posterior Probability (across all fine-mapping methods used) of SNPs to be included in the "mean.CS" column. |
case_control |
Whether the summary statistics come from a case-control
study (e.g. a GWAS of having Alzheimer's Disease or not) ( |
priors_col |
[Optional] Name of the a column in
|
verbose |
Print messages. |
seed |
Set the random seed for reproducible results. |
nThread |
Number of threads to parallelise across (when applicable). |
conda_env |
Conda environment to use. |
Other finemapping functions:
create_method_path()
,
multifinemap_handler_method()
,
multifinemap()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.