Skip to content

Configuration File

toujames edited this page Jun 17, 2020 · 6 revisions

config.json

Use the config.json to set configurations relating to your redcap project. The various configurations can be set as you desired.`

Example config.json file

{
    "bids_root": "/path/to/bids/root",
    "records"  : "",
    "events": {
        "event_1_arm_1" : "ses-t0"
    },
    "forms": {
        "anxiety_sensitivity_index_asi3" : {
            "label": "asi3"
        },
        "overall_anxiety_severity_and_impairment_scale_oasi": {
            "label": "oasis"
        },
        "inbody_test": {
            "label": "inbody"
        },
    }
}

"bids_root"

Setting this is where the script will store your output files.

"bids_root": "/path/to/bids/root",

The script will create a "phenotype" directory if it doesn't exists, and place, the configured tsv forms in this path. Using "phenotype" is bids compliant structure. SSee here

"records"

Sets the records to pull from.

"records"  : ["AAA", "BBB", "CCC"]

These records should match what is stored in the redcap project. If it is blank: "records" : "",, then it will export all subjects.

Clone this wiki locally