Skip to content

broken the sort #9

@pixie-grasper

Description

@pixie-grasper

Hello, I'm using libdivsufsort on the GitHub,
and I've tried to use it.

But, when input is a 'appellee$' (without quotation-mark), I've wanted 'e$elplepa', but we'll get '$eelplepa' as an output (see the slide https://www.cs.cmu.edu/~ckingsf/bioinfo-lectures/bwt.pdf page 6).

snippet is there.

  auto buffer = static_cast<sauchar_t*>(malloc(sizeof(sauchar_t) * source.size()));
  for (auto i = 0ul; i < source.size(); i++) {
    buffer[i] = static_cast<sauchar_t>(source[i]);
  }
  auto index = divbwt(buffer, buffer, NULL, static_cast<saidx_t>(source.size()));

What happend?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions