https://github.com/datalad/datalad-redcap
https://github.com/datalad/datalad-redcap
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/datalad/datalad-redcap
- Owner: datalad
- License: other
- Created: 2023-01-25T11:22:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-28T20:40:20.000Z (about 1 year ago)
- Last Synced: 2025-09-05T03:01:55.152Z (9 months ago)
- Language: Python
- Size: 94.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Citation: CITATION.cff
- Zenodo: .zenodo.json
Awesome Lists containing this project
README
# DataLad REDCap extension
[](http://docs.datalad.org/projects/redcap/en/latest/?badge=latest)
[](https://github.com/datalad/datalad-redcap/actions/workflows/test_crippledfs.yml)
[](https://github.com/datalad/datalad-redcap/actions/workflows/docbuild.yml)
This DataLad extension provides convenience commands for exporting data from REDCap into DataLad datasets.
Information about the RedCAP project can be found at https://project-redcap.org/.
The extension is a working prototype.
## Installation
The extension has no official release yet, but you can install the *bleeding edge* version using pip, directly from GitHub.
This will also install the latest development version of [DataLad Next](https://github.com/datalad/datalad-next) extension.
Using a virtual environment is recommended.
Example installation:
```
# create and enter a new virtual environment (optional)
$ virtualenv --python=python3 ~/env/dl-redcap
$ source ~/env/dl-redcap/bin/activate
# install from GitHub main branch
$ python -m pip install git+https://github.com/datalad/datalad-redcap.git@main
```
## Commands
- `export-redcap-form`: Export records from selected forms (instruments)
- `export-redcap-project-xml`: Export entire project as a REDCap XML File
- `export-redcap-report`: Export a report that was defined in a project
- `redcap-query`: Show names of available forms (instruments)
## Usage examples
The example below will show available forms, export a given form from REDCap in csv format, and save the file in a DataLad dataset.
```
datalad create my-exports
cd my-exports
datalad redcap-query
datalad export-redcap-form exported.csv
```
## Acknowledgements
This DataLad extension was developed with support from the Deutsche
Forschungsgemeinschaft (DFG, German Research Foundation) under grant SFB 1451
([431549029](https://gepris.dfg.de/gepris/projekt/431549029), INF project).