This is helpful when looping over multiple sum stats, and you need to restart midway. Rather than reprocessing them all, you can just detect the ones that exist and return them.
Now implemented at the top of format_sumstats
check_save_out <- check_save_path(save_path = save_path,
write_vcf = write_vcf)
if(file.exists(check_save_out$save_path) & force_new==FALSE){
message("Importing previously formatted file. Set `force_new=TRUE` to override this.")
} else {
#Avoid reloading ref genome every time, save it to this parent environment
#after being made once - speed up code
rsids = NULL
#Check input parameters
This is helpful when looping over multiple sum stats, and you need to restart midway. Rather than reprocessing them all, you can just detect the ones that exist and return them.
Now implemented at the top of
format_sumstats