Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Gitlab is now running v13.9.0 - More info ->
here
<-
Open sidebar
VEBER Philippe
codepi
Commits
778e8a72
Commit
778e8a72
authored
Dec 20, 2020
by
Philippe Veber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run: improved presentation of candidate page
parent
c5816ae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
lib/run.ml
lib/run.ml
+12
-4
No files found.
lib/run.ml
View file @
778e8a72
...
...
@@ -34,10 +34,18 @@ let candidate_site_report (Detection_method dm) sites =
let
site_page
i
s
=
let
path
=
Filename
.
concat
dest
(
site_page_path
i
)
in
let
title
=
sprintf
"%s candidate site #%d"
dm
.
name
i
in
let
alignment_id
=
Option
.
value
~
default
:
"NA"
s
.
CS
.
alignment_id
in
let
position
=
Option
.
value_map
~
f
:
Int
.
to_string
~
default
:
"NA"
s
.
CS
.
pos
in
let
score
=
Option
.
value_map
~
f
:
Float
.
to_string
~
default
:
"NA"
s
.
CS
.
score
in
let
summary
=
{
%
string
|
-
**
Alignment
**:
%
{
alignment_id
}
-
**
Position
**:
%
{
position
}
-
**
Score
**:
%
{
score
}
|
}
in
let
contents
=
N
.
make
~
title
N
.[
text
(
sprintf
"Alignment: %s"
(
Option
.
value
~
default
:
"NA"
s
.
CS
.
alignment_id
))
;
text
(
sprintf
"Position: %s"
(
Option
.
value_map
~
f
:
Int
.
to_string
~
default
:
"NA"
s
.
CS
.
pos
))
;
croquis
(
CS
.
draw
s
)
;
text
summary
;
croquis
~
width
:
20
.
(
CS
.
draw
s
)
;
]
in
note_to_html
contents
path
;
...
...
@@ -67,7 +75,7 @@ let candidate_site_report (Detection_method dm) sites =
note_to_html
index
(
path
"index.html"
)
;
Array
.
iteri
sites
~
f
:
site_page
in
Workflow
.
path_plugin
~
descr
:
"codepi.run.candidate_site_report"
~
version
:
2
f
Workflow
.
path_plugin
~
descr
:
"codepi.run.candidate_site_report"
~
version
:
5
f
type
t
=
{
tree_file
:
string
;
...
...
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