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
13a66d7d
Commit
13a66d7d
authored
Apr 27, 2015
by
Mathieu Giraud
Browse files
vidjil.cpp: '-F' option sets only_labeled_windows
parent
03abd35c
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/vidjil.cpp
View file @
13a66d7d
...
@@ -184,6 +184,7 @@ void usage(char *progname, bool advanced)
...
@@ -184,6 +184,7 @@ void usage(char *progname, bool advanced)
<<
"Window annotations"
<<
endl
<<
"Window annotations"
<<
endl
<<
" -l <file> labels for some windows -- these windows will be kept even if -r/-% thresholds are not reached"
<<
endl
<<
" -l <file> labels for some windows -- these windows will be kept even if -r/-% thresholds are not reached"
<<
endl
<<
" -F filter -- keep only the labeled windows"
<<
endl
<<
endl
;
<<
endl
;
cerr
<<
"Limits to report a clone (or a window)"
<<
endl
cerr
<<
"Limits to report a clone (or a window)"
<<
endl
...
@@ -345,7 +346,7 @@ int main (int argc, char **argv)
...
@@ -345,7 +346,7 @@ int main (int argc, char **argv)
//$$ options: getopt
//$$ options: getopt
while
((
c
=
getopt
(
argc
,
argv
,
"A!x:X:hHaiI12g:G:V:D:J:k:r:vw:e:C:f:l:c:m:M:N:s:b:Sn:o:L%:y:z:uUK3E:"
))
!=
EOF
)
while
((
c
=
getopt
(
argc
,
argv
,
"A!x:X:hHaiI12g:G:V:D:J:k:r:vw:e:C:f:l:
F
c:m:M:N:s:b:Sn:o:L%:y:z:uUK3E:"
))
!=
EOF
)
switch
(
c
)
switch
(
c
)
{
{
...
@@ -523,6 +524,10 @@ int main (int argc, char **argv)
...
@@ -523,6 +524,10 @@ int main (int argc, char **argv)
windows_labels_file
=
optarg
;
windows_labels_file
=
optarg
;
break
;
break
;
case
'F'
:
only_labeled_windows
=
true
;
break
;
// Clustering
// Clustering
case
'E'
:
case
'E'
:
...
@@ -1022,8 +1027,17 @@ int main (int argc, char **argv)
...
@@ -1022,8 +1027,17 @@ int main (int argc, char **argv)
//$$ min_reads_clone (ou label)
//$$ min_reads_clone (ou label)
int
min_reads_clone_ratio
=
(
int
)
(
ratio_reads_clone
*
nb_segmented
/
100.0
);
int
min_reads_clone_ratio
=
(
int
)
(
ratio_reads_clone
*
nb_segmented
/
100.0
);
cout
<<
"Considering only labeled windows and windows with >= "
<<
min_reads_clone
<<
" reads"
cout
<<
"Considering "
;
<<
" and with a ratio >= "
<<
ratio_reads_clone
<<
" ("
<<
min_reads_clone_ratio
<<
")"
<<
endl
;
if
(
only_labeled_windows
)
cout
<<
"only labeled windows"
;
if
(
!
only_labeled_windows
)
cout
<<
"labeled windows"
<<
" and windows with >= "
<<
min_reads_clone
<<
" reads"
<<
" and with a ratio >= "
<<
ratio_reads_clone
<<
" ("
<<
min_reads_clone_ratio
<<
")"
;
cout
<<
endl
;
int
min_reads_clone_final
=
max
(
min_reads_clone
,
min_reads_clone_ratio
);
int
min_reads_clone_final
=
max
(
min_reads_clone
,
min_reads_clone_ratio
);
...
...
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