vcf2R: Load a VCF file into R

Description Usage Arguments Value

Description

Load a VCF file into R

Usage

1
vcf2R(vcfFile, readDepth = FALSE, outPath = NULL)

Arguments

vcfFile

The filename (with necessary path) of the VCF file you want to read into R.

readDepth

A Boolean argument indicating whether or not to calculate the mean read depth for each individual from the specified VCF file. Default is FALSE. VCF file you want to read into R.

outPath

The file path prepended to all output objects.

Value

A genotype matrix of 0s, 1s, and 2s denoting the number of the counted allele in each individual at each locus. Missing data are indicated with NA.


gbradburd/popgenstuff documentation built on Oct. 16, 2021, 12:05 a.m.