Skip to content

Commit 73ac4a3

Browse files
authored
Add documentation (#8)
1 parent fb966c3 commit 73ac4a3

29 files changed

+1221
-60
lines changed

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ body:
2828
For information on how to contribute, please refer to our [contributing guidelines](https://www.nipreps.org/community/CONTRIBUTING/).
2929
options:
3030
- "Yes"
31-
- Yes, but I would need guidance
31+
- "Yes, but I would need guidance"
3232
- "No"
3333
validations:
3434
required: true

.github/config.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
2+
3+
# Comment to be posted to on PRs from first time contributors in your repository
4+
newPRWelcomeComment: >
5+
Welcome, new contributor!
6+
7+
We ask you to read through the Contributing Guide:
8+
https://github.com/nipreps/fmripost-template/blob/main/CONTRIBUTING.md
9+
10+
These are guidelines intended to make communication easier by describing a consistent process, but
11+
don't worry if you don't get it everything exactly "right" on the first try.
12+
13+
To boil it down, here are some highlights:
14+
15+
1) Consider starting a conversation in the issues list before submitting a pull request. The discussion might save you a
16+
lot of time coding.
17+
2) Please use a descriptive title for your pull request.
18+
Please remember to set your pull request as a "draft" if it is not ready for review.
19+
3) Any code you submit will be licensed under the same terms (Apache License 2.0) as the rest of fMRIPost-template.
20+
4) We invite every contributor to add themselves to the `.zenodo.json` file
21+
(https://github.com/nipreps/fmripost-template/blob/main/.zenodo.json), which will result in your being listed as an author
22+
at the next release. Please add yourself as the next-to-last entry, just above Russ.
23+
24+
A pull request is a conversation. We may ask you to make some changes before accepting your PR,
25+
and likewise, you should feel free to ask us any questions you have.

.github/pull_request_template.md

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
<!--
2-
Text in these brackets are comments, and won't be visible when you submit your pull request.
3-
If this is your first contribution, please take the time to read these, in particular the comment
4-
beginning "Welcome, new contributors!".
5-
-->
1+
Closes .
62

73
## Changes proposed in this pull request
84

95
<!--
106
Please describe here the main features / changes proposed for review and integration in fMRIPost-template
117
If this PR addresses some existing problem, please use GitHub's citing tools
12-
(eg. ref #, closes # or fixes #).
8+
(e.g., ref #, closes # or fixes #).
139
If there is not an existing issue open describing the problem, please consider opening a new
1410
issue first and then link it from here (so the *fMRIPost-template* community has a better understanding
1511
of ongoing development efforts and possible overlaps between contributions).
@@ -20,30 +16,3 @@ of ongoing development efforts and possible overlaps between contributions).
2016
<!--
2117
Please summarize here the main changes to the documentation that the reviewers should be aware of.
2218
-->
23-
24-
25-
26-
<!--
27-
Welcome, new contributors!
28-
29-
We ask you to read through the Contributing Guide:
30-
https://github.com/nipreps/fmripost-template/blob/main/CONTRIBUTING.md
31-
32-
These are guidelines intended to make communication easier by describing a consistent process, but
33-
don't worry if you don't get it everything exactly "right" on the first try.
34-
35-
To boil it down, here are some highlights:
36-
37-
1) Consider starting a conversation in the issues list before submitting a pull request. The discussion might save you a
38-
lot of time coding.
39-
2) Please use descriptive prefixes in your pull request title, such as "ENH:" for an enhancement or "FIX:" for a bug fix.
40-
(See the Contributing guide for the full set.) And consider adding a "WIP" tag for works-in-progress.
41-
3) Any code you submit will be licensed under the same terms (Apache License 2.0) as the rest of fMRIPost-template.
42-
4) We invite every contributor to add themselves to the `.zenodo.json` file
43-
(https://github.com/nipreps/fmripost-template/blob/main/.zenodo.json), which will result in your being listed as an author
44-
at the next release. Please add yourself as the next-to-last entry, just above Russ.
45-
46-
A pull request is a conversation. We may ask you to make some changes before accepting your PR,
47-
and likewise, you should feel free to ask us any questions you have.
48-
49-
-->

.mailmap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
Christopher J. Markiewicz <[email protected]>
22
Christopher J. Markiewicz <[email protected]> <[email protected]>
33
Christopher J. Markiewicz <[email protected]> <[email protected]>
4+
Taylor Salo <[email protected]>
5+
6+

.zenodo.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@
66
"affiliation": "Lausanne University Hospital and University of Lausanne, Lausanne, Switzerland",
77
"name": "Esteban, Oscar",
88
"orcid": "0000-0001-8435-6191"
9-
},
10-
{
11-
"name": "Ferrer, Vicente"
12-
},
13-
{
14-
"name": "Uruñuela, Eneko"
15-
},
16-
{
17-
"name": "Pedregosa, Fabian"
18-
},
19-
{
20-
"name": "Caballero Gaudes, Cesar"
219
}
2210
],
2311
"creators": [
@@ -36,7 +24,7 @@
3624
"neuroimaging",
3725
"workflow",
3826
"pipeline",
39-
"preprocessing",
27+
"postprocessing",
4028
"fMRI",
4129
"BIDS"
4230
],

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# MIT License
44
#
5-
# Copyright (c) The NiPreps Developers
5+
# Copyright (c) 2024 The NiPreps Developers
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
src/fmripost_aroma/data/NOTICE
1+
src/fmripost_template/data/NOTICE

README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.rst

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#################
2+
fMRIPost-template
3+
#################
4+
5+
A generic fMRIPost workflow.
6+
7+
********
8+
Overview
9+
********
10+
11+
fMRIPost-template is a template repository that can be used to create new fMRIPost workflows.
12+
13+
The workflows and functions in this repository are designed to implement the majority of
14+
general-purpose steps in an fMRIPost pipeline.
15+
Here are a few of the key features:
16+
17+
1. Configuration files to define expected BIDS derivatives from the preprocessing pipeline.
18+
2. Functions to collect and organize data from the BIDS derivatives.
19+
3. The ability to work with the following preprocessing configurations:
20+
21+
- fMRIPrep with ``--level full`` and the required output space for the fMRIPost workflow.
22+
For example, fMRIPost-AROMA requires outputs in ``MNI152NLin6Asym`` space with
23+
2x2x2 mm voxels.
24+
- fMRIPrep with ``--level full`` and boldref-space outputs,
25+
along with transforms to the required output space for the fMRIPost workflow.
26+
- fMRIPrep with ``--level full`` and boldref-space outputs,
27+
along with transforms to spaces that can be combined with existing transforms to
28+
required spaces.
29+
For example, users may apply fMRIPost-AROMA to boldref derivatives with transforms to
30+
MNI152NLin2009cAsym space.
31+
In this case, the fMRIPost-AROMA workflow will pull a transform from MNI152NLin2009cAsym
32+
to MNI152NLin6Asym from TemplateFlow and apply it,
33+
along with the boldref-to-MNI152NLin2009cAsym transform, to the boldref-space derivatives.
34+
35+
.. warning::
36+
37+
Currently, minimal- and resampling-level fMRIPrep derivatives are not supported,
38+
as fMRIPost workflows typically require confounds that are only generated with
39+
``--level full``.
40+
41+
4. General NiPreps infrastructure for running a BIDS App, such as a config file,
42+
a command-line interface, and tools to generate HTML reports.

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/_static/theme_overrides.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* override table width restrictions */
2+
@media screen and (min-width: 767px) {
3+
4+
.wy-table-responsive table td {
5+
/* !important prevents the common CSS stylesheets from overriding
6+
this as on RTD they are loaded after this stylesheet */
7+
white-space: normal !important;
8+
}
9+
10+
.wy-table-responsive {
11+
overflow: visible !important;
12+
}
13+
}
14+
15+
16+
/* Fix parameter type style */
17+
.function .classifier {
18+
margin: 0 0 0 5px;
19+
padding: 3px;
20+
background: rgba(0, 0, 0, .1);
21+
}

docs/api.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.. include:: links.rst
2+
3+
================
4+
Developers - API
5+
================
6+
7+
The *NiPreps* community and contributing guidelines
8+
---------------------------------------------------
9+
10+
*fMRIPost-template* is a *NiPreps* application, and abides by the
11+
`NiPreps Community guidelines <https://www.nipreps.org/community/>`__.
12+
Please, make sure you have read and understood all the documentation
13+
provided in the `NiPreps portal <https://www.nipreps.org>`__ before
14+
you get started.
15+
16+
Setting up your development environment
17+
---------------------------------------
18+
19+
We believe that *fMRIPost-template* must be free to use, inspect, and critique.
20+
Correspondingly, you should be free to modify our software to improve it
21+
or adapt it to new use cases and we especially welcome contributions to
22+
improve it or its documentation.
23+
24+
We actively direct efforts into making the scrutiny and improvement processes
25+
as easy as possible.
26+
As part of such efforts, we maintain some
27+
`tips and guidelines for developers <https://www.nipreps.org/devs/devenv/>`__
28+
to help minimize your burden if you want to modify the software.
29+
30+
Internal configuration system
31+
-----------------------------
32+
33+
.. automodule:: fmripost_template.config
34+
:members: from_dict, load, get, dumps, to_filename, init_spaces
35+
36+
Workflows
37+
---------
38+
39+
.. automodule:: fmripost_template.workflows.base

docs/changes.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. include:: links.rst
2+
3+
----------
4+
What's new
5+
----------
6+
7+
.. include:: ../CHANGES.rst

0 commit comments

Comments
 (0)