From d6fed906fe73aae70243883c939075cb7118d6c9 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Wed, 24 May 2023 08:22:46 -0400 Subject: [PATCH 1/4] improve doc --- .gitignore | 4 +++ bidsmreye/quality_control.py | 12 ++------ bidsmreye/templates/CITATION.bib | 34 +++++++++++++++++++++++ docs/questions/validation.question.md | 40 ++++++++++++++++++++++++--- docs/source/FAQ.md | 40 ++++++++++++++++++++++++--- docs/source/conf.py | 5 ++++ docs/source/index.rst | 1 + docs/source/references.bib | 1 + docs/source/references.rst | 8 ++++++ pyproject.toml | 1 + 10 files changed, 129 insertions(+), 17 deletions(-) create mode 120000 docs/source/references.bib create mode 100644 docs/source/references.rst diff --git a/.gitignore b/.gitignore index e9e7bad..bcdd3ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +node_modules +package-lock.json +package.json + # folders outputs download diff --git a/bidsmreye/quality_control.py b/bidsmreye/quality_control.py index fb180a5..7bba678 100644 --- a/bidsmreye/quality_control.py +++ b/bidsmreye/quality_control.py @@ -231,17 +231,11 @@ def compute_robust_outliers( points (assuming we don't want to 'remove' too many). References: - - `Rousseeuw, P. J., and Croux, C. (1993). Alternatives to the the median - absolute deviation. J. Am. Stat. Assoc. 88, 1273-1263. - `_ + - :cite:t:`rousseeuw_alternatives_1993` + - :cite:t:`carling_resistant_2000` + - :cite:t:`hoaglin_performance_1986` - - `Carling, K. (2000). Resistant outlier rules and the non-Gaussian case. - Stat. Data Anal. 33, 249:258. - `_ - - `Hoaglin, D.C., Iglewicz, B. (1987) Fine-tuning some resistant rules for - outlier labelling. J. Amer. Statist. Assoc., 82 , 1147:1149 - `_ """ if outlier_type is None: outlier_type = "S-outliers" diff --git a/bidsmreye/templates/CITATION.bib b/bidsmreye/templates/CITATION.bib index c5083d0..d461277 100644 --- a/bidsmreye/templates/CITATION.bib +++ b/bidsmreye/templates/CITATION.bib @@ -17,6 +17,7 @@ @article{deepmreye } + @article{alexander_open_2017, title = {An open resource for transdiagnostic research in pediatric mental health and learning disorders}, volume = {4}, @@ -119,3 +120,36 @@ @article{carling_resistant_2000 pages = {249--258}, file = {Submitted Version:/home/remi/Zotero/storage/VHQYXF6K/Carling - 2000 - Resistant outlier rules and the non-Gaussian case.pdf:application/pdf}, } + +@article{hoaglin_performance_1986, + title = {Performance of {Some} {Resistant} {Rules} for {Outlier} {Labeling}}, + volume = {81}, + issn = {0162-1459, 1537-274X}, + url = {http://www.tandfonline.com/doi/abs/10.1080/01621459.1986.10478363}, + doi = {10.1080/01621459.1986.10478363}, + language = {en}, + number = {396}, + urldate = {2023-05-24}, + journal = {Journal of the American Statistical Association}, + author = {Hoaglin, David C. and Iglewicz, Boris and Tukey, John W.}, + month = dec, + year = {1986}, + pages = {991--999}, +} + + +@article{rousseeuw_alternatives_1993, + title = {Alternatives to the {Median} {Absolute} {Deviation}}, + volume = {88}, + issn = {0162-1459, 1537-274X}, + url = {http://www.tandfonline.com/doi/abs/10.1080/01621459.1993.10476408}, + doi = {10.1080/01621459.1993.10476408}, + language = {en}, + number = {424}, + urldate = {2023-05-24}, + journal = {Journal of the American Statistical Association}, + author = {Rousseeuw, Peter J. and Croux, Christophe}, + month = dec, + year = {1993}, + pages = {1273--1283}, +} diff --git a/docs/questions/validation.question.md b/docs/questions/validation.question.md index 7c7e9c3..d96a6ec 100644 --- a/docs/questions/validation.question.md +++ b/docs/questions/validation.question.md @@ -5,12 +5,44 @@ alt_titles: - "What input format does bidsmreye expect?" --- -bidsmreye requires your input fmri data: - - - to be minimally preprocessed - - with filenames and structure that conforms to a BIDS derivative dataset. +bidsmreye requires a BIDS **preprocessed** dataset as input. Two bids apps are available to generate those types of preprocessed data: - [fmriprep](https://fmriprep.org/en/stable/) - [bidspm](https://bidspm.readthedocs.io/en/latest/general_information.html) + +bidsmreye requires your input fmri data: + + - to be minimally preprocessed + - with [filenames and structure that conforms to a BIDS derivative dataset](https://bids-specification.readthedocs.io/en/latest/derivatives/imaging.html#preprocessed-coregistered-andor-resampled-volumes). + +More specifically the dataset should look like this: + +``` +dataset_description.json +sub-{sub} + [ses-{session}] + func (func_dir) + sub-{sub}[_ses-{session}]_task-{task}[_acq-{acq}][_ce-{ce}][_dir-{dir}][_rec-{rec}][_run-{run_index}]_space-{space}[_res-{res}]_desc-preproc_bold.nii[.gz] +[participants.tsv] +[README] +[CHANGES] +[LICENSE] +``` + +- Filename entities, files or directories between square brackets + (for example, `[_ses-