writeVector: Exporting Haplotype Vectors

Description Usage Arguments Note Examples

View source: R/cALD_FamilyFunctions.R

Description

This function writes the haplotype vector and any accessory information to a text file.

Usage

1
writeVector(nLoc1, Res, hapVec, numSamp, writeName, genPhase, Prefix, vDir)

Arguments

nLoc1

Number of alleles at locus 1

Res

Data frame consisting of Locus Number, Locus Name, Allele Name, Allele Count, Allele Frequency and Frequency^2

hapVec

Haplotype vector

numSamp

The dataset's 2N value

writeName

The specified name for the vector

genPhase

Boolean describing phased (TRUE) or unphased (FALSE) analysis

Prefix

The specified prefix for the written vector file

vDir

The directory into which the vector file should be written.

Note

This function is for internal POULD use only.

Examples

1
#

pould documentation built on Oct. 23, 2020, 7 p.m.