simulate_vcf: Simulate a VCF file with GT, DP, and AD format fields for 2...

View source: R/simulate_inputs.R

simulate_vcfR Documentation

Simulate a VCF file with GT, DP, and AD format fields for 2 chromosomes

Description

Simulate a VCF file with GT, DP, and AD format fields for 2 chromosomes

Usage

simulate_vcf(
  file_path,
  seed,
  n_tetraploid = 35,
  n_diploid = 5,
  n_triploid = 10,
  n_markers = 100
)

Arguments

file_path

The path where the simulated VCF file will be saved.

seed

The seed for random number generation to ensure reproducibility.

n_tetraploid

Number of tetraploid samples. Default is 35.

n_diploid

Number of diploid samples. Default is 5.

n_triploid

Number of triploid samples. Default is 10.

n_markers

Number of markers to simulate. Default is 100.

Value

None. The function writes the simulated VCF content to the specified file.


Qploidy documentation built on June 8, 2025, 10 a.m.