Man pages for JeffWeinell/misc.wrappers
Miscellaneous Wrapper Functions for Spatial Population Genomics

admixtureMapGenerate a pdf with interpolated admixture coefficients for...
admixturePlotsGenerate a pdf with admixture plots for each K Takes as input...
assignmentPlotsGenerate a pdf with assignment plots for each K Takes as...
bbox2pointscorner coordinates of area described by bounding box Returns...
check.if.executableCheck Executable Test if a file is executable
check_mcmcpath_contentsCheck MCMC Path Contents Checks that all of the EEMs output...
check_plot_paramsCheck Plot Parameters Internal function used for making EEMS...
cladesubsubstitute a clade with another clade replaces a specified...
config_miscwrappersconfig_miscwrappers function This function is used to tell...
coords2sp.polycoords2sp.poly function Convert a coordinates matrix into a...
cpSNPsVCFcopy STACKS SNPs VCF files using informative names Copies...
create.outercreate.outer function This function generates an '_.outer'...
create_popfileGenerate a popfile from STRUCTURE output Takes as input the...
cstacks_cleanupcleanup cstacks Deletes cstacks bash scripts in a directory....
cstacks_setupbatch setup cstacks For each combination of N and set of...
dapc.biplot.arrangeArrange list of ggplot biplots Function to arrange ggplot...
dapc.plot.arrangeArrange DAPC density plots. Function to arrange plots of...
dapc.plot.arrange2Arrange DAPC density plots. Function to arrange plots of...
decompose_distancesgeo distances Used for making EEMS plots This function is...
default_eems_colorsdefault eems colors Use the default DarkOrange to Blue color...
dfTransformTransform CRS coordinates data frame Transform coordinates...
diffcolCartesian color distance Cartesian distance between two...
dlogunifdlunif function loguniform probability density function
dunif.quotient.a0Probability density function for the quotient of two uniform...
dunif.quotient.iidProbability density function for the quotient of two...
easySFS_fsc2Run easySFS even easier to generate input MSFS and population...
eems_cleanupcleanup eems Deletes eems_setup bash and R scripts in a...
eems_contourseems contours Internal function used for making EEMS plots....
eemsgg2rastereemsgg2raster function Convert one of the four maps produced...
equivmembership to equivalency matrix For a vector with entries...
equivalencyMatsennumerate equivalence relations A list of n x n matrices,...
evalfunEvaluate function name with lists of arguments
EvannoPlotsGenerate Evanno Method Plots This function uses functions...
exepaths_miscwrappersexepaths_miscwrappers function Function to return the paths...
extract.base.polygonsextract.base.polygons function Extract all lowest-level...
fastsimcoalsims_Parfastsimcoalsims_Par Function to run fastsimcoalsims in...
filled_contour_graphfilled contour graph Generates a filled countour graph ggplot...
filled_contour_ratesfilled contour rates Generates a ggplot object with filled...
filled_eems_contourfilled eems contour generates ggplot object corresponding to...
filled_prob_contourfilled probability contour Generates asthetics for ggplots....
filter.varFilter (query) genotype by variation Functon to test that a...
filter.vcfFilter a VCF file or vcfR object. Filter or sample...
find.exe.pathFind path to program This function searches the system path...
fitmodelsFit data and a list of Mk models with simmap Makes a list of...
fracDfracD function Calculates the fractal dimension of...
genind2diffsgenind2diffs function Generates a diffs matrix from a genind...
geo_distmgeo distances Used for making EEMS plots This function is...
get_dist_metricget distance metric Get the distance metric from...
ggscatter.dapcMake ggplot with DAPC scatterplot THIS FUNCTION IS LARGELY...
gg.world110_projggplot projected Natural Earth This function creates a ggplot...
goodcolorsReturn a good set of colors to use for clusters in admixture...
goodcolors2Return my favorite set of colors to use for clusters in...
gstacks_cleanupcleanup gstacks Deletes gstacks bash scripts in a directory....
gstacks_setupbatch setup gstacks For each set samples (processed with...
hex2decHex to xyz colors Hex to xyz color coordinates
is_colorIs color Check that a string, or a vector of strings,...
load_required_packagesload required packages Load packages This function is from...
minCladesListminimum length set of clades with tip labels Returns a...
newpointCoordinates of point on ray Used in the function...
pairwise_distpairwise distances between demes Internal function used for...
plot_eemsplot_eems function Invokes the reemsplots2 function...
plot.funUnifplot PDF for sum or product of two uniform distributions...
plot_log_posteriorplot eems log posterior Used for making EEMS plot 8 This...
plot_modelPlot Demographic Model This function creates a graphical...
plot_pairwise_dissimilarities_plot pairwise dissimilarities between demes Internal function...
plottable.dapcComponents plottable Creates a list with two logical data...
points.on.landReturn coordinates over land Returns the set of input...
populations_cleanupcleanup populations Deletes populations bash scripts in a...
populations_setupbatch setup populations For each set samples (processed with...
produnifPDF or CDF for the product of n independent uniformly...
psetPowerset Function to return the powerset for a numeric or...
rangeBufferBuffered range Calculate the limits of a buffered range for a...
rcoordsSample points in a random-centered area or tethered group of...
read_dimnsRead dimns Internal function used for making EEMS plots. This...
read_matrixread matrix Internal function used for making EEMS plots....
read_vectorread vector Internal function used for making EEMS plots....
read_voronoiread voronoi Reads EEMs output and constructs parameters for...
reassignreassign Transforms a vector or matrix (mode character or...
rgb.cbTransform sRGB colorspace into colorblind colorspaces Uses...
rlogunifSample from loguniform distribution
rsbatchsbatch setup and submit Creates slurm sbatch submission...
Rshwrite bash and Rscript files for R code Creates .sh (bash)...
run_DAPCRun DAPC and Plot Run adagenet DAPC analyses and generate...
run_delimitRRun delimitR Function to use delimitR to setup standard...
runeems_snps_setupruneems_snps_setup function Wrapper function for preparing to...
run_fastStructureRun run_fastStructure from SNP data in a VCF file and and...
run_SNMFWrapper for LEA snmf Runs LEA function snmf function and...
run_structureRun run_structure from SNP data in a VCF file and and plot...
runtessRun tess3r and plot results Pipeline with wrappers for...
rx2y2Random point conditioned on distance Return x and y...
sim.vcfSimulate SNPs as VCF
sp2coordssp2coords function Function to extract the coordinates matrix...
sqsh single quote Calls the base function shQuote with default...
sstacks_cleanupcleanup sstacks Deletes sstacks bash scripts in a directory....
sstacks_setupbatch setup sstacks For each set samples (processed with...
stacks_cleanupcleanup stacks Deletes cstacks, sstacks, tsv2bam, gstacks,...
summarize_stackssummarize_stacks For each set of samples processed with...
summarize_VCFssummarize_VCFs Same as 'summarize_stacks', except the full...
sumnorm.PDFPDF sum of normal distributions Probability distribution for...
sumunifPDF or CDF for the sum of n independent uniformly continuous...
theme_voidtheme void mostly blank ggplot theme This function is from...
tiles2contourstiles2contours Converts tiles two contours This function is...
transitionModelsGenerate transition models Makes a list of all possible model...
tsv2bam_cleanupcleanup tsv2bam Deletes tsv2bam bash scripts in a directory....
tsv2bam_setupbatch setup tsv2bam For each set samples (processed with...
update_miscwrappersupdate miscwrappers Updates misc.wrappers by calling...
ustacks_cleanupcleanup ustacks Deletes ustacks bash scripts in a directory....
ustacks_setupbatch setup ustacks This function creates a bash job file for...
vcf2fastStructureConvert VCF file/object to fastStructure input file (for SNP...
vcf2partsvcf2parts Generate a phylip format partition file from VCF...
vcf2phyVCF format to Phylip format Converts VCF to phylip and saves...
vcf2structureConvert VCF file/object to STRUCTURE file (for SNP data)...
vcf_getSNPGet Best SNP for each locus from VCF From a VCF with multiple...
vcfR2genoConvert VCF object/file to genotypic matrix The object...
vcfR2lfmmReads a VCF object (including those not usually compatible...
JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.