K-mers obtained from Jellyfish were filtered using the following requirements.
Primer specificity for species-specific detection:
1. If a k-mer matched another k-mer within the same species or a k-mer of another species, the k-mer was removed.
Tm (primer melting temperature):
2. If the Tm value of a k-mer was less than 67 or greater than 82, the k-mer was removed.
GC Content: Preferably in the range of 40%–60%. Include 1–2 G or C bases at the 3' end to improve binding stability; however, avoid excessive GC content at the 3' terminus to prevent non-specific binding.
3. If the GC content of a full-length k-mer (30-mers) was less than 11 or greater than 17, the k-mer was removed.
4. If the GC content of the former or latter half of a k-mer (15-mers) was less than four or greater than 10, the k-mer was removed.
5. If both the 5' and 3' ends of a k-mer were A or T, the k-mer was removed.
6. If both the 5' and 3' ends of a k-mer contained three or more of G or C, the k-mer was removed.
7. If both the 5' and 3' ends of a k-mer contained three or more of A or T, the k-mer was removed.
Avoid Repeats and Runs: Prevent intra-primer and inter-primer complementarity to reduce primer-dimer formation.
8. If a k-mer contained four or more runs of a single base (e.g., AAAAA or GGGG), the k-mer was removed.
9. If a k-mer contained more than three times of dinucleotide repeats (e.g., ATATAT or CGCGCG), the k-mer was removed.