ApplyMasks: Apply set of masks to haplotypes.

Description Usage Arguments Value

View source: R/apply_masks.R

Description

Applies a set of masks to haplotypes obtained with readFastPhase. The output is saved as fastPHASE *.inp file not including sample ids (a simplified version of fastPHASE files). It is ready for imputation with fastPHASE.

Usage

1
ApplyMasks(g, masks, pref, vcf = NULL)

Arguments

g

Character vector with original (unmasked) haplotypes

masks

List of masks as binary matrices

pref

path/to/prefix to save the output. The number of files created equals to the length of masks variable. The filenames are generated automatically like this: prefix.mn.inp, where prefix is a user defined string, n is an ordinal number of the mask.

vcf

VCF-class object. If provided, the output will be saved as vcf file. If not, as fastPHASE inp file.

Value

No values


inzilico/imputeqc documentation built on July 28, 2020, 5:31 p.m.