Usage
mr_format(
susie_result,
condition,
gwas_sumstats_db,
coverage = "cs_coverage_0.95",
allele_qc = TRUE,
molecular_name_obj = c("susie_results", condition, "region_info", "region_name"),
ld_meta_df
)Arguments
- susie_result
A list containing the results of SuSiE analysis. This list should include nested elements such as 'susie_results', 'susie_result_trimmed', and 'top_loci', containing details about the statistical analysis of genetic variants.
- condition
A character string specifying the conditions. This is used to select the corresponding subset of results within 'susie_result'.
- gwas_sumstats_db
A data frame containing summary statistics from GWAS studies. It should include columns for variant id and their associated statistics such as beta coefficients and standard errors.
- coverage
A character string specifying the coverage threshold for credible sets, used when 'sets' is not "sets". Defaults to "coverage_0.95", indicating a 95
allele_qcOptional. A logical value indicating whether allele qc should be performed on the variants. When TRUE, allele qc are applied to the variants based on the GWAS summary statistics database ('gwas_sumstats_db').
setsA character string indicating the method used to define sets of genetic variants. Defaults to "sets". This parameter is used to specify the type of sets to extract from the 'susie_result' object.
A data frame formatted for MR analysis or NULL if cs_list is empty. Description of what the function does.