This function generates a simulated Illumina file with SNP data for a specified number of SNPs and samples. The file includes a header section and a data section with fields such as SNP Name, Sample ID, GC Score, Theta, X, Y, X Raw, Y Raw, and Log R Ratio.
simulate_illumina_file(
filepath,
num_snps = 10,
num_samples = 1,
sample_id_prefix = "SAMP",
mk_id = "MK-",
seed = 123
)None. The function writes the simulated Illumina file to the specified path.
The path where the simulated Illumina file will be saved. Default is "simulated_summary.txt".
The number of SNPs to simulate. Default is 10.
The number of samples to simulate. Default is 1.
The prefix for sample IDs. Default is "SAMP".
The prefix for marker IDs. Default is "MK-".
The seed for random number generation to ensure reproducibility. Default is 123.
The simulated data includes random values for GC Score, Theta, X, Y, X Raw, Y Raw, and Log R Ratio. The header section provides metadata about the file, including the number of SNPs and samples.