write_all_mendel_files: Write all necessary files for Mendel to do a gene-dropping...

Description Usage Arguments Examples

View source: R/mendel-interface.R

Description

Writes all files in the directory Dir but does not launch mendel.

Usage

1
write_all_mendel_files(ID, Reps, Seed, Markers, Pedigree, Dir = ".")

Arguments

ID

The ID or identifier of the run. This string will be prepended to all input and output files.

Reps

The number of replicate data sets to simulate.

Seed

The random seed to use. This must be a single integer between 1 and 30,000.

Markers

A data frame in the format of long_markers that gives information about marker positions and allele frequencies.

Pedigree

A data frame formatted like any component of pedigrees which holds the pedigree to drop genes upon.

Dir

The directory in which to write the files. It must be created already. Defaults to the current working directory.

Examples

1
2
3
# make a temp directory to place things into:
tmpDir <- tempdir()
write_all_mendel_files("mendel-example", 10, 1234, long_markers, pedigrees$HS, Dir = tmpDir)

eriqande/gdropR documentation built on Feb. 25, 2021, 2:59 p.m.