Skip to content

Commit 722a8ba

Browse files
committed
Merge branch 'skeleton'
2 parents c7be729 + 316ae23 commit 722a8ba

File tree

7 files changed

+177
-0
lines changed

7 files changed

+177
-0
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Tue Apr 1 10:16:12 2025 -0400 - [email protected] - sty: ruff format [ignore-rev]
2+
3577bfbbac45ca1e2f9d8b6dd3c036eba5dcd7d2

.github/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
:wave: Welcome, and thank you for your first contribution!
6+
7+
We ask you to take a moment to read through our Contributing Guide:
8+
9+
:point_right: https://github.com/nipreps/fmripost-aroma/blob/main/CONTRIBUTING.md
10+
11+
These guidelines help us maintain a consistent and collaborative workflow.
12+
But don't worry — you don't have to get everything perfect on the first try!
13+
14+
:mag: Here are a few quick tips:
15+
16+
1. **Start a conversation**: Consider opening an issue to discuss your idea
17+
before submitting a pull request. It might save you time.
18+
1. **Descriptive titles**: Please use a clear, descriptive title for your
19+
pull request. If it is still a work in progress, mark it as a "Draft".
20+
1. **Licensing**: All contributions will be licensed under the Apache 2.0
21+
license — the same as the rest of the project.
22+
1. **Authorship**: You're invited to add yourself to the `.zenodo.json` file.
23+
file. This will credit you as a co-author in the next release. Please add
24+
your name as the second-to-last entry, just above the last author.
25+
26+
A pull request is a conversation. We may suggest changes before merging,
27+
and likewise, you should feel free to ask us any questions you have.
28+
29+
:rocket: We're happy to have you here!

README.rst

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
- fMRIPrep with ``--level full`` and raw BOLD data.
35+
In this case, the fMRIPost workflow will apply minimal preprocessing steps internally
36+
to generate the required derivatives.
37+
This will rarely be used, but may be useful for fMRIPost workflows that require raw data,
38+
like fMRIPost-phase.
39+
40+
.. warning::
41+
42+
Currently, minimal- and resampling-level fMRIPrep derivatives are not supported,
43+
as fMRIPost workflows typically require confounds that are only generated with
44+
``--level full``.
45+
46+
4. General NiPreps infrastructure for running a BIDS App, such as a config file,
47+
a command-line interface, and tools to generate HTML reports.
48+
49+
50+
*****
51+
Usage
52+
*****
53+
54+
If you use this template to create a new fMRIPost workflow, you will need to:
55+
56+
1. Replace all instances of ``fmripost_aroma`` with the name of your new workflow.
57+
2. Replace all instances of ``fMRIPost-template`` with the name of your new workflow.
58+
3. Modify the workflows and interfaces to apply your desired processing steps.
59+
4. Update the documentation to reflect the new workflow.
60+
61+
Please also include something like the following in your boilerplate:
62+
63+
> Data were postprocessed using *fMRIPost-<name>*,
64+
> which is based on *fMRIPost-template* ([cite fMRIPost-template version and DOI here]).
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+
# vi: set ft=python sts=4 ts=4 sw=4 et:
3+
#
4+
# Copyright 2024 The NiPreps Developers <[email protected]>
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# We support and encourage derived works from this project, please read
19+
# about our expectations at
20+
#
21+
# https://www.nipreps.org/community/licensing/
22+
#
23+
"""Nipype interfaces for the fMRIPost-template workflow."""
24+
25+
from . import bids, reportlets
26+
27+
__all__ = ['bids', 'reportlets']
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+
# vi: set ft=python sts=4 ts=4 sw=4 et:
3+
#
4+
# Copyright 2024 The NiPreps Developers <[email protected]>
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# We support and encourage derived works from this project, please read
19+
# about our expectations at
20+
#
21+
# https://www.nipreps.org/community/licensing/
22+
#
23+
"""Tools for generating reports."""
24+
25+
from . import core
26+
27+
__all__ = ['core']

src/fmripost_aroma/tests/data/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test data that can be bundled in the GitHub repository.

src/fmripost_aroma/utils/__init__.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
2+
# vi: set ft=python sts=4 ts=4 sw=4 et:
3+
#
4+
# Copyright 2024 The NiPreps Developers <[email protected]>
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# We support and encourage derived works from this project, please read
19+
# about our expectations at
20+
#
21+
# https://www.nipreps.org/community/licensing/
22+
#
23+
"""Utility functions for fMRIPost-template."""
24+
25+
from . import bids, utils
26+
27+
__all__ = ['bids', 'utils']

0 commit comments

Comments
 (0)