Skip to content

Commit

Permalink
Merge branch 'master' into conp-bot/MRI_data_for__Stress_inducible_ph…
Browse files Browse the repository at this point in the history
…osphoprotein_1__HOP_STI1_STIP1__regulates_the_spreading__aggregation__and_toxicity_of_α_synuclein_in_vivo_
  • Loading branch information
emmetaobrien authored Feb 17, 2025
2 parents 6a705b4 + ef287da commit 16daa26
Show file tree
Hide file tree
Showing 151 changed files with 2,846 additions and 373 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:

steps:
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2.0.0
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3.0.0
uses: docker/build-push-action@v5.2.0
with:
push: true
tags: ${{ secrets.DOCKERHUB_REPOSITORY }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
name: pre-commit hooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected].0
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.0.0
- uses: pre-commit/[email protected].1
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue is stale because it has been open 5 months with no activity. Remove stale label or comment or this will be closed in 3 months."
Expand Down
530 changes: 441 additions & 89 deletions .gitmodules

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repos:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
exclude: '.*(\.gitmodules|\.datalad/config|\.gitattributes)$'
- id: check-executables-have-shebangs
# Disable until a stable version of type annotation is out.
# - repo: https://github.com/pre-commit/mirrors-mypy
Expand All @@ -28,8 +29,8 @@ repos:
- id: dockerfilelint
stages: [commit]
# Style
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.0
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
Expand Down
111 changes: 67 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,97 +2,120 @@

