@@ -179,7 +179,7 @@ region_data_to_colocboost_input <- function(region_data) {
179179# ' # Use richer LD metadata from load_LD_matrix() for QC, while still passing
180180# ' # ColocBoost's native LD input.
181181# ' ld_data <- load_LD_matrix(ld_meta_file, region)
182- # ' fit <- colocboost_analysis(sumstat = sumstat, LD = ld_data$LD_matrix ,
182+ # ' fit <- colocboost_analysis(sumstat = sumstat, LD = getCorrelation( ld_data) ,
183183# ' LD_reference_info = ld_data, qc_method = "none")
184184# '
185185# ' # Individual-level input with explicit genotype QC thresholds.
@@ -678,14 +678,16 @@ colocboost_pipeline <- function(
678678# ' @param region_data A region data loaded from \code{load_regional_data}.
679679# ' @param maf_cutoff A scalar to remove variants with maf < maf_cutoff.
680680# ' @param pip_cutoff_to_skip_ind A vector of cutoff values for skipping individual contexts.
681+ # ' @param keep_indel Logical; if \code{FALSE}, remove indel variants during
682+ # ' summary-statistic allele harmonization.
681683# ' @param pip_cutoff_to_skip_sumstat A vector of cutoff values for skipping summary-stat studies.
682684# ' @param qc_method Quality control method to use. Options are "none",
683685# ' "slalom", or "dentist". \code{NULL} is treated as \code{"none"} for
684686# ' basic-only summary-stat preprocessing.
685687# ' @param impute Logical; if TRUE, performs imputation when required metadata are available.
686688# ' @param impute_opts A list of imputation options.
687689# ' @return A list containing post-QC \code{individual_data} and \code{sumstat_data}.
688- # ' @noRd
690+ # ' @export
689691qc_regional_data <- function (region_data ,
690692 # - individual
691693 maf_cutoff = 0.0005 ,
@@ -694,7 +696,7 @@ qc_regional_data <- function(region_data,
694696 keep_indel = TRUE ,
695697 pip_cutoff_to_skip_sumstat = 0 ,
696698 qc_method = NULL ,
697- impute = TRUE ,
699+ impute = FALSE ,
698700 impute_opts = list (rcond = 0.01 , R2_threshold = 0.6 , minimum_ld = 5 , lamb = 0.01 )) {
699701 qc_method <- .resolve_summary_qc_method(qc_method )
700702 qced_individual_to_region_data <- function (ind_qc ) {
@@ -793,7 +795,7 @@ qc_regional_data <- function(region_data,
793795# ' @param pip_cutoff_to_skip Optional single-effect PIP cutoff.
794796# ' @return A named list of cleaned context-level \code{X}/\code{Y} records, or
795797# ' one cleaned record for matrix inputs.
796- # ' @export
798+ # ' @noRd
797799qc_individual_data <- function (X , Y , maf = NULL , X_variance = NULL ,
798800 missing_rate_thresh = NULL ,
799801 maf_cutoff = 0.0005 ,
0 commit comments