Skip to content

Commit 44fa58f

Browse files
committed
move info.py -> __about__.py, rewrite __longdesc__
1 parent 314cfe4 commit 44fa58f

File tree

7 files changed

+58
-23
lines changed

7 files changed

+58
-23
lines changed

.circleci/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ jobs:
224224
echo "Skipping pytest job"
225225
circleci step halt
226226
fi
227+
- run:
228+
name: Check PyPi preconditions
229+
command: |
230+
pip install "setuptools>=27.0" cython numpy twine future
231+
python setup.py check -r -s
232+
python setup.py sdist
227233
- attach_workspace:
228234
at: /tmp
229235
- restore_cache:
@@ -691,6 +697,7 @@ jobs:
691697
command: |
692698
pip install "setuptools>=27.0" cython numpy twine future
693699
echo "${CIRCLE_TAG}" > fmriprep/VERSION
700+
python setup.py check -r -s
694701
python setup.py sdist
695702
twine upload dist/*
696703
cd wrapper && python setup.py sdist

fmriprep/info.py renamed to fmriprep/__about__.py

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,59 @@
1919
__status__ = 'Prototype'
2020
__url__ = 'https://github.com/poldracklab/fmriprep'
2121
__packagename__ = 'fmriprep'
22-
__description__ = ("fMRIprep is a functional magnetic resonance image pre-processing pipeline "
22+
__description__ = ("FMRIprep is a functional magnetic resonance image pre-processing pipeline "
2323
"that is designed to provide an easily accessible, state-of-the-art interface "
2424
"that is robust to differences in scan acquisition protocols and that requires "
2525
"minimal user input, while providing easily interpretable and comprehensive "
2626
"error and output reporting.")
2727
__longdesc__ = """\
2828
Preprocessing of functional MRI (fMRI) involves numerous steps to clean and standardize
29-
data before statistical analysis. Generally, researchers create ad hoc preprocessing
30-
workflows for each new dataset, building upon a large inventory of tools available for
31-
each step. The complexity of these workflows has snowballed with rapid advances in MR data
32-
acquisition and image processing techniques. We introduce fMRIPrep, an analysis-agnostic
33-
tool that addresses the challenge of robust and reproducible preprocessing for task-based
34-
and resting fMRI data. FMRIPrep automatically adapts a best-in-breed workflow to the
35-
idiosyncrasies of virtually any dataset, ensuring high-quality preprocessing with no
36-
manual intervention. By introducing visual assessment checkpoints into an iterative
37-
integration framework for software-testing, we show that fMRIPrep robustly produces
38-
high-quality results on a diverse fMRI data collection comprising participants from
39-
54 different studies in the OpenfMRI repository. We review the distinctive features of
40-
fMRIPrep in a qualitative comparison to other preprocessing workflows. FMRIPrep achieves
41-
higher spatial accuracy as it introduces less uncontrolled spatial smoothness than commonly
42-
used preprocessing tools. FMRIPrep has the potential to transform fMRI research by equipping
29+
data before statistical analysis.
30+
Generally, researchers create ad hoc preprocessing workflows for each new dataset,
31+
building upon a large inventory of tools available for each step.
32+
The complexity of these workflows has snowballed with rapid advances in MR data
33+
acquisition and image processing techniques.
34+
FMRIPrep is an analysis-agnostic tool that addresses the challenge of robust and
35+
reproducible preprocessing for task-based and resting fMRI data.
36+
FMRIPrep automatically adapts a best-in-breed workflow to the idiosyncrasies of
37+
virtually any dataset, ensuring high-quality preprocessing with no manual intervention,
38+
while providing easily interpretable and comprehensive error and output reporting.
39+
It performs basic preprocessing steps (coregistration, normalization, unwarping, noise
40+
component extraction, segmentation, skullstripping etc.) providing outputs that can be
41+
easily submitted to a variety of group level analyses, including task-based or resting-state
42+
fMRI, graph theory measures, surface or volume-based statistics, etc.
43+
44+
The workflow is based on `Nipype <http://nipype.readthedocs.io>`_ and encompases a large
45+
set of tools from well-known neuroimaging packages, including
46+
`FSL <https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/>`_,
47+
`ANTs <https://stnava.github.io/ANTs/>`_,
48+
`FreeSurfer <https://surfer.nmr.mgh.harvard.edu/>`_,
49+
`AFNI <https://afni.nimh.nih.gov/>`_,
50+
and `Nilearn <https://nilearn.github.io/>`_.
51+
This pipeline was designed to provide the best software implementation for each state of
52+
preprocessing, and will be updated as newer and better neuroimaging software becomes
53+
available.
54+
55+
This tool allows you to easily do the following:
56+
57+
* Take fMRI data from *unprocessed* (only reconstructed) to ready for analysis.
58+
* Implement tools from different software packages.
59+
* Achieve optimal data processing quality by using the best tools available.
60+
* Generate preprocessing-assessment reports, with which the user can easily identify problems.
61+
* Receive verbose output concerning the stage of preprocessing for each subject, including
62+
meaningful errors.
63+
* Automate and parallelize processing steps, which provides a significant speed-up from
64+
typical linear, manual processing.
65+
66+
FMRIPrep has the potential to transform fMRI research by equipping
4367
neuroscientists with a high-quality, robust, easy-to-use and transparent preprocessing workflow
4468
which can help ensure the validity of inference and the interpretability of their results.
4569
46-
[Pre-print https://doi.org/10.1101/306951]"""
70+
[Pre-print doi:`10.1101/306951 <https://doi.org/10.1101/306951>`_]
71+
[Documentation `fmriprep.org <http://fmriprep.readthedocs.io>`_]
72+
[Software doi:`10.5281/zenodo.852659 <https://doi.org/10.5281/zenodo.852659>`_]
73+
[Support `neurostars.org <https://neurostars.org/tags/fmriprep>`_]
74+
"""
4775

4876
DOWNLOAD_URL = (
4977
'https://github.com/poldracklab/{name}/archive/{ver}.tar.gz'.format(

fmriprep/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
as well as for open-source software distribution.
1010
"""
1111

12-
from .info import (
12+
from .__about__ import ( # noqa
1313
__version__,
1414
__author__,
1515
__copyright__,

fmriprep/cli/run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def check_deps(workflow):
4242

4343
def get_parser():
4444
"""Build parser object"""
45-
from ..info import __version__
45+
from ..__about__ import __version__
4646

4747
verstr = 'fmriprep v{}'.format(__version__)
4848

@@ -248,7 +248,7 @@ def main():
248248
from nipype import logging as nlogging
249249
from multiprocessing import set_start_method, Process, Manager
250250
from ..viz.reports import generate_reports
251-
from ..info import __version__
251+
from ..__about__ import __version__
252252
set_start_method('forkserver')
253253

254254
warnings.showwarning = _warn_redirect
@@ -367,7 +367,7 @@ def build_workflow(opts, retval):
367367
from pkg_resources import resource_filename as pkgrf
368368

369369
from nipype import logging, config as ncfg
370-
from ..info import __version__
370+
from ..__about__ import __version__
371371
from ..workflows.base import init_fmriprep_wf
372372
from ..utils.bids import collect_participants
373373
from ..viz.reports import generate_reports

fmriprep/workflows/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
)
2828
from ..utils.bids import collect_data
2929
from ..utils.misc import fix_multi_T1w_source_name
30-
from ..info import __version__
30+
from ..__about__ import __version__
3131

3232
from .anatomical import init_anat_preproc_wf
3333
from .bold import init_func_preproc_wf

get_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
def main():
1212
sys.path.insert(0, op.abspath('.'))
13-
from fmriprep.info import __version__
13+
from fmriprep.__about__ import __version__
1414
print(__version__)
1515

1616

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def main():
1313
from setuptools import setup, find_packages
1414
from setuptools.extension import Extension
1515
from numpy import get_include
16-
from fmriprep.info import (
16+
from fmriprep.__about__ import (
1717
__packagename__,
1818
__version__,
1919
__author__,

0 commit comments

Comments
 (0)