@@ -71,8 +71,8 @@ different software languages and packages:
71
71
72
72
- Data analysis is performed using [ NumPy] ( https://numpy.org/ ) and
73
73
[ Pandas] ( https://pandas.pydata.org/ ) . The output of growthcleanr will be
74
- loaded into a [ pandas
75
- DataFrame] ( https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html ) .
74
+ loaded into a
75
+ [ pandas DataFrame] ( https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html ) .
76
76
GrowthViz provides functions for transforming DataFrames to support
77
77
calculation of some values, such as BMI, as well as supporting visualizations.
78
78
It is expected that users will create views into or copies of the DataFrames
@@ -91,21 +91,21 @@ to run and view GrowthViz.
91
91
92
92
1 . Install Anaconda
93
93
94
- - Follow install instructions [ found here for
95
- installation.] ( https://docs.anaconda.com/anaconda/install/ )
94
+ - Follow install instructions
95
+ [ found here for installation.] ( https://docs.anaconda.com/anaconda/install/ )
96
96
- Opt for the Python 3.7 version
97
- - The [ windows install
98
- instructions] ( https://docs.anaconda.com/anaconda/install/windows/ ) are
99
- step-by-step and will get everything set up properly for the project.
97
+ - The
98
+ [ windows install instructions] ( https://docs.anaconda.com/anaconda/install/windows/ )
99
+ are step-by-step and will get everything set up properly for the project.
100
100
101
101
2 . Download the [ GrowthViz project] ( https://github.com/mitre/GrowthViz ) as a zip
102
102
file using the "Clone or download" button on GitHub.
103
103
104
104
3 . Unzip the GrowthViz zip file to have access to all of the source files for
105
105
the Jupyter notebook.
106
106
107
- 4 . Run the Anaconda Navigator that was installed during Step 1 (go to
108
- Start > Anaconda Navigator). This may take a while to load.
107
+ 4 . Run the Anaconda Navigator that was installed during Step 1 (go to Start >
108
+ Anaconda Navigator). This may take a while to load.
109
109
110
110
5 . Before Launching the Jupyter Notebook application (shown on the home page),
111
111
download one additional dependency "Qgrid". To do this:
@@ -145,16 +145,17 @@ to run and view GrowthViz.
145
145
OR click the 'Cell' dropdown in the menu bar and select 'Run all' to test the
146
146
entire notebook all at once.
147
147
148
- If not using Anaconda, specific versions of packages can be found in ` requirements.txt ` .
148
+ If not using Anaconda, specific versions of packages can be found in
149
+ ` requirements.txt ` .
149
150
150
151
## Sample data and first run testing
151
152
152
153
By default when you reach Step 6 of the [ Simple Install] ( #simple-install )
153
154
instructions above the notebook will use sample data loaded from the ` .csv `
154
155
files located in the GrowthViz project. This is the same synthetic sample data
155
156
that is packaged with
156
- [ growthcleanr] ( https://github.com/carriedaymont/growthcleanr ) , cleaned and
157
- then separated into pediatric and adult sets for GrowthViz.
157
+ [ growthcleanr] ( https://github.com/carriedaymont/growthcleanr ) , cleaned and then
158
+ separated into pediatric and adult sets for GrowthViz.
158
159
159
160
To ensure that all of the necessary example files are present, run the
160
161
` check_setup.py ` script.
@@ -163,22 +164,44 @@ To ensure that all of the necessary example files are present, run the
163
164
164
165
Docker allows for the ability to download GrowthViz and its dependencies in an
165
166
environment. To use this method,
166
- [ download and install Docker Desktop] ( https://www.docker.com/products/docker-desktop )
167
+ [ download and install Docker Desktop] ( https://www.docker.com/products/docker-desktop ) .
168
+ It also requires a GitHub account and a GitHub (personal access
169
+ token] ( https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token ) .
167
170
168
- 1 . Download GrowthViz-Docker with the following command:
171
+ 1 . Log in to GitHub (create an account if required).
169
172
170
- - ` docker run -it -p 8888:8888 -v [data-path]/growthviz-data:/usr/src/app/growthviz-data mitre/growthviz `
173
+ 2 . In GitHub, create a
174
+ [ fine-grained personal access token] ( https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token ) .
175
+ Note that these have an expiration date with a configurable term; you may
176
+ have to regenerate this token.
177
+
178
+ 3 . Copy the token value and store it somewhere safe on your local machine.
179
+
180
+ 4 . On the command line, log in to GitHub's container registry:
181
+
182
+ ``` bash
183
+ docker login ghcr.io --username [your-GitHub-username]
184
+ ```
185
+
186
+ 5 . At the ` Password: ` prompt, paste in your token value (created in step 2).
187
+
188
+ 6 . Download and run GrowthViz-Docker with the following command. This may take
189
+ several minutes to download components, especially the first time.
190
+
191
+ ``` bash
192
+ docker run -it -p 8888:8888 -v [data-path]/growthviz-data:/usr/src/app/growthviz-data ghcr.io/mitre/growthviz/mitre/growthviz
193
+ ```
171
194
172
195
- Replace the ` [data-path] ` with a directory path you choose on your local
173
- computer. For instance, choose: ` ~/Documents ` which means that a folder
174
- named ` /growthviz-data ` will be created in the Documents folder. To
175
- input data into GrowthViz, add CSV files in this ` /growthviz-data ` folder.
196
+ computer. For instance, choose: ` ~/Documents ` which means that a folder named
197
+ ` /growthviz-data ` will be created in the Documents folder. To input data into
198
+ GrowthViz, add CSV files in this ` /growthviz-data ` folder.
176
199
177
200
- Note also that when mapping a folder on Windows, you may be prompted to
178
201
confirm that you indeed want to "Share" the folder. This is a standard Windows
179
202
security practice, and it is okay to confirm and proceed.
180
203
181
- 2 . View GrowthViz
204
+ 7 . View GrowthViz
182
205
183
206
- After running the above command, several lines of text will appear. Choose the
184
207
third URL in this text and navigate to it in a web browser.
@@ -188,26 +211,32 @@ environment. To use this method,
188
211
- Within the browser, click on the file ` GrowthViz.ipynb ` . This will open a new
189
212
window with the GrowthViz Jupyter Notebook.
190
213
191
- 3 . Run GrowthViz
214
+ 8 . Run GrowthViz
192
215
193
216
- You can choose to either click the ` Run ` button to step through the various
194
217
blocks (cells) of the document, OR click the 'Cell' dropdown in the menu bar
195
218
and select 'Run all' to test the entire notebook all at once. However, this
196
219
will run with the default sample data. Step 4 will explain how to use your own
197
220
data.
198
221
199
- 4 . Input Your Own Dataset CSVs
222
+ 9 . Input Your Own Dataset CSVs
200
223
201
224
- To input your own data, drop a file ` [name-of-your-file.csv] ` into the
202
225
` /growthviz-data ` folder you created in step 1.
203
226
204
227
- Then, navigate to Cells 7 and 28 and replace:
205
228
206
- - ` cleaned_obs = pd.read_csv("sample-data-cleaned.csv") ` with
229
+ ``` python
230
+ cleaned_obs = pd.read_csv(" sample-data-cleaned.csv" )
231
+ ```
232
+
233
+ ...with:
207
234
208
- - ` cleaned_obs = pd.read_csv("growthviz-data/[name-of-your-file.csv]") `
235
+ ``` python
236
+ cleaned_obs = pd.read_csv(" growthviz-data/[name-of-your-file.csv]" )
237
+ ```
209
238
210
- - Where [ name-of-your-file.csv] is the input CSV file you placed in your
239
+ - Where ` [name-of-your-file.csv] ` is the input CSV file you placed in your
211
240
` /growthviz-data ` folder.
212
241
213
242
#### Output boxes
@@ -220,6 +249,6 @@ charts and graphs used to explore the growthcleanr data. Descriptions of each
220
249
221
250
## Notice
222
251
223
- Copyright 2020-2021 The MITRE Corporation.
252
+ Copyright & copy ; 2020-2022 The MITRE Corporation.
224
253
225
254
Approved for Public Release; Distribution Unlimited. Case Number 19-2008
0 commit comments