[Search] Shapes are the wrong way around
@eseiler is already working on this.
Since Oct 20, 2022.
Assessment
This issue has not been assessed yet.
Description
I think the kmer hash view does not work with views, which have shapes in the form 1101 or 1011.
#include <seqan3/alphabet/nucleotide/dna4.hpp>
#include <seqan3/core/debug_stream.hpp>
#include <seqan3/search/views/kmer_hash.hpp>
int main()
{
using namespace seqan3::literals;
std::vector<seqan3::dna4> const text{"ACGTC"_dna4};
auto const shape1011 = seqan3::shape{seqan3::bin_literal{0b1011}};
auto const shape1101 = seqan3::shape{seqan3::bin_literal{0b1101}};
seqan3::debug_stream << "shape1011\nExpected: [11,29]\nActual : "
<< (text | seqan3::views::kmer_hash(shape1011)) << "\n\n";
seqan3::debug_stream << "shape1101\nExpected: [7,25]\nActual : "
<< (text | seqan3::views::kmer_hash(shape1101)) << '\n';
}
shape1011
Expected: [11,29]
Actual : [7,25]
shape1101
Expected: [7,25]
Actual : [11,29]
My assumption is that the shift does not work correctly with these shapes, the only shapes we tested so far are shapes of the sort 1(any number of zeros)1.
- Dominant language
- C++
- Stars
- 463
- Forks
- 90
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from seqan/seqan3
-
bug
-
bug
-
question
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
question
-
feature/proposal
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·