R/FINEMAP_check_version_results.R

Defines functions FINEMAP_check_version_results

FINEMAP_check_version_results <- function(finemap_version,
                                          results_file){
    if((finemap_version < "1.3.1") &
       any((results_file==".cred"))){
        messager(
            "WARNING: FINEMAP<1.3.1 does not produce .cred results files.\n",
            "Using marginal probabilties from .snp results file instead.")
        results_file <- ".snp"
    }
    return(results_file)
}
RajLabMSSM/echofinemap documentation built on Jan. 3, 2023, 1:42 a.m.