Learn R Programming

MixviR (version 3.5.0)

vcf_to_mixvir: Convert Sample VCF to MixviR Input Format

Description

Create data frame with relevant contents of VCF

Usage

vcf_to_mixvir(infile, max.vcf.size = 1e+08)

Value

Data frame with cols "CHR" "POS" "REF" "ALT" "DP" "REF_COUNT" "ALT_COUNT"

Arguments

infile

Path to a vcf file that must contain "DP" and "AD" flags in the FORMAT field.

max.vcf.size

Max memory usage (in bytes) allowed when reading in vcf file (from vcfR).

Examples

Run this code
vcf_to_mixvir(infile = system.file("extdata", "vcfs", "Sample1_04182021.vcf.gz", package="MixviR"))

Run the code above in your browser using DataLab