Rev Language Reference


readVCF - Read VCF

Read VCF file into RevBayes

Usage

readVCF(String file, String type)

Arguments

file : String (pass by value)
Relative or absolute name of the file.
type : String (pass by value)
The type of data to be constructed.
Default : binary
Options : DNA|binary

Return Type

Details

readVCF reads in a file that is in Variant Call Format (VCF), accepting two arguments. The first argument specifies the relative or absolute file path to desired VCF file. The second specifies type of data to be constructed (default binary). This function only allows for 0, 1, and . characters in the VCF file.

Example

x <- readVCF("path/to/VCF/file", "binary")