prep_vcf_for_est_m_rd: convert a VCF into an 012,-1 matrix and read_depth bin matrix...

Description Usage Arguments Value Examples

View source: R/prep_vcf_for_est_m_rd.R

Description

convert a VCF into an 012,-1 matrix and read_depth bin matrix for estimation

Usage

1
prep_vcf_for_est_m_rd(v, DF = "DP", minBin)

Arguments

v

a vcfR object into which a VCF file has been read

DF

Field to use for obtaining total read depth. Currently all that is available is DP.

minBin

minimum number of observations for each read depth bin

Value

This sends back a list with mat012: the 012,-1 matrix of genotypes, and dp_bins_list: the list returned by bin_depths().

Examples

1

whoa documentation built on Aug. 11, 2021, 9:06 a.m.