annotate pca_report.html @ 0:64e75e21466e draft default tip

Uploaded
author pmac
date Wed, 01 Jun 2016 03:38:39 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
64e75e21466e Uploaded
pmac
parents:
diff changeset
1 {% macro display_iterations(ilist) %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
2 {% for it in ilist %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
3 {{ display_single_iteration(it) }}
64e75e21466e Uploaded
pmac
parents:
diff changeset
4 {% endfor %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
5 {% endmacro %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
6
64e75e21466e Uploaded
pmac
parents:
diff changeset
7 {% macro display_single_iteration(idata) %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
8 <div><h3>Iteration {{ idata.count }}</h3></div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
9 {% for pp in idata.rel_plot_paths %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
10 <img src="{{ pp }}">
64e75e21466e Uploaded
pmac
parents:
diff changeset
11 {% endfor %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
12 <div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
13 <strong>{{ idata.xl|length - 1 }} samples were excluded from the PCA</strong>
64e75e21466e Uploaded
pmac
parents:
diff changeset
14 <details>
64e75e21466e Uploaded
pmac
parents:
diff changeset
15 <table>
64e75e21466e Uploaded
pmac
parents:
diff changeset
16 {% for x in idata.xl %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
17 <tr>
64e75e21466e Uploaded
pmac
parents:
diff changeset
18 {% if loop.first %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
19 {% for cell in x %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
20 <th>{{ cell }}</th>
64e75e21466e Uploaded
pmac
parents:
diff changeset
21 {% endfor %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
22 {% else %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
23 {% for cell in x %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
24 <td>{{ cell }}</td>
64e75e21466e Uploaded
pmac
parents:
diff changeset
25 {% endfor %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
26 {% endif %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
27 </tr>
64e75e21466e Uploaded
pmac
parents:
diff changeset
28 {% endfor %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
29 </table>
64e75e21466e Uploaded
pmac
parents:
diff changeset
30 </details>
64e75e21466e Uploaded
pmac
parents:
diff changeset
31 </div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
32 <div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
33 <strong>Detected {{ idata.ol|length - 1}} outliers</strong>
64e75e21466e Uploaded
pmac
parents:
diff changeset
34 <details>
64e75e21466e Uploaded
pmac
parents:
diff changeset
35 <table>
64e75e21466e Uploaded
pmac
parents:
diff changeset
36 {% for x in idata.ol %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
37 <tr>
64e75e21466e Uploaded
pmac
parents:
diff changeset
38 {% if loop.first %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
39 {% for cell in x %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
40 <th>{{ cell }}</th>
64e75e21466e Uploaded
pmac
parents:
diff changeset
41 {% endfor %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
42 {% else %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
43 {% for cell in x %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
44 <td>{{ cell }}</td>
64e75e21466e Uploaded
pmac
parents:
diff changeset
45 {% endfor %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
46 {% endif %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
47 </tr>
64e75e21466e Uploaded
pmac
parents:
diff changeset
48 {% endfor %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
49 </table>
64e75e21466e Uploaded
pmac
parents:
diff changeset
50 </details>
64e75e21466e Uploaded
pmac
parents:
diff changeset
51 </div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
52 </div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
53 {% endmacro %}
64e75e21466e Uploaded
pmac
parents:
diff changeset
54
64e75e21466e Uploaded
pmac
parents:
diff changeset
55 <!DOCTYPE html>
64e75e21466e Uploaded
pmac
parents:
diff changeset
56 <html>
64e75e21466e Uploaded
pmac
parents:
diff changeset
57 <head>
64e75e21466e Uploaded
pmac
parents:
diff changeset
58 <title>PCA Report</title>
64e75e21466e Uploaded
pmac
parents:
diff changeset
59 </head>
64e75e21466e Uploaded
pmac
parents:
diff changeset
60 <body>
64e75e21466e Uploaded
pmac
parents:
diff changeset
61 <h1>PCA Report</h1>
64e75e21466e Uploaded
pmac
parents:
diff changeset
62 <div><strong>Date:</strong> {{ date }}</div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
63 <div><strong>Input data file:</strong> {{ dfname }}</div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
64 <div><strong>Log File:</strong> {{ lfname }}
64e75e21466e Uploaded
pmac
parents:
diff changeset
65 <details><pre>{{ logcontent }}</pre></details>
64e75e21466e Uploaded
pmac
parents:
diff changeset
66 </div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
67 <div><strong>Standard Deviation Multiplier: </strong> {{ sd_cutoff }} </div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
68 <div><strong>Clustering Method: </strong> {{ cmethod }} </div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
69 <div><strong>Cluster Trimming: </strong> {{ tmethod }} </div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
70
64e75e21466e Uploaded
pmac
parents:
diff changeset
71 <div><h2>Iteration data</h2>
64e75e21466e Uploaded
pmac
parents:
diff changeset
72 {{ display_iterations(iteration_data) }}
64e75e21466e Uploaded
pmac
parents:
diff changeset
73 </div>
64e75e21466e Uploaded
pmac
parents:
diff changeset
74 </body>
64e75e21466e Uploaded
pmac
parents:
diff changeset
75 </html>
64e75e21466e Uploaded
pmac
parents:
diff changeset
76
64e75e21466e Uploaded
pmac
parents:
diff changeset
77
64e75e21466e Uploaded
pmac
parents:
diff changeset
78