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

View source: R/mendel-interface.R

write_all_mendel_filesR Documentation

Write all necessary files for Mendel to do a gene-dropping run

Description

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

Usage

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

# 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/CKMRsim documentation built on Aug. 2, 2024, 7:23 a.m.