markers2mendel_def_lines: convert a long-format data frame of loci into a vector of...

View source: R/mendel-interface.R

markers2mendel_def_linesR Documentation

convert a long-format data frame of loci into a vector of lines for a Mendel def file

Description

This makes a vector of text that has carriage returns and things in it as necessary. So, to include it in a def file, if the return from this function is called D you can just do cat(D, sep = "", file = myDef.txt), for example.

Usage

markers2mendel_def_lines(df)

Arguments

df

A data frame in the format of long_markers.

Details

Because it appears that Mendel requires unique locus names we will name them Chrom-underscore-Loc.

Examples

data(long_markers)
D <- markers2mendel_def_lines(long_markers)
cat(D[1:100], sep = "")

eriqande/CKMRsim documentation built on Aug. 2, 2024, 7:23 a.m.