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
59e7783e
Commit
59e7783e
authored
Apr 03, 2015
by
Mathieu Giraud
Browse files
core/segment.cpp, core/tools.{h,cpp}: output evalue in >>
parent
c8b4cb3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
algo/core/segment.cpp
View file @
59e7783e
...
...
@@ -156,6 +156,10 @@ string Segmenter::getInfoLine() const
s
+=
" "
+
info_extra
;
s
+=
" "
+
segmented_germline
->
code
;
s
+=
" "
+
string
(
segmented_mesg
[
because
])
;
if
(
evalue
>
NO_LIMIT_VALUE
)
s
+=
" "
+
scientific_string_of_double
(
evalue
);
return
s
;
}
...
...
@@ -581,6 +585,7 @@ FineSegmenter::FineSegmenter(Sequence seq, Germline *germline, Cost segment_c)
sequence
=
seq
.
sequence
;
Dend
=
0
;
segment_cost
=
segment_c
;
evalue
=
NO_LIMIT_VALUE
;
CDR3start
=
-
1
;
CDR3end
=
-
1
;
...
...
algo/core/tools.cpp
View file @
59e7783e
...
...
@@ -54,6 +54,13 @@ string string_of_int(int number)
return
ss
.
str
();
}
string
scientific_string_of_double
(
double
number
)
{
stringstream
ss
;
ss
<<
scientific
<<
number
;
return
ss
.
str
();
}
bool
is_extended_nucleotide
(
char
nuc
)
{
switch
(
nuc
)
{
...
...
algo/core/tools.h
View file @
59e7783e
...
...
@@ -72,7 +72,7 @@ bool pair_occurrence_sort(pair<T, int> a, pair<T, int> b);
string
string_of_int
(
int
number
);
string
scientific_string_of_double
(
double
number
);
/**
* @param nuc is A, C, G, T or any extended nucleotide (or lowercase)
...
...
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