[![CircleCI](https://circleci.com/gh/CONP-PCNO/conp-dataset.svg?style=shield)](https://circleci.com/gh/CONP-PCNO/conp-dataset)

CONP dataset is a repository containing the datasets available in the
Canadian Open Neuroscience Platform. It leverages
[DataLad](http://datalad.org) to store metadata and references to
data files distributed in various storage spaces and accessible depending on each data owner's
policy.
**"CONP dataset"** is a repository containing the datasets available through the [CONP Portal](https://portal.conp.ca/). It uses [DataLad](http://datalad.org) to store metadata and references to data files distributed in various storage spaces and accessible according to each data owner's policy.

The instructions below explain how to find and get data from the dataset.
You can also add data by following the instructions in our [contribution
guidelines](https://github.com/CONP-PCNO/conp-dataset/blob/master/.github/CONTRIBUTING.md).
We welcome your feedback! :smiley:
The instructions below explain how to install the necessary software and fetch data from a given dataset. You can also add dataset to the CONP Portal by following the instructions in our [contribution guidelines](https://github.com/CONP-PCNO/conp-dataset/blob/master/.github/CONTRIBUTING.md). We welcome your feedback! :smiley:

## Dataset structure

`projects` contains sub-datasets for projects.
Datasets are contained in each directory listed under projects `projects`. Each project maintainer is responsible for the management and curation of their own datasets.

Projects are responsible for the management and curation
of their own sub-datasets.
## Installing required software - Method 1: NeuroDebian

## Installing required software
The following instructions assume a relatively recent Ubuntu- or Debian-based Linux system, though equivalent steps can be taken with other operating systems.

One of the most convenient ways of installing a host of neuro-related software is through the [Neurodebian](https://neuro.debian.net/) repository. For the following installation procedure, we will assume the use of NeuroDebian, which is installed with:

```
sudo apt-get update
sudo apt-get install neurodebian
```

### Python

The CONP recommends you use Python version 3.12 and up. You can check your Python version with:

```python --version```or ```python3 --version```

### git

`sudo apt-get install git`
```sudo apt-get install git```

It is useful to configure your `git` credentials to avoid having to enter them repeatedly:
It is strongly recommended that you configure your `git` credentials to avoid having to enter them repeatedly or other complications when using DataLad:

`git config --global user.name "yourusername"`
`git config --global user.email "[email protected]"`
```git config --global user.name "Jane Doe"```

Replace “John Doe” with your name.

```git config --global user.email “[email protected]```

Replace “[email protected]” with your email address.

### git-annex

First install the neurodebian package repository:
```
sudo apt-get install git-annex-standalone
```

`sudo apt-get install neurodebian`
As of late 2024, this installs git-annex version 10.20241202 or above, which works with CONP datasets. Earlier versions are also compatible but the CONP recommends a relatively recent version for maximum ease. The version of git-annex installed can be verified with:

Then install the version of git-annex included in this repository:
```git-annex version```

`sudo apt-get install git-annex-standalone`
### DataLad

The version of git-annex installed can be verified with:
```sudo apt-get install datalad```

`git annex version`
## Installing required software - Method 2: `pip`

As of May 12 2020, this installs git annex v 8.20200330, which works with CONP datasets. Earlier versions of git-annex may not.
The same requirements for `Python` and `git` apply from the previous section.

### DataLad:
Recent versions of Ubuntu-based distributions (e.g., based on 24.04 LTS) require virtual environments for external Python packages. You can use `venv` or `pipx` to do this. The easiest for most users is probably to use `pipx`, in which case `git-annex` and `datalad` are installed with the following commands:

`sudo apt-get install datalad`
```
pipx install datalad-installer
datalad-installer git-annex -m datalad/git-annex:release
git config --global filter.annex.process "git-annex filter-process"
pipx install datalad
```

## Getting the data
## Downloading data

Install the main CONP dataset on your computer:

```console
```
datalad install -r http://github.com/CONP-PCNO/conp-dataset
```

Install the specific dataset you are interested in:

```
cd conp-dataset/projects
datalad install <project name>
```

Get the files you are interested in:

```console
```
cd <project name>
datalad get <file_name>
```

This may require authentication depending on the data owner's configuration.
This may require authentication depending on the data owner's configuration. The CONP Portal dataset page corresponding to the dataset you are interested in will indicate whether an account and credentials are required to access data.

You can also search for relevant files and sub-datasets:
You can also search for relevant files and sub-datasets, for example:

```console
```
datalad search T1
```

## Tests

1. Execute `python tests/create_tests.py` from the root of conp-dataset repository
2. Run `pytest tests/` to execute tests for all datasets in projects and investigators
3. To run specific test on specific datasets, run `pytest tests/test_<name of dataset>` like
`pytest tests/test_projects_SIMON-dataset`

For detailed explanations of the tests, please consult the [test suite documentation](https://github.com/CONP-PCNO/conp-dataset/blob/master/tests/README.md).

1. Execute `python tests/create_tests.py` from the root of conp-dataset repository.
2. Run `pytest tests/` to execute tests for all datasets in projects and investigators.
3. To run a specific test on a specific dataset, run `pytest tests/test_<name of dataset>`, e.g., `pytest tests/test_projects_SIMON-dataset`


## Coding standards

To keep the Python code maintainable and readable a suite of QA pipelines is testing the code assuring code standards.
Pull requests will trigger a GitHub workflow executing pre-commit.
To keep the Python code maintainable and readable, a suite of quality-assurance pipelines tests the code. Pull requests will trigger a GitHub workflow executing pre-commit.

To execute pre-commit locally, you will need to [install pre-commit](https://pre-commit.com/#installation) using your favorite method. Then, run:

To execute pre-commit locally, you will need to [install pre-commit](https://pre-commit.com/#installation) using your favorite method.
Then, run:
```bash
pre-commit install

pre-commit run --all-files
```
Pre-commit won't let you commit until reported issue are fixed.
If problematic, you can optionally skip the pre-commit for a local commit using the `--no-verify` flag when commiting, however this will still perform QA test on your PR.

Pre-commit won't let you commit until reported issues are fixed. If problematic, you can optionally skip the pre-commit for a local commit using the `--no-verify` flag when committing, however this will still perform QA test on your PR.
2 changes: 1 addition & 1 deletion projects/1000GenomesProject
Submodule 1000GenomesProject updated from feee40 to 4f7c10
1 change: 1 addition & 0 deletions projects/AdolescentBrainDevelopment
Submodule AdolescentBrainDevelopment added at b8a3f6
2 changes: 1 addition & 1 deletion projects/BigBrain
Submodule BigBrain updated from b07cd9 to 6b6361
2 changes: 1 addition & 1 deletion projects/CHBMP
Submodule CHBMP updated from f24775 to 70a011
1 change: 1 addition & 0 deletions projects/CIMA-Q
Submodule CIMA-Q added at 14c35e
Submodule Expression_based_polygenic_score_from_the_amygdala_5HTT_gene_network added at 3cddf9
Submodule Feasibility_of_high_resolution_perfusion_imaging_using_Arterial_Spin_Labelling_MRI_at_3_Tesla___Dataset added at 68f20c
2 changes: 1 addition & 1 deletion projects/Neurocon
Submodule Neurocon updated from e1ea3e to efe280
2 changes: 1 addition & 1 deletion projects/PERFORM_Dataset__one_control_subject
Submodule PERFORM_Dataset__one_control_subject updated from 23f86d to 1c4df5
Submodule Paper_is_not_enough__Crowdsourcing_the_T_sub_1__sub__mapping_common_ground_via_the_ISMRM_reproducibility_challenge added at 1e0001
2 changes: 1 addition & 1 deletion projects/SIMON-dataset
Submodule SIMON-dataset updated from a8e1e6 to dad740
2 changes: 1 addition & 1 deletion projects/Taowu
Submodule Taowu updated from 8d8dea to bc40a1
Submodule _Dataset__Analysis_code_for_the_paper__RF_shimming_in_the_cervical_spinal_cord_at_7T_ added at 0913fa
Submodule braincode_5P_Predicting_Persistent_Postconcussive_Problems_in_Pediatric updated from 725427 to 9f4b68
Submodule braincode_CAN-BIND_Biomarkers_for_Depression_Baseline_Data_Release updated from c733e6 to c10ea5
1 change: 1 addition & 0 deletions projects/braincode_CONNECT_RECOVER
Submodule braincode_CONNECT_RECOVER added at cd3b79
1 change: 1 addition & 0 deletions projects/braincode_CP-NET
Submodule braincode_CP-NET added at f1b502
1 change: 1 addition & 0 deletions projects/braincode_EpLink
Submodule braincode_EpLink added at e5de06
1 change: 1 addition & 0 deletions projects/braincode_Epilepsy_Priority_Setting_Partnership
Submodule braincode_Epilepsy_Priority_Setting_Partnership added at 33b708
2 changes: 1 addition & 1 deletion projects/braincode_Mouse_Image
Submodule braincode_Mouse_Image updated from 386c79 to 308947
2 changes: 1 addition & 1 deletion projects/braincode_NDD_Priority_Setting_Partnership
Submodule braincode_NDD_Priority_Setting_Partnership updated from c58998 to 33dd7c
Submodule braincode_ONDRI_Foundation_Study_Baseline_Data_Release updated from 60690c to cbbd79
2 changes: 1 addition & 1 deletion projects/braincode_POND_Registry_Clinical_Data_Release
Submodule braincode_POND_Registry_Clinical_Data_Release updated from 18bd3b to 5ab740
2 changes: 1 addition & 1 deletion projects/braincode_POND_Registry_Imaging_Data_Release
Submodule braincode_POND_Registry_Imaging_Data_Release updated from caa305 to dfede5
2 changes: 1 addition & 1 deletion projects/braincode_fBIRN
Submodule braincode_fBIRN updated from 4abbc5 to bf1c20
1 change: 1 addition & 0 deletions projects/cbig-als
Submodule cbig-als added at 497197
1 change: 1 addition & 0 deletions projects/cbig_3_hydroxybutyric_aciduria_wes
Submodule cbig_3_hydroxybutyric_aciduria_wes added at 27a1a9
1 change: 1 addition & 0 deletions projects/cbig_DOOR_syndrome_wes
Submodule cbig_DOOR_syndrome_wes added at 8c92b5
1 change: 1 addition & 0 deletions projects/cbig_adolescent_idiopathic_scoliosis_wes
Submodule cbig_adolescent_idiopathic_scoliosis_wes added at 85092e
1 change: 1 addition & 0 deletions projects/cbig_alzheimers_disease_wes
Submodule cbig_alzheimers_disease_wes added at 43cc0e
1 change: 1 addition & 0 deletions projects/cbig_amusia_wes
Submodule cbig_amusia_wes added at 0d174f
1 change: 1 addition & 0 deletions projects/cbig_amyotrophic_lateral_sclerosis_wes
Submodule cbig_amyotrophic_lateral_sclerosis_wes added at 08d200
1 change: 1 addition & 0 deletions projects/cbig_aneurysm_wes
Submodule cbig_aneurysm_wes added at 57c260
1 change: 1 addition & 0 deletions projects/cbig_arteriovenous_malformation_wes
Submodule cbig_arteriovenous_malformation_wes added at 2d00c3
1 change: 1 addition & 0 deletions projects/cbig_autism_spectrum_disorder_wes
Submodule cbig_autism_spectrum_disorder_wes added at bc0229
1 change: 1 addition & 0 deletions projects/cbig_bipolar_affective_disorder_wes
Submodule cbig_bipolar_affective_disorder_wes added at 47d57d
1 change: 1 addition & 0 deletions projects/cbig_bipolar_ii_wes
Submodule cbig_bipolar_ii_wes added at c44caa
1 change: 1 addition & 0 deletions projects/cbig_catatonic_schizophrenia_wgs
Submodule cbig_catatonic_schizophrenia_wgs added at 9c1002
1 change: 1 addition & 0 deletions projects/cbig_cerebellar_dysgenesis_wes
Submodule cbig_cerebellar_dysgenesis_wes added at 86d293
1 change: 1 addition & 0 deletions projects/cbig_cerebellar_hypoplasia_wes
Submodule cbig_cerebellar_hypoplasia_wes added at 9ddbc6
1 change: 1 addition & 0 deletions projects/cbig_chiari_type_i_malformation_wes
Submodule cbig_chiari_type_i_malformation_wes added at 53fede
1 change: 1 addition & 0 deletions projects/cbig_cluster_headache_syndrome_wes
Submodule cbig_cluster_headache_syndrome_wes added at 9b398b
1 change: 1 addition & 0 deletions projects/cbig_congenital_anteriolateral_bowing_tibia_wes
Submodule cbig_congenital_anteriolateral_bowing_tibia_wes added at 229f54
1 change: 1 addition & 0 deletions projects/cbig_congenital_hypopituitarism_wes
Submodule cbig_congenital_hypopituitarism_wes added at 8d99b3
1 change: 1 addition & 0 deletions projects/cbig_congenital_insensitivity_to_pain_wes
Submodule cbig_congenital_insensitivity_to_pain_wes added at 988b60
1 change: 1 addition & 0 deletions projects/cbig_congenital_malformations_nervous_system_wes
Submodule cbig_congenital_malformations_nervous_system_wes added at 49331d
1 change: 1 addition & 0 deletions projects/cbig_congenital_malformations_wes
Submodule cbig_congenital_malformations_wes added at 96b2aa
1 change: 1 addition & 0 deletions projects/cbig_crane_heise_syndrome_wes
Submodule cbig_crane_heise_syndrome_wes added at 7bf2b6
1 change: 1 addition & 0 deletions projects/cbig_disturbance_activity_attention_wes
Submodule cbig_disturbance_activity_attention_wes added at 53f05b
1 change: 1 addition & 0 deletions projects/cbig_dysosteosclerosis_wes
Submodule cbig_dysosteosclerosis_wes added at 9834f1
1 change: 1 addition & 0 deletions projects/cbig_dystonia_wes
Submodule cbig_dystonia_wes added at edbad2
1 change: 1 addition & 0 deletions projects/cbig_ehlers_danlos_syndrome_wes
Submodule cbig_ehlers_danlos_syndrome_wes added at 07a0a3
1 change: 1 addition & 0 deletions projects/cbig_epilepsy_wes
Submodule cbig_epilepsy_wes added at 5d0a42
1 change: 1 addition & 0 deletions projects/cbig_essential_tremor_wes
Submodule cbig_essential_tremor_wes added at 633b17
1 change: 1 addition & 0 deletions projects/cbig_essential_tremor_wgs
Submodule cbig_essential_tremor_wgs added at e6f408
1 change: 1 addition & 0 deletions projects/cbig_frontotemporal_dementia_wes
Submodule cbig_frontotemporal_dementia_wes added at a4cbdb
1 change: 1 addition & 0 deletions projects/cbig_genitopatellar_syndrome_wes
Submodule cbig_genitopatellar_syndrome_wes added at 3bf3fa
1 change: 1 addition & 0 deletions projects/cbig_glioma_wes
Submodule cbig_glioma_wes added at 9aebe7
1 change: 1 addition & 0 deletions projects/cbig_guam_als_pld_wes
Submodule cbig_guam_als_pld_wes added at 6a51f3
1 change: 1 addition & 0 deletions projects/cbig_hereditary_ataxia_wes
Submodule cbig_hereditary_ataxia_wes added at 4f0132
1 change: 1 addition & 0 deletions projects/cbig_hereditary_spastic_paraplegia_wes
Submodule cbig_hereditary_spastic_paraplegia_wes added at e8f5e4
1 change: 1 addition & 0 deletions projects/cbig_hereditary_spastic_paraplegia_wgs
Submodule cbig_hereditary_spastic_paraplegia_wgs added at 6a54dc
1 change: 1 addition & 0 deletions projects/cbig_heterotopia_wes
Submodule cbig_heterotopia_wes added at 68969e
1 change: 1 addition & 0 deletions projects/cbig_hypopituitarism_wes
Submodule cbig_hypopituitarism_wes added at afec75
1 change: 1 addition & 0 deletions projects/cbig_idiopathic_juvenile_osteoporosis_wes
Submodule cbig_idiopathic_juvenile_osteoporosis_wes added at 77c105
1 change: 1 addition & 0 deletions projects/cbig_infantile_myofibromatosis_wes
Submodule cbig_infantile_myofibromatosis_wes added at 12a6e4
1 change: 1 addition & 0 deletions projects/cbig_intellectual_disability_wes
Submodule cbig_intellectual_disability_wes added at 78799f
1 change: 1 addition & 0 deletions projects/cbig_joubert_syndrome_wes
Submodule cbig_joubert_syndrome_wes added at 6933a6
1 change: 1 addition & 0 deletions projects/cbig_juvenile_paget_disease_wes
Submodule cbig_juvenile_paget_disease_wes added at 3e0f55
1 change: 1 addition & 0 deletions projects/cbig_lipoprotein_metabolism_disorder_wes
Submodule cbig_lipoprotein_metabolism_disorder_wes added at 2f2556
1 change: 1 addition & 0 deletions projects/cbig_meningioma_wes
Submodule cbig_meningioma_wes added at 30674f
1 change: 1 addition & 0 deletions projects/cbig_microcephaly_wes
Submodule cbig_microcephaly_wes added at 688b3f
1 change: 1 addition & 0 deletions projects/cbig_mirror_movements_wes
Submodule cbig_mirror_movements_wes added at 5ac508
1 change: 1 addition & 0 deletions projects/cbig_moyamoya_wgs
Submodule cbig_moyamoya_wgs added at 3afc5d
1 change: 1 addition & 0 deletions projects/cbig_neural_tube_defect_wes
Submodule cbig_neural_tube_defect_wes added at a9da4a
1 change: 1 addition & 0 deletions projects/cbig_nonsyndromic_intellectual_disability_wes
Submodule cbig_nonsyndromic_intellectual_disability_wes added at e3c000
1 change: 1 addition & 0 deletions projects/cbig_obsessive_compulsive_disorder_wes
Submodule cbig_obsessive_compulsive_disorder_wes added at 9bc385
1 change: 1 addition & 0 deletions projects/cbig_osteoporosis_wes
Submodule cbig_osteoporosis_wes added at ff4b62
1 change: 1 addition & 0 deletions projects/cbig_other_congenital_brain_malformations_wes
Submodule cbig_other_congenital_brain_malformations_wes added at faa923
1 change: 1 addition & 0 deletions projects/cbig_pervasive_developmental_disorder_wes
Submodule cbig_pervasive_developmental_disorder_wes added at 2415f5
1 change: 1 addition & 0 deletions projects/cbig_pontocerebellar_hypoplasia_wes
Submodule cbig_pontocerebellar_hypoplasia_wes added at 04009a
Loading

0 comments on commit 16daa26

Please sign in to comment.