COJO | R Documentation |
Main function to run either the conditional stepwise procedure (genome-wide) or the conditional analysis (locus-specific) from GCTA-COJO.
COJO( dat, locus_dir, bfile = file.path(locus_dir, "LD/plink"), fullSS_path = NULL, conditioned_snps = NULL, exclude = NULL, prefix = "cojo", run_stepwise = TRUE, run_conditional = FALSE, run_joint = FALSE, credset_thresh = 0.95, freq_cutoff = 0.1, compute_n = "ldsc", colmap = echodata::construct_colmap(), full_genome = FALSE, gcta_path = echoconda::find_executables_remote(tool = "gcta")[[1]], verbose = TRUE, ... )
dat |
Fine-mapping results data. |
locus_dir |
Locus-specific directory to store results in. |
bfile |
Input PLINK binary PED files, e.g. test.fam, test.bim and test.bed (see PLINK user manual for details). |
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. |
conditioned_snps |
Which SNPs to conditions on when fine-mapping with (e.g. COJO). |
exclude |
Specify a list of SNPs to be excluded from the analysis. |
prefix |
Prefix to use for file names. |
run_stepwise |
|
run_conditional |
|
run_joint |
|
credset_thresh |
The minimum mean Posterior Probability (across all fine-mapping methods used) of SNPs to be included in the "mean.CS" column. |
freq_cutoff |
Minimum variant frequency cutoff. |
compute_n |
How to compute per-SNP sample size (new column "N").
|
colmap |
Column mappings object. Uses construct_colmap by default. |
full_genome |
Whether to run GCTA-COJO across genome-wide ( |
gcta_path |
Path to the GCTA-COJO executable. |
verbose |
Print messages. |
... |
Arguments passed on to
|
Documentation
Columns are SNP, the effect allele, the other allele,
frequency of the effect allele,
effect size, standard error, p-value and sample size.
The headers are not keywords and will be omitted by the program.
Important: "A1" needs to be the effect allele
with "A2" being the other allele and "freq"
should be the frequency of "A1".'
Note: 1) For a case-control study, the effect size should be log(odds ratio)
with its corresponding standard error.
2) Please always input the summary statistics of all SNPs even
if your analysis only focuses on a subset of SNPs
because the program needs the summary data of all SNPs to calculate the
phenotypic variance.
You can use one of the --extract
options (Data management) to limit
the COJO analysis in a certain genomic region.
General results columns:
Chr : Chromosome.
SNP : SNP RSID.
bp : Physical position.
refA : Effect allele.
freq : Frequency of the effect allele in the original data.
b : Effect size.
se : Standard error.
p : p-value from the original GWAS or meta-analysis.
n : Estimated effective sample size.
freq_geno : Frequency of the effect allele in the reference sample.
Stepwise analysis results columns:
bJ : Effect size from the joint analysis of all the selected SNPs.
bJ_se : Standard error from the joint analysis of all the selected SNPs.
pJ : p-value from the joint analysis of all the selected SNPs.
LD_r : LD correlation between the SNP i and SNP i + 1 for the SNPs on the list.
LD_r2 : LD_r squared
CS : Whether the SNP is in the Credible Set,
defined as any SNP with where pJ<(1-credset_thresh)
.
Conditional analysis results columns:
bC : effect size from the conditional analysis
bC_se : standard error from the conditional analysis
pC : p-value from the conditional analysis
CS : Whether the SNP is in the Credible Set,
defined as any SNP with where pC<(1-credset_thresh)
.
COJO documentation Publication 1 Publication 2
Other COJO:
COJO_locus_subdir()
,
COJO_process_results()
,
COJO_run()
vcf <- system.file("extdata", "BST1.1KGphase3.vcf.bgz", package = "echodata") dat <- echodata::BST1 locus_dir <- file.path(tempdir(), echodata::locus_dir) fullSS_path <- echodata::example_fullSS() bfile <- echoLD::vcf_to_plink(vcf = vcf)$prefix cojo_DT <- COJO(dat = dat, locus_dir = locus_dir, fullSS_path = fullSS_path, bfile = bfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.