π Output files
Every file name ends in the random seed passed with --random_seed. The Stage column matches the commands: 1β4 are the main commands, helper the optional helper commands.
| File | Stage | Description |
|---|---|---|
ts_{seed}.trees |
1 | Tree sequence (no mutations) β always written |
sim_ind_node_map_{seed}.csv |
1 | Host β strain node mapping, with each nodeβs time (generations before present) β always written |
node_pairs_{seed}.csv |
1 | Recombinant node pairs from same meiosis |
lineage_{seed}.csv |
1 | Per-generation childβparent strain lineage, pre-simplify node IDs, one row per inherited genome segment (left, right) (--save_lineage) |
node_id_map_{seed}.csv |
1 | Pre-simplify β post-simplify node ID mapping (--save_lineage) |
ts_mut_{seed}.trees |
2 | Tree sequence with mutations |
output_{seed}_strain.vcf |
3 | Per-strain genotypes (0/1) |
output_{seed}_host_depth.vcf |
4 | Per-host genotypes (0/0, 0/1, 1/1; e.g. 1/2 at multi-allelic sites; ./. with no reads) with read counts per allele, from realistic read depth (a depth file or the depth model); the header records the depth source, the model values used and the error rates (--error_wt_mut, --error_mut_wt) |
host_depth_profiles_{seed}.csv |
4 | Each hostβs depth source. With --depth_zip: sim_id, ind_id, sample and depth_file (its name in the zip). With --depth_model: sim_id, ind_id, depth_model and typical_depth (the hostβs drawn typical depth) |
host_depth_proportions_{seed}.csv |
4 | Dirichlet strain proportions per host |
coal_T_{seed}.csv |
helper | Pairwise coalescence times per tree interval (chromosome-local coordinates) |
mut_T_{seed}.csv |
helper | Mutation chromosome, position, and age |
strain_transmission_map_{seed}.html |
helper | Interactive pedigree with mutations; explore it by chromosome and tree |
pairwise_strain_pedigree_map_{seed}.html |
helper | Interactive pedigree coalescence trace for any two strains |
relate_strain_{seed}.csv |
helper | Pairwise strain IBD fraction (krsim relate-strain) |
relate_host_{seed}.csv |
helper | Average pairwise IBD fraction per host, most recent generation only (krsim relate-host) |
KR_sim_{seed}.log |
all | Run log β every command adds a block with the time, krsim version, exact command line, files written and run time (and the full error details if it fails) |