I have reads with 151bp length. I heard that the convention is to set the k-mer size as 1/2 to 2/3 the read length. In this case, it would mean that the k-mer size should be 75-100bp. However, isn't this range too erroneous? I want to correct my reads using Musket and it recommends default kmer size of 21.
You can use something like
jellyfish
to get a count of possible k-mers: https://github.com/gmarcais/JellyfishThat is probably for assemblies not what you are trying to do.