analyze_locus: Extract Locus Information from VCF Data for HAD Format

Description Usage Arguments Value Examples

View source: R/vcf2had.R

Description

A function used to fill the HAD converted data frame with the number of reads on each allele for heterozygous loci. Not exported.

Usage

1
analyze_locus(locus, remove_double_hets = FALSE)

Arguments

locus

A character string of the locus information from a column of the VCF data frame.

remove_double_hets

Logical for determining if double heterozygous loci should be treated as missing information.

Value

A numeric vector of the number of reads for each allele at heterozygous loci.

Examples

1
## Not run: analyze_locus("1/0:8:0,6,0,2", remove_double_hets=TRUE)

dandewaters/VCF2Ploidy documentation built on Jan. 17, 2021, 2:12 p.m.