Learn R Programming

perfectphyloR (version 0.2.1)

vcftohapMat: Create a hapMat object from variant call format (vcf) file.

Description

This function creates a hapMat object from variant call format (vcf) file.

Usage

vcftohapMat(vcf_file_path)

Arguments

vcf_file_path

File path to the vcf file.

Value

An object of class hapMat.

Examples

Run this code
# NOT RUN {
# Specify the file path.
vcf_file_path <- "C:/vcfData/vcfData.vcf.gz"
# Create a hapMat object from the vcf file.
ex_vcf_hapMat <- vcftohapMat(vcf_file_path) 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab