-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into conp-bot/MRI_data_for__Stress_inducible_ph…
…osphoprotein_1__HOP_STI1_STIP1__regulates_the_spreading__aggregation__and_toxicity_of_α_synuclein_in_vivo_
- Loading branch information
Showing
151 changed files
with
2,846 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,97 +2,120 @@ | |
|
||
[](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. |
Submodule 1000GenomesProject
updated
from feee40 to 4f7c10
Submodule AdolescentBrainDevelopment
added at
b8a3f6
Submodule BigBrain
updated
from b07cd9 to 6b6361
Submodule CHBMP
updated
from f24775 to 70a011
Submodule CIMA-Q
added at
14c35e
1 change: 1 addition & 0 deletions
1
projects/Expression_based_polygenic_score_from_the_amygdala_5HTT_gene_network
Submodule Expression_based_polygenic_score_from_the_amygdala_5HTT_gene_network
added at
3cddf9
1 change: 1 addition & 0 deletions
1
..._high_resolution_perfusion_imaging_using_Arterial_Spin_Labelling_MRI_at_3_Tesla___Dataset
Submodule Feasibility_of_high_resolution_perfusion_imaging_using_Arterial_Spin_Labelling_MRI_at_3_Tesla___Dataset
added at
68f20c
Submodule Neurocon
updated
from e1ea3e to efe280
Submodule PERFORM_Dataset__one_control_subject
updated
from 23f86d to 1c4df5
1 change: 1 addition & 0 deletions
1
...dsourcing_the_T_sub_1__sub__mapping_common_ground_via_the_ISMRM_reproducibility_challenge
Submodule Paper_is_not_enough__Crowdsourcing_the_T_sub_1__sub__mapping_common_ground_via_the_ISMRM_reproducibility_challenge
added at
1e0001
Submodule SIMON-dataset
updated
from a8e1e6 to dad740
Submodule Taowu
updated
from 8d8dea to bc40a1
1 change: 1 addition & 0 deletions
1
...cts/_Dataset__Analysis_code_for_the_paper__RF_shimming_in_the_cervical_spinal_cord_at_7T_
Submodule _Dataset__Analysis_code_for_the_paper__RF_shimming_in_the_cervical_spinal_cord_at_7T_
added at
0913fa
2 changes: 1 addition & 1 deletion
2
projects/braincode_5P_Predicting_Persistent_Postconcussive_Problems_in_Pediatric
Submodule braincode_5P_Predicting_Persistent_Postconcussive_Problems_in_Pediatric
updated
from 725427 to 9f4b68
2 changes: 1 addition & 1 deletion
2
projects/braincode_CAN-BIND_Biomarkers_for_Depression_Baseline_Data_Release
Submodule braincode_CAN-BIND_Biomarkers_for_Depression_Baseline_Data_Release
updated
from c733e6 to c10ea5
Submodule braincode_CONNECT_RECOVER
added at
cd3b79
Submodule braincode_CP-NET
added at
f1b502
Submodule braincode_EpLink
added at
e5de06
Submodule braincode_Epilepsy_Priority_Setting_Partnership
added at
33b708
Submodule braincode_Mouse_Image
updated
from 386c79 to 308947
Submodule braincode_NDD_Priority_Setting_Partnership
updated
from c58998 to 33dd7c
2 changes: 1 addition & 1 deletion
2
projects/braincode_ONDRI_Foundation_Study_Baseline_Data_Release
Submodule braincode_ONDRI_Foundation_Study_Baseline_Data_Release
updated
from 60690c to cbbd79
Submodule braincode_POND_Registry_Clinical_Data_Release
updated
from 18bd3b to 5ab740
Submodule braincode_POND_Registry_Imaging_Data_Release
updated
from caa305 to dfede5
Submodule braincode_fBIRN
updated
from 4abbc5 to bf1c20
Submodule cbig-als
added at
497197
Submodule cbig_3_hydroxybutyric_aciduria_wes
added at
27a1a9
Submodule cbig_DOOR_syndrome_wes
added at
8c92b5
Submodule cbig_adolescent_idiopathic_scoliosis_wes
added at
85092e
Submodule cbig_alzheimers_disease_wes
added at
43cc0e
Submodule cbig_amusia_wes
added at
0d174f
Submodule cbig_amyotrophic_lateral_sclerosis_wes
added at
08d200
Submodule cbig_aneurysm_wes
added at
57c260
Submodule cbig_arteriovenous_malformation_wes
added at
2d00c3
Submodule cbig_autism_spectrum_disorder_wes
added at
bc0229
Submodule cbig_bipolar_affective_disorder_wes
added at
47d57d
Submodule cbig_bipolar_ii_wes
added at
c44caa
Submodule cbig_catatonic_schizophrenia_wgs
added at
9c1002
Submodule cbig_cerebellar_dysgenesis_wes
added at
86d293
Submodule cbig_cerebellar_hypoplasia_wes
added at
9ddbc6
Submodule cbig_chiari_type_i_malformation_wes
added at
53fede
Submodule cbig_cluster_headache_syndrome_wes
added at
9b398b
Submodule cbig_congenital_anteriolateral_bowing_tibia_wes
added at
229f54
Submodule cbig_congenital_hypopituitarism_wes
added at
8d99b3
Submodule cbig_congenital_insensitivity_to_pain_wes
added at
988b60
Submodule cbig_congenital_malformations_nervous_system_wes
added at
49331d
Submodule cbig_congenital_malformations_wes
added at
96b2aa
Submodule cbig_crane_heise_syndrome_wes
added at
7bf2b6
Submodule cbig_disturbance_activity_attention_wes
added at
53f05b
Submodule cbig_dysosteosclerosis_wes
added at
9834f1
Submodule cbig_dystonia_wes
added at
edbad2
Submodule cbig_ehlers_danlos_syndrome_wes
added at
07a0a3
Submodule cbig_epilepsy_wes
added at
5d0a42
Submodule cbig_essential_tremor_wes
added at
633b17
Submodule cbig_essential_tremor_wgs
added at
e6f408
Submodule cbig_frontotemporal_dementia_wes
added at
a4cbdb
Submodule cbig_genitopatellar_syndrome_wes
added at
3bf3fa
Submodule cbig_glioma_wes
added at
9aebe7
Submodule cbig_guam_als_pld_wes
added at
6a51f3
Submodule cbig_hereditary_ataxia_wes
added at
4f0132
Submodule cbig_hereditary_spastic_paraplegia_wes
added at
e8f5e4
Submodule cbig_hereditary_spastic_paraplegia_wgs
added at
6a54dc
Submodule cbig_heterotopia_wes
added at
68969e
Submodule cbig_hypopituitarism_wes
added at
afec75
Submodule cbig_idiopathic_juvenile_osteoporosis_wes
added at
77c105
Submodule cbig_infantile_myofibromatosis_wes
added at
12a6e4
Submodule cbig_intellectual_disability_wes
added at
78799f
Submodule cbig_joubert_syndrome_wes
added at
6933a6
Submodule cbig_juvenile_paget_disease_wes
added at
3e0f55
Submodule cbig_lipoprotein_metabolism_disorder_wes
added at
2f2556
Submodule cbig_meningioma_wes
added at
30674f
Submodule cbig_microcephaly_wes
added at
688b3f
Submodule cbig_mirror_movements_wes
added at
5ac508
Submodule cbig_moyamoya_wgs
added at
3afc5d
Submodule cbig_neural_tube_defect_wes
added at
a9da4a
Submodule cbig_nonsyndromic_intellectual_disability_wes
added at
e3c000
Submodule cbig_obsessive_compulsive_disorder_wes
added at
9bc385
Submodule cbig_osteoporosis_wes
added at
ff4b62
Submodule cbig_other_congenital_brain_malformations_wes
added at
faa923
Submodule cbig_pervasive_developmental_disorder_wes
added at
2415f5
Submodule cbig_pontocerebellar_hypoplasia_wes
added at
04009a
Oops, something went wrong.