Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
167fb031
Commit
167fb031
authored
Jul 08, 2016
by
Mikaël Salson
Browse files
kmerstore.h: getLabel ignores the length with unique-seed indexes
This is necessary (for instance) with xxx germlines.
parent
c6139e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/core/kmerstore.h
View file @
167fb031
...
@@ -402,6 +402,12 @@ Fasta IKmerStore<T>::getLabel(T kmer) const {
...
@@ -402,6 +402,12 @@ Fasta IKmerStore<T>::getLabel(T kmer) const {
for
(
typename
list
<
pair
<
T
,
Fasta
>
>::
const_iterator
it
=
labels
.
begin
();
it
!=
labels
.
end
();
++
it
)
for
(
typename
list
<
pair
<
T
,
Fasta
>
>::
const_iterator
it
=
labels
.
begin
();
it
!=
labels
.
end
();
++
it
)
if
(
it
->
first
==
kmer
)
if
(
it
->
first
==
kmer
)
return
it
->
second
;
return
it
->
second
;
// Nothing interesting found
// Try by ignoring length if the index is not able to deal with different lengths
if
(
!
hasDifferentKmerTypes
()
&&
kmer
.
getLength
()
!=
(
unsigned
char
)
~
0
)
{
kmer
.
setLength
(
~
0
);
return
getLabel
(
kmer
);
}
return
FASTA_AMBIGUOUS
;
return
FASTA_AMBIGUOUS
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment