jermp / sshash

A compressed, associative, exact, and weighted dictionary for k-mers.
MIT License
84 stars 17 forks source link

Writing hashes to output file #31

Closed tbenavi1 closed 1 year ago

tbenavi1 commented 1 year ago

Hello,

Can you give me some advice of how to change the code so that when I query the index it writes the hashes to stdout/a file. Thanks for any advice.

jermp commented 1 year ago

Hi, There is no need to modify anything. The lookup function of SSHash already gives you the kmer_id which is the hash code you want. So just print this value of the std out.

Cheers, -Giulio