Skip to content

Commit a50e670

Browse files
committed
Copy from local repo for GitHub
1 parent 3d5e8a8 commit a50e670

21 files changed

+3422
-3
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016, CTS-IT
1+
Copyright (c) 2016, University of Florida
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

README

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

README.md

-2
This file was deleted.

nacc/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)