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
e8c7966c
Commit
e8c7966c
authored
Mar 31, 2021
by
marc duez
Committed by
Mathieu Giraud
Apr 01, 2021
Browse files
aligner.js : enable qualityString
parent
78830ef5
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/js/aligner_layer.js
View file @
e8c7966c
...
...
@@ -27,7 +27,7 @@ LAYERS = {
'
title
'
:
'
fastq_quality
'
,
'
text
'
:
function
(
s
,
c
)
{
return
s
.
qualityString
();
},
'
className
'
:
"
seq_layer_quality
"
,
'
enabled
'
:
tru
e
'
enabled
'
:
fals
e
},
'
V
'
:
...
...
browser/js/aligner_sequence.js
View file @
e8c7966c
...
...
@@ -454,27 +454,30 @@ Sequence.prototype = {
var
block
=
document
.
createElement
(
"
span
"
);
block
.
style
.
width
=
width
+
"
px
"
;
block
.
className
=
"
seq_quality_block
"
;
var
q
=
this
.
quality
[
k
].
charCodeAt
(
0
)
-
33
;
if
(
this
.
quality
[
k
]
==
-
1
){
block
.
title
=
"
quality : xxx
"
;
block
.
style
.
background
=
"
grey
"
;
}
if
(
q
==
0
){
block
.
title
=
"
quality : 0
"
;
block
.
style
.
background
=
"
white
"
;
}
else
{
block
.
title
=
"
quality : '
"
+
this
.
quality
[
k
]
+
"
' (
"
+
q
+
"
/
"
+
max_quality
+
"
)
"
;
//block.style.background = d3.interpolateTurbo( 1 - 0.6*((q)/max_quality));
//block.style.background = d3.interpolateSinebow( 0.4*((q)/max_quality) );
//block.style.background = "linear-gradient(" + d3.interpolateTurbo( 1 - 0.6*((q)/max_quality)) +","+
// d3.interpolateTurbo( 1 - 0.6*((q+2*max_quality)/max_quality/3)) +","+
// d3.interpolateTurbo( 1 - 0.6*((q+2*max_quality)/max_quality/3)) +","+
// d3.interpolateTurbo( 1 - 0.6) +")";
block
.
style
.
position
=
"
relative
"
;
block
.
style
.
top
=
Math
.
floor
((
h
-
((
q
*
h
)
/
max_quality
)))
+
"
px
"
;
block
.
style
.
height
=
3
+
"
px
"
;
}
else
{
var
q
=
this
.
quality
[
k
].
charCodeAt
(
0
)
-
33
;
if
(
q
==
0
){
block
.
title
=
"
quality : 0
"
;
block
.
style
.
background
=
"
white
"
;
}
else
{
block
.
title
=
"
quality : '
"
+
this
.
quality
[
k
]
+
"
' (
"
+
q
+
"
/
"
+
max_quality
+
"
)
"
;
block
.
style
.
background
=
d3
.
interpolateTurbo
(
1
-
0.6
*
((
q
)
/
max_quality
));
//block.style.background = d3.interpolateSinebow( 0.4*((q)/max_quality) );
//block.style.background = "linear-gradient(" + d3.interpolateTurbo( 1 - 0.6*((q)/max_quality)) +","+
// d3.interpolateTurbo( 1 - 0.6*((q+2*max_quality)/max_quality/3)) +","+
// d3.interpolateTurbo( 1 - 0.6*((q+2*max_quality)/max_quality/3)) +","+
// d3.interpolateTurbo( 1 - 0.6) +")";
block
.
style
.
position
=
"
relative
"
;
block
.
style
.
top
=
Math
.
floor
((
h
-
((
q
*
h
)
/
max_quality
)))
+
"
px
"
;
block
.
style
.
height
=
3
+
"
px
"
;
}
}
result
.
appendChild
(
block
);
width
=
0
;
...
...
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