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
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,711
Issues
1,711
List
Boards
Labels
Service Desk
Milestones
Merge Requests
86
Merge Requests
86
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
58ea2f53
Commit
58ea2f53
authored
Jan 17, 2018
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/segment.{h, cpp}: DEFAULT_MINIMIZE_WIDTH, DEFAULT_MINIMIZE_ONE_MARGIN
parent
b4a5e5b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
algo/core/segment.cpp
algo/core/segment.cpp
+2
-3
algo/core/segment.h
algo/core/segment.h
+3
-0
No files found.
algo/core/segment.cpp
View file @
58ea2f53
...
...
@@ -477,12 +477,11 @@ KmerSegmenter::KmerSegmenter(Sequence seq, Germline *germline, double threshold,
return
;
}
int
pos
=
kaa
.
minimize
(
kmer
,
DEFAULT_MINIMIZE_ONE_MARGIN
,
DEFAULT_MINIMIZE_WIDTH
);
segmented
=
true
;
because
=
reversed
?
SEG_MINUS
:
SEG_PLUS
;
// 30 should be more than half of the window. Should we run this during getJunction(), once w is known ?
int
pos
=
kaa
.
minimize
(
kmer
,
30
,
8
);
info
=
"="
+
string_of_int
(
c
)
+
" @"
+
string_of_int
(
pos
)
;
// getJunction() will be centered on pos
...
...
algo/core/segment.h
View file @
58ea2f53
...
...
@@ -46,6 +46,9 @@
be overriden by the command line by
providing a shorter -w*/
#define DEFAULT_MINIMIZE_WIDTH 12
#define DEFAULT_MINIMIZE_ONE_MARGIN 20
using
namespace
std
;
using
json
=
nlohmann
::
json
;
...
...
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