gmarcais / Jellyfish

A fast multi-threaded k-mer counter
Other
469 stars 136 forks source link

Intersect two hash tables #144

Open glogsdon1 opened 5 years ago

glogsdon1 commented 5 years ago

Hi,

I generated k-mer hash tables from two different datasets, and I would like to intersect them to find k-mers that are present in both. Is it possible to do this (perhaps using the query subcommand)?

Thanks, Glennis

gmarcais commented 5 years ago

Yes. Check the merge command in the latest 2.3.0 version. The min switch should basically do what you want.

KyleMondron commented 1 year ago

Is there an option for extracting reads which are NOT in the other hash? Essentially, the opposite of the intersection (all kmers in file A not present in file B)? I will plan to use mapping/alignment approach in the meantime. Thank you!