While I am in the wrapping process, I tried to retrieve the groups associated with a kmer color, but I couldn't find a direct way.
So, I will put what I understood so far, and please correct me if I'm wrong.
After indexing, we will have a kDataFrame with key(hashVal):Val(kmerOrder). Then we can get the color associated with that kmer through the following getKmerColumn function getKmerColumn("color", hashVal)
While I am in the wrapping process, I tried to retrieve the groups associated with a kmer color, but I couldn't find a direct way.
So, I will put what I understood so far, and please correct me if I'm wrong.
After indexing, we will have a kDataFrame with
key(hashVal):Val(kmerOrder).
Then we can get the color associated with that kmer through the followinggetKmerColumn
functiongetKmerColumn("color", hashVal)
https://github.com/dib-lab/kProcessor/blob/6fa68570bd226a91406d74aa3185cda4bd049824/include/kProcessor/kDataFrame.hpp#L414
Or by kmer Order like here, https://github.com/dib-lab/kProcessor/blob/6fa68570bd226a91406d74aa3185cda4bd049824/include/kProcessor/kDataFrame.hpp#L421
Now I have the color. How can I get to the
color->group_IDs
through the kDataFrame in an easy way, if possible?Here's the corresponding Python code for this.
cc @drtamermansour @shokrof