/
FF_XY.html
72 lines (66 loc) · 2.27 KB
/
FF_XY.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{% block scripts %}
<script>
var XY_plot = document.getElementById('FFXY')
var data = []
var layout = {
annotations : [],
legend:{hovermode:'closest' },
hovermode:'closest',
xaxis :{range: [{{max_x}},{{min_x}}],
showline: true,
zeroline: false,
linecolor: '#636363',
linewidth: 5,
showgrid: false,
gridcolor: '#bdbdbd',
title: 'FFX'
},
yaxis :{
zeroline: false,
showline: true,
showgrid: false,
linecolor: '#636363',
linewidth: 5,
title : 'FFY'
},};
var backstat = {
y: {{control['FFY']}},
x: {{control['FFX']}},
text: {{control['names']|tojson}},
name: 'Negative (N={{control['count']}})',
hoverinfo:'none',
mode: 'markers',
type: 'scatter',
marker: {color: '#ccccb3'}}
data.push(backstat);
var i = 0
{% for sample in cases %}
var NCVXYsamps = {
y: [{{cases[sample]['FFY']}}],
x: [{{cases[sample]['FFX']}}],
name: "{{sample}}",
mode: 'markers',
text: "{{sample}}",
type: 'scatter'}
data.push(NCVXYsamps);
{% endfor %}
{% for abn in abnormal.keys() %}
{% for status in abnormal[abn] %}
var verif = {
name: '{{abn}} {{status}} (N={{abnormal[abn][status]["count"]}})',
y: {{abnormal[abn][status]['FFY']}},
x: {{abnormal[abn][status]['FFX']}},
text: {{abnormal[abn][status]['names']|tojson}},
mode: 'markers',
marker: { line: {width:2},
size: 7,
symbol :'circle-open',
type: 'scatter'
} }
data.push(verif);
var i = i +1
{% endfor %}
{% endfor %}
Plotly.newPlot('FFXY', data, layout);
</script>
{% endblock %}