Skip to contents

Save genotypes from the tree sequence as a VCF file

Usage

ts_vcf(ts, path, chrom = NULL, individuals = NULL)

Arguments

ts

Tree sequence object of the class slendr_ts

path

Path to a VCF file

chrom

Chromosome name to be written in the CHROM column of the VCF

individuals

A character vector of individuals in the tree sequence. If missing, all individuals present in the tree sequence will be saved.

Value

No return value, called for side effects