Skip to content

bit_kmers function will panic at 'attempt to multiply with overflow', if k-mer length is longer than 32 bp. #58

@yiolino

Description

@yiolino

Thank you for great software.

I want to use bit_kmer function to count k-mer in fastq file.
But, if k-mer length is longer than 32 bases, it will panic.

I think this is because the bit_kmer sequence is represented as a u64 type (type BitKmerSeq = u64), but is there a method to perform k-mer counts over 32 bp?

I am using HashMap as a database for k-mer counts, but if I use fastq files as input, HashMap becomes too large.
So, I would like to use bit_kmer to reduce it as much as possible. Is there an alternative method that could be considered, such as "use u128 type"?

Regards,
tetsuro90

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions