1
- NACCulator
1
+ NACCulator
2
2
3
3
Converts a CSV data file exported from REDCap into the NACC's UDS3 fixed-width
4
4
format.
9
9
This is not exhaustive, but here is an explanation of some important files.
10
10
11
11
nacc/:
12
- Top-level Python package for all things NACC.
12
+ Top-level Python package for all things NACC.
13
13
14
14
nacc/redcap2nacc.py:
15
- converts a CSV data file exported from REDCap into NACC's UDS3 fixed-width
16
- format
15
+ converts a CSV data file exported from REDCap into NACC's UDS3 fixed-width
16
+ format
17
17
18
18
nacc/uds3/blanks.py:
19
- specialized library for "Blanking Rules"
19
+ specialized library for "Blanking Rules"
20
20
21
21
nacc/uds3/ivp/forms.py:
22
- UDS3 IVP forms represented as Python classes
22
+ UDS3 IVP forms represented as Python classes
23
23
24
24
tools/generator.py:
25
- generates Python objects based on NACC Data Element Dictionaries in CSV
25
+ generates Python objects based on NACC Data Element Dictionaries in CSV
26
26
27
27
28
28
HOWTO Convert from REDCap to NACC
29
29
---------------------------------
30
30
31
- $ pip install nacculator
32
- $ redcap2nacc < data.csv > data.nacc
31
+ $ pip install nacculator
32
+ $ redcap2nacc < data.csv > data.nacc
33
33
34
34
Manually:
35
- $ PYTHONPATH=. ./nacc/redcap2nacc.py data.csv > data.nacc
35
+ $ PYTHONPATH=. ./nacc/redcap2nacc.py data.csv > data.nacc
36
36
37
37
Note: output is written to STDOUT; errors are written to STDERR; input can be
38
38
STDIN or the first argument passed to redcap2nacc.
@@ -41,11 +41,11 @@ HOWTO Generate New Forms
41
41
------------------------
42
42
43
43
Note: executing generator.py from within tools is an important step as the
44
- script assumes any corrected DEDs are stored under a folder in the
45
- current working directory called 'corrected'.
44
+ script assumes any corrected DEDs are stored under a folder in the
45
+ current working directory called 'corrected'.
46
46
47
47
Warning: read the warnings in the current ../nacc/uds3/ivp/forms.py first.
48
48
49
- $ cd tools
50
- $ PYTHONPATH=.. ./generator.py uds3/ded/csv/ > ../nacc/uds3/ivp/forms.py
51
- $ edit ../nacc/uds3/ivp/forms
49
+ $ cd tools
50
+ $ PYTHONPATH=.. ./generator.py uds3/ded/csv/ > ../nacc/uds3/ivp/forms.py
51
+ $ edit ../nacc/uds3/ivp/forms
0 commit comments