Skip to content

Commit

Permalink
Make bits_per_kmer_formula static, remove partition size exception
Browse files Browse the repository at this point in the history
  • Loading branch information
adamant-pwn committed Jul 15, 2024
1 parent f3b6471 commit 72a92b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/info.impl
Original file line number Diff line number Diff line change
@@ -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 */
Expand Down Expand Up @@ -90,4 +90,4 @@ void dictionary<kmer_t>::print_info() const {
print_space_breakdown();
}

} // namespace sshash
} // namespace sshash
4 changes: 0 additions & 4 deletions include/minimizers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 72a92b6

Please sign in to comment.