Closed bschilder closed 1 year ago
In extract_snp_subset
, reorder preexisting file priority:
#### Priority 1: Check if multi-finemap results exists ####
if (file.exists(multi_path) & isFALSE(force_new_subset)){
messager("+ Importing pre-existing file:",multi_path, v=verbose)
echodata::check_if_empty(multi_path)
query <- data.table::fread(multi_path)
return(query)
#### Priority 2: Check is subset exists ####
} else if(file.exists(subset_path) & isFALSE(force_new_subset)){
messager("+ Importing pre-existing file:",subset_path, v=verbose)
echodata::check_if_empty(subset_path)
query <- data.table::fread(subset_path)
return(query)
} else {
#### Priority 3: Convert and query ####
Also force_new_finemap=
was set to TRUE by default. Have set back to FALSE.
1. Bug description
finemap_loci
hits errors when run twice in a row.Console output
Expected behaviour
Import prior results.
2. Reproducible example
Code
3. Session info