diff --git a/include/info.impl b/include/info.impl index 02c3d6c..38347c9 100644 --- a/include/info.impl +++ b/include/info.impl @@ -1,6 +1,6 @@ namespace sshash { -double bits_per_kmer_formula(uint64_t k, /* kmer length */ +static double bits_per_kmer_formula(uint64_t k, /* kmer length */ uint64_t m, /* minimizer length */ uint64_t n, /* num. kmers */ uint64_t M) /* num. strings in SPSS */ @@ -90,4 +90,4 @@ void dictionary::print_info() const { print_space_breakdown(); } -} // namespace sshash \ No newline at end of file +} // namespace sshash diff --git a/include/minimizers.hpp b/include/minimizers.hpp index 61985d6..d9be4ce 100644 --- a/include/minimizers.hpp +++ b/include/minimizers.hpp @@ -29,10 +29,6 @@ struct minimizers { mphf_config.ram = 4 * essentials::GB; mphf_config.tmp_dir = build_config.tmp_dirname; - if (size <= 1) { - throw std::runtime_error( - "each partition must contain more than one key: use less partitions"); - } m_mphf.build_in_external_memory(begin, size, mphf_config); }