View source: R/simulate_inputs.R
simulate_vcf | R Documentation |
Simulate a VCF file with GT, DP, and AD format fields for 2 chromosomes
simulate_vcf(
file_path,
seed,
n_tetraploid = 35,
n_diploid = 5,
n_triploid = 10,
n_markers = 100
)
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. |
None. The function writes the simulated VCF content to the specified file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.