MCPcopy Create free account
hub / github.com/bbuchfink/diamond / decode_seed

Method decode_seed

src/basic/basic.cpp:299–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299string Reduction::decode_seed(const uint64_t seed, const size_t len) const {
300 string s(len, '-');
301 uint64_t c = seed;
302 for (size_t i = 0; i < len; ++i) {
303 s[len - i - 1] = amino_acid_traits.alphabet[c % size_];
304 c /= size_;
305 }
306 return s;
307}

Callers 1

list_seedsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected