-
Notifications
You must be signed in to change notification settings - Fork 0
/
wbe_odm.drawio
118 lines (118 loc) · 13.4 KB
/
wbe_odm.drawio
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<mxfile host="65bd71144e">
<diagram id="J2tYgQzWkE0d9zS7tPdh" name="Page-1">
<mxGraphModel dx="611" dy="652" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="Ons94C2ZRACeFPXKF9dP-36" value="" style="rounded=0;whiteSpace=wrap;html=1;fontColor=#FF0000;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="250" y="80" width="840" height="740" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-13" value="wbe_odm" style="shape=folder;fontStyle=1;spacingTop=10;tabWidth=40;tabHeight=14;tabPosition=left;html=1;" parent="1" vertex="1">
<mxGeometry x="280" y="90" width="780" height="50" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-15" value="odm.py " style="shape=module;align=left;spacingLeft=20;align=center;verticalAlign=top;" parent="1" vertex="1">
<mxGeometry x="490" y="200" width="190" height="40" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-16" value="utilities.py " style="shape=module;align=left;spacingLeft=20;align=center;verticalAlign=top;" parent="1" vertex="1">
<mxGeometry x="710" y="200" width="150" height="40" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-17" value="visualisation_helpers.py " style="shape=module;align=left;spacingLeft=20;align=center;verticalAlign=top;" parent="1" vertex="1">
<mxGeometry x="900" y="260" width="160" height="50" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-18" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>Odm</b></p><hr><p style="margin: 0px ; margin-left: 8px">Attributes<br></p><p style="margin: 0px ; margin-left: 8px">ww_measure: DataFrame</p><p style="margin: 0px ; margin-left: 8px">sample: DataFrame</p><p style="margin: 0px ; margin-left: 8px">site: DataFrame</p><p style="margin: 0px ; margin-left: 8px">...</p><p style="margin: 0px ; margin-left: 8px"><br></p><p style="margin: 0px ; margin-left: 8px">Methods</p><p style="margin: 0px ; margin-left: 8px">load_from(__mapper__)</p><p style="margin: 0px ; margin-left: 8px">apprend_from(__mapper__<font color="#ffffff">)</font><br></p><p style="margin: 0px ; margin-left: 8px">save_to_db()</p><p style="margin: 0px ; margin-left: 8px">append_odm()</p><p style="margin: 0px ; margin-left: 8px">widen()</p><p style="margin: 0px ; margin-left: 8px">get_geoJSON()</p><p style="margin: 0px ; margin-left: 8px">combine_per_sample()</p><p style="margin: 0px ; margin-left: 8px">export_to_csv()<br></p><p style="margin: 0px ; margin-left: 8px"><br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;" parent="1" vertex="1">
<mxGeometry x="490" y="260" width="190" height="250" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-19" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>OdmEncoder</b></p><hr>default() -&gt; turns Odm object<br>&nbsp; &nbsp; &nbsp;into JSON string" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;" parent="1" vertex="1">
<mxGeometry x="490" y="540" width="190" height="60" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-21" value="<div><span>keep_only_features()</span><br></div><div>reduce()</div><div>convert_wkt_to_geojson</div><div><br></div><div><br></div>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;" parent="1" vertex="1">
<mxGeometry x="710" y="260" width="150" height="60" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-22" value="Excel data template" style="html=1;" parent="1" vertex="1">
<mxGeometry x="20" y="200" width="180" height="50" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-23" value="DB" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;" parent="1" vertex="1">
<mxGeometry x="40" y="580" width="110" height="130" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-24" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="Ons94C2ZRACeFPXKF9dP-22" target="Ons94C2ZRACeFPXKF9dP-33" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="155" y="320" as="sourcePoint"/>
<mxPoint x="250" y="380" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-25" value="" style="endArrow=classic;html=1;entryX=1.009;entryY=0.569;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="Ons94C2ZRACeFPXKF9dP-18" target="Ons94C2ZRACeFPXKF9dP-23" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="510" y="580" as="sourcePoint"/>
<mxPoint x="410" y="650" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-26" value="" style="endArrow=classic;html=1;entryX=-0.005;entryY=0.941;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryPerimeter=0;" parent="1" source="Ons94C2ZRACeFPXKF9dP-23" target="Ons94C2ZRACeFPXKF9dP-33" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="160" y="810" as="sourcePoint"/>
<mxPoint x="260" y="740" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-27" value="Geometry file (wkt, geoJSON)" style="html=1;" parent="1" vertex="1">
<mxGeometry x="20" y="130" width="180" height="50" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-28" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="Ons94C2ZRACeFPXKF9dP-27" target="Ons94C2ZRACeFPXKF9dP-33" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="180" y="250" as="sourcePoint"/>
<mxPoint x="275" y="310" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-29" value="line-level (individual) health data" style="html=1;" parent="1" vertex="1">
<mxGeometry x="20" y="410" width="180" height="50" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-30" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="Ons94C2ZRACeFPXKF9dP-29" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="210" y="550" as="sourcePoint"/>
<mxPoint x="280" y="500" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-31" value="aggregate health data" style="html=1;" parent="1" vertex="1">
<mxGeometry x="20" y="480" width="180" height="50" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-32" value="" style="endArrow=classic;html=1;entryX=0.005;entryY=0.85;entryDx=0;entryDy=0;entryPerimeter=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="Ons94C2ZRACeFPXKF9dP-31" target="Ons94C2ZRACeFPXKF9dP-33" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="190" y="650" as="sourcePoint"/>
<mxPoint x="290" y="580" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-33" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>Mapper Abstract Base Class</b><br></p><hr><p style="margin: 0px ; margin-left: 8px">Attributes<br></p>* ww_measure: DataFrame,<br>* sample: DataFrame,<br>* ...<br>* conversion_dict<br><p style="margin: 0px ; margin-left: 8px"><br></p><p style="margin: 0px ; margin-left: 8px">Methods</p><p style="margin: 0px ; margin-left: 8px">1) validates() -&gt; bool</p><p style="margin: 0px ; margin-left: 8px">2) read() -&gt; DataFrames stored</p><p style="margin: 0px ; margin-left: 8px">&nbsp; &nbsp; in attributes</p><p style="margin: 0px ; margin-left: 8px">3) type_cast_table() -&gt;</p><p style="margin: 0px ; margin-left: 8px">&nbsp; &nbsp;DataFrame with</p><p style="margin: 0px ; margin-left: 8px">&nbsp; &nbsp;the ODM-mandated</p><p style="margin: 0px ; margin-left: 8px">&nbsp; &nbsp;data type for each column</p><br><p style="margin: 0px ; margin-left: 8px"><br></p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;" parent="1" vertex="1">
<mxGeometry x="280" y="260" width="190" height="240" as="geometry"/>
</mxCell>
<mxCell id="Ons94C2ZRACeFPXKF9dP-35" value="<div>wbe_tools</div>" style="shape=folder;fontStyle=1;spacingTop=10;tabWidth=40;tabHeight=14;tabPosition=left;html=1;" parent="1" vertex="1">
<mxGeometry x="900" y="190" width="160" height="50" as="geometry"/>
</mxCell>
<mxCell id="2" value="odm_mappers" style="shape=folder;fontStyle=1;spacingTop=10;tabWidth=40;tabHeight=14;tabPosition=left;html=1;" parent="1" vertex="1">
<mxGeometry x="280" y="190" width="190" height="50" as="geometry"/>
</mxCell>
<mxCell id="3" value="JSON" style="html=1;" parent="1" vertex="1">
<mxGeometry x="20" y="265" width="180" height="50" as="geometry"/>
</mxCell>
<mxCell id="4" value="Lab data sheets" style="html=1;" parent="1" vertex="1">
<mxGeometry x="20" y="330" width="180" height="50" as="geometry"/>
</mxCell>
<mxCell id="5" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=-0.011;entryY=0.313;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="3" target="Ons94C2ZRACeFPXKF9dP-33" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="165" y="330" as="sourcePoint"/>
<mxPoint x="290" y="386.81818181818176" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="6" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="4" target="Ons94C2ZRACeFPXKF9dP-33" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="175" y="340" as="sourcePoint"/>
<mxPoint x="300" y="396.81818181818176" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="7" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>TableCombiner</b></p><hr>combine_per_sample()" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;" vertex="1" parent="1">
<mxGeometry x="490" y="610" width="190" height="60" as="geometry"/>
</mxCell>
<mxCell id="8" value="<p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><b>TableWidener</b></p><hr>widen()" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1;" vertex="1" parent="1">
<mxGeometry x="490" y="680" width="190" height="60" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>