Generate synthetic diploid genotypes and record elapsed time and approximate R memory usage for a benchmark expression.
Usage
benchmark_stage(label, expr)
synthetic_genotypes(samples = 100L, snps = 10000L, seed = 1L)
Arguments
- label
Benchmark label.
- expr
Expression to evaluate.
- samples
Number of individuals.
- snps
Number of SNPs.
- seed
Random seed.
Value
benchmark_stage() returns the value and a metrics table. synthetic_genotypes() returns a sample-by-SNP integer matrix.