Batch Adjust SMR Results with FDR and Bonferroni Corrections
leo_smr_adjust_loop.RdThis function applies FDR/Bonferroni corrections to all SMR results within a specified directory.
Arguments
- dir
Character. The directory containing SMR result files. Files should have the
.smrextension and follow the naming conventionexposure@outcome.smr.- out_dir
Character. The output directory where the adjusted SMR files will be saved. If not specified, defaults to creating a
fdrdirectory within the input directory.- pattern
Character. A regular expression pattern to match SMR result files. Default is
"\.smr$"(i.e., files ending with.smr).- QTL_type
Character. Type of QTL (e.g., "eQTL", "sQTL").
- Source
Character. Source of the data (e.g., "GTEx", "Westra").
- ...
Additional arguments to be passed to
leo_smr_adjust.