Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ The goal of the ARTEM-IS is to use insights derived from systematic reviews and

You can find output examples on the [OSF page of this project](https://osf.io/ahp3t/).

## Backup of the Google Spreadsheet

The ARTEM-IS Google Spreadsheet is backed up automatically on every run of `make download`
(or `make convert`, which depends on it).

- Each of the 8 tabs of the spreadsheet is downloaded as a static snapshot under
[`inputs/tsv/`](inputs/tsv/) (e.g. `study_id.tsv`, `hardware.tsv`, `acquisition.tsv`).
- These TSV files are committed to this repository and therefore act as the versioned backup
of the spreadsheet content at the time they were generated.
- The [`inputs/spreadsheet_google_id.tsv`](inputs/spreadsheet_google_id.tsv) file maps each
tab to its source Google Sheet, so the snapshots can always be traced back to the original.

The [`outputs/artemis.tsv`](outputs/artemis.tsv) file is the "linear version" table generated
from these snapshots by [`convert_table/src/convert.py`](convert_table/src/convert.py).

## Why this project?

It is well known that choices made during recording, preprocessing and analysis of EEG data can affect study outcomes, making it critical to describe EEG methods and the decision-making process thoroughly and transparently. Transparent methods records would allow not only better reproducibility and replicability of EEG research or a better appraisal of the quality of existing studies, but also provide a better basis for novel research, for example by providing meta-scientists with relevant information on published studies. Researchers new to the field of EEG may especially benefit from transparent and thorough reports of EEG studies, as some of them are not beneficiaries of the decades of knowledge contained in unpublished materials like ‘lab handbooks’ which may be passed down in labs with longer traditions.
Expand Down
2 changes: 1 addition & 1 deletion convert_table/src/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main():

pattern = "artemis-"

header = ["item", "field", "question", "options", "instructions"]
header = ["item", "field", "question", "options", "instructions", "min_value", "max_value"]

output_file = get_root_dir().joinpath("outputs", "artemis.tsv")
output_file.parent.mkdir(parents=True, exist_ok=True)
Expand Down
19 changes: 19 additions & 0 deletions convert_table/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ def convert_to_int(df_field):
return int(df_field.tolist()[0])


def convert_to_optional_int(df_field):
value = df_field.tolist()[0]
if pd.isna(value) or value == "":
return ""
return int(value)


def snake_case(input: str):
return input.replace("\n", "").replace(" ", "_").replace(",", "")

Expand Down Expand Up @@ -85,6 +92,8 @@ def print_item_to_table(item_id: str, this_item: dict, item_info: dict, sep=" ")
"question": item_info["question"],
"options": choices,
"instructions": details,
"min_value": item_info["min_value"],
"max_value": item_info["max_value"],
}

print(
Expand Down Expand Up @@ -143,6 +152,14 @@ def get_item_info(this_item: dict) -> dict:

mandatory = get_mandatory(this_item)

min_value = ""
if "min_value" in this_item and this_item["min_value"].notna().any():
min_value = convert_to_optional_int(this_item["min_value"])

max_value = ""
if "max_value" in this_item and this_item["max_value"].notna().any():
max_value = convert_to_optional_int(this_item["max_value"])

return {
"name": item_name,
"pref_label": pref_label,
Expand All @@ -155,6 +172,8 @@ def get_item_info(this_item: dict) -> dict:
"visibility": visibility,
"mandatory": mandatory,
"sub_section": sub_section,
"min_value": min_value,
"max_value": max_value,
}


Expand Down
62 changes: 31 additions & 31 deletions inputs/tsv/design_sample.tsv

Large diffs are not rendered by default.

918 changes: 459 additions & 459 deletions outputs/artemis.tsv

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"en": "2.22 - What was the maximum number of trials a participant was presented with, in total (including repetition of the same stimuli or trials)?"
},
"responseOptions": {
"valueType": "xsd:integer"
"valueType": "xsd:integer",
"minValue": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"en": "2.21 - What was the minimum number of trials a participant was presented with, in total (including repetition of the same stimuli or trials)?"
},
"responseOptions": {
"valueType": "xsd:integer"
"valueType": "xsd:integer",
"minValue": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"en": "2.5 - How many between-subject factors does this study/pipeline have?<div style='font-size: 70%; text-align:left;'><details> <summary> details </summary> <br>If you do not have any, please put zero in this field.</details></div>"
},
"responseOptions": {
"valueType": "xsd:integer"
"valueType": "xsd:integer",
"minValue": 0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"en": "2.10 - How many within-subject factors does this study/pipeline have?<div style='font-size: 70%; text-align:left;'><details> <summary> details </summary> <br>If you do not have any, please put zero in this field.</details></div>"
},
"responseOptions": {
"valueType": "xsd:integer"
"valueType": "xsd:integer",
"minValue": 0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"en": "2.7 - How many experimental/comparison groups did the study feature in total? <div style='font-size: 70%; text-align:left;'><details> <summary> details </summary> <br>If participants were not divided into separate groups, please enter 1 to indicate 1 condition. If the design is not full factorial, this number might differ from the total number of between-subject factor level combinations</details></div>"
},
"responseOptions": {
"valueType": "xsd:integer"
"valueType": "xsd:integer",
"minValue": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"en": "2.1 - How many participants took part in the study?"
},
"responseOptions": {
"valueType": "xsd:integer"
"valueType": "xsd:integer",
"minValue": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"en": "2.2 - How many participants, in total, were included in the analysis, after exclusion of participants?"
},
"responseOptions": {
"valueType": "xsd:integer"
"valueType": "xsd:integer",
"minValue": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"en": "2.17 - How many trials in total was each participant presented with (including repetition of the same stimuli or trials)?"
},
"responseOptions": {
"valueType": "xsd:integer"
"valueType": "xsd:integer",
"minValue": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"en": "2.12 - How many within-subject conditions did the study have in total?<div style='font-size: 70%; text-align:left;'><details> <summary> details </summary> <br>If your within-subjects data is not divided into separate conditions, please enter 1 to indicate 1 condition. If the design is not full factorial, this number might differ from the total number of between-subject factor level combinations.</details></div>"
},
"responseOptions": {
"valueType": "xsd:integer"
"valueType": "xsd:integer",
"minValue": 1
}
}