Skip to content

SSHash as a C++ API / library  #11

@jamshed

Description

@jamshed

Hello @jermp: thank you for designing this awesome data structure! We at @COMBINE-lab (tag: @rob-p) are finding SSHash very useful.

We are interested in using SSHash from within C++ codes, and were wondering if you could provide some C++ API / header for that. We are, for now, interested in the following basic functionalities. I'm using the "unitig" terminology in the following, but the input sequence types (i.e. unitigs / maximal paths) does not matter.

Given a k-mer x, find its:

  • hash value determined by SSHash, i.e. lookup(x)
  • unitig ID, i.e. unitig(x)
  • offset within the unitig that contains it, i.e. unitig_offset(x)

Given a unitig ID u, find its:

  • size, i.e. size(u)
  • list of neighbor unitigs, neighbors(u): this likely consists of a query of 2 * 4 (canonical) k-mers.

We hope that these might be feasible for you to provide.

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions