LD_pruning | R Documentation |
The LD_pruning
function takes in chromosome, the object of opened annotated GDS file,
the object from fitting the null model, and a given list of variants to perform LD pruning
among these variants in sequential conditional analysis by using score test.
For multiple phenotype analysis (obj_nullmodel$n.pheno > 1
),
the results correspond to multi-trait sequential conditional analysis by leveraging
the correlation structure between multiple phenotypes.
LD_pruning(
chr,
genofile,
obj_nullmodel,
variants_list,
maf_cutoff = 0.01,
cond_p_thresh = 1e-04,
method_cond = c("optimal", "naive"),
QC_label = "annotation/filter",
variant_type = c("variant", "SNV", "Indel"),
geno_missing_imputation = c("mean", "minor"),
geno_position_ascending = TRUE
)
chr |
chromosome. |
genofile |
an object of opened annotated GDS (aGDS) file. |
obj_nullmodel |
an object from fitting the null model, which is either the output from |
variants_list |
the data frame of variants to be LD-pruned in sequential conditional analysis and should contain 4 columns in the following order: chromosome (CHR), position (POS), reference allele (REF), and alternative allele (ALT). |
maf_cutoff |
the cutoff of minimum minor allele frequency in defining individual variants to be LD-pruned (default = 0.01). |
cond_p_thresh |
the cutoff of maximum conditional p-value allowed for variants to be kept in the LD-pruned list of variants (default = 1e-04). |
method_cond |
a character value indicating the method for conditional analysis.
|
QC_label |
channel name of the QC label in the GDS/aGDS file (default = "annotation/filter"). |
variant_type |
type of variant included in the analysis. Choices include "variant", "SNV", or "Indel" (default = "variant"). |
geno_missing_imputation |
method of handling missing genotypes. Either "mean" or "minor" (default = "mean"). |
geno_position_ascending |
logical: are the variant positions in ascending order in the GDS/aGDS file (default = TRUE). |
A data frame containing the list of LD-pruned variants in the given chromosome.
Li, Z., Li, X., et al. (2022). A framework for detecting noncoding rare-variant associations of large-scale whole-genome sequencing studies. Nature Methods, 19(12), 1599-1611. (pub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.