eems_cleanup: cleanup eems Deletes eems_setup bash and R scripts in a...

View source: R/runeems_snps_setup.R

eems_cleanupR Documentation

cleanup eems Deletes eems_setup bash and R scripts in a directory. Run this after all eems jobs are completed. Does not delete the "jobX.sh" bash files that run eems.

Description

cleanup eems

Deletes eems_setup bash and R scripts in a directory. Run this after all eems jobs are completed. Does not delete the "jobX.sh" bash files that run eems.

Usage

eems_cleanup(dir)

Arguments

dir

Character string with path to directory containing eems .sh amd .R scripts

Examples

library(misc.wrappers)

# Path to VCF with SNPs
vcf.path    <- file.path(system.file("extdata", package = "misc.wrappers"), "simK4.vcf.gz")
# Path to file with longitude and latitude of sampling locality of each individual
coords.path <- file.path(system.file("extdata", package = "misc.wrappers"), "simK4_coords.txt")
# Where to save output
save.path   <- file.path(system.file("examples", package = "misc.wrappers"),"simK4")
# Setup environment and input files for runeems_snps
eems.setup  <- runeems_snps_setup(x=vcf.path, coords=coords.path, save.in=save.path, numMCMCIter = 100000, numBurnIter = 10000, numThinIter = 999)

JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.