Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OBITools3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
33
Issues
33
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OBITools
OBITools3
Commits
da445066
Commit
da445066
authored
6 years ago
by
Celine Mercier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C alignment filter: added a check for sequences not being equal when the
threshold requires that they are
parent
0a407436
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
src/upperband.c
src/upperband.c
+17
-8
No files found.
src/upperband.c
View file @
da445066
...
...
@@ -355,17 +355,26 @@ void align_filters(Kmer_table_p ktable, Obi_blob_p seq1, Obi_blob_p seq2, index_
*
score
=
-
2
.
0
;
if
(
can_be_identical
&&
(
obi_blob_compare
(
seq1
,
seq2
)
==
0
))
// the 2 sequences are identical.
if
(
can_be_identical
)
{
if
(
similarity_mode
&&
normalize
)
*
score
=
1
.
0
;
else
if
(
!
similarity_mode
)
*
score
=
0
.
0
;
else
*
score
=
l1
;
if
(
obi_blob_compare
(
seq1
,
seq2
)
==
0
)
{
if
(
similarity_mode
&&
normalize
)
*
score
=
1
.
0
;
else
if
(
!
similarity_mode
)
*
score
=
0
.
0
;
else
*
score
=
l1
;
}
}
else
if
((
similarity_mode
&&
normalize
&&
(
threshold
==
1
.
0
))
||
(
!
similarity_mode
&&
(
threshold
==
0
.
0
)))
{
// The sequences must be identical but are not
return
;
}
else
if
(
threshold
!=
0
)
else
if
(
threshold
!=
0
.
0
)
{
l2
=
seq2
->
length_decoded_value
;
...
...
This diff is collapsed.
Click to expand it.
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