Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
c77b2496
Commit
c77b2496
authored
Oct 17, 2014
by
Mathieu Giraud
Browse files
core/germline.{h,cpp}: also index rep_4 if affect_4 is set
parent
677948d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/core/germline.cpp
View file @
c77b2496
...
...
@@ -10,6 +10,7 @@ Germline::Germline(string _code, char _shortcut,
index
=
0
;
affect_5
=
"V"
;
affect_4
=
""
;
affect_3
=
"J"
;
rep_5
=
Fasta
(
f_rep_5
,
2
,
"|"
,
cout
);
...
...
@@ -34,6 +35,7 @@ Germline::Germline(string _code, char _shortcut,
// affect_5 = KmerAffect("", "V", 0) ;
// affect_3 = KmerAffect("", "J", 0) ;
affect_5
=
"V"
;
affect_4
=
""
;
affect_3
=
"J"
;
rep_5
=
_rep_5
;
...
...
@@ -65,8 +67,13 @@ void Germline::use_index(IKmerStore<KmerAffect> *_index)
void
Germline
::
update_index
()
{
index
->
insert
(
rep_5
,
affect_5
);
if
(
affect_4
.
size
())
index
->
insert
(
rep_4
,
affect_4
);
index
->
insert
(
rep_3
,
affect_3
);
cout
<<
" index "
<<
index
<<
" updated "
<<
affect_5
<<
"/"
<<
affect_3
<<
endl
;
cout
<<
" --- index "
<<
index
<<
" updated "
<<
affect_5
<<
"/"
<<
affect_4
<<
"/"
<<
affect_3
<<
endl
;
}
Germline
::~
Germline
()
...
...
algo/core/germline.h
View file @
c77b2496
...
...
@@ -43,6 +43,7 @@ class Germline {
// KmerAffect affect_5 ;
// KmerAffect affect_3 ;
string
affect_5
;
string
affect_4
;
string
affect_3
;
Fasta
rep_5
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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