Genome profiling is the reference-free, pre-assembly step that turns raw sequencing reads into a k-mer frequency spectrum and models it to estimate the genome's size, heterozygosity, repeat content, and ploidy. Those four numbers are not trivia: they set the expected assembly size (the NG50 denominator and the haplotig sanity check), the genome-size parameter for assemblers like Flye, the homozygous-coverage and purge settings for hifiasm, and the up-front decision about whether short reads can even produce the assembly being requested. This skill counts k-mers with KMC or Jellyfish, models the spectrum with GenomeScope2, and infers ploidy independently with Smudgeplot, while flagging the common traps that make the estimate wrong: too-low coverage, noisy ONT reads, contamination spikes, a too-small k, and confusing k-mer coverage with sequencing coverage.
Install the counters and modeling tools (Bioconda):
conda install -c bioconda kmc jellyfish genomescope2 smudgeplot merqury kat
best_k.sh (k selection) and meryl; $MERQURY should point at the install.Tell your AI agent what you want to do: - "Profile my genome from Illumina reads before I assemble" - "Estimate genome size and heterozygosity from these reads" - "Build a k-mer spectrum and run GenomeScope2" - "Figure out the ploidy of this non-model organism" - "Check whether my assembly is 2x too big because of haplotigs"
"I have 60x Illumina reads from an unknown beetle. Count 21-mers with KMC, run GenomeScope2 as diploid, and tell me the estimated genome size, heterozygosity, and repeat content, plus whether short reads will struggle with the heterozygosity."
"My expected genome size is about 12 Mb. Use Merqury best_k.sh to pick k, count k-mers with that k, and run GenomeScope2 so I can set the genome-size parameter for Flye."
"GenomeScope2 fits poorly as diploid for this plant. Run Smudgeplot on the het k-mer pairs and tell me whether it looks triploid or tetraploid, and whether that disagrees with GenomeScope."
"The GenomeScope size estimate is twice what I expected and the spectrum has an extra peak. Help me decide whether this is contamination, an organelle spike, or a too-small k."
"My HiFi assembly is 1.8x the GenomeScope estimate and BUSCO Duplicated is high. Confirm whether this is uncollapsed haplotigs and what to do before reporting the genome size."
best_k.sh from the expected genome size (k=21 for ~Gb genomes), using the same k for counting and modeling.-C), keeping singletons (-ci1) and capping the tail (-cs10000) to build the histogram.-k and a starting ploidy -p, then read the model summary: haploid genome length, heterozygosity, and percent unique (repeat content).-p.-g, hifiasm --hom-cov/purge level, and the short-vs-long-read decision.-k; a mismatch silently mis-scales the model.-C. WGS is unstranded, so forward and reverse k-mers must be merged.(L-k+1)/L factor.-p.