[MAINT]: Regular repository maintenance #337
126 changed files with 720 additions and 186 deletions
|
|
@ -4,7 +4,7 @@ ci:
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.5.0
|
rev: v4.6.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-ast
|
- id: check-ast
|
||||||
- id: check-docstring-first
|
- id: check-docstring-first
|
||||||
|
|
@ -20,14 +20,14 @@ repos:
|
||||||
rev: v0.16
|
rev: v0.16
|
||||||
hooks:
|
hooks:
|
||||||
- id: validate-pyproject
|
- id: validate-pyproject
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
||||||
rev: 24.1.1
|
rev: 24.4.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
exclude: ^(docs/|examples/|tools/)
|
exclude: ^(docs/|examples/|tools/)
|
||||||
args: [--check]
|
args: [--check]
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.1.15
|
rev: v0.4.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
types_or: [python, jupyter]
|
types_or: [python, jupyter]
|
||||||
|
|
@ -38,7 +38,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: codespell
|
- id: codespell
|
||||||
exclude: ^(.github/|docs/)
|
exclude: ^(.github/|docs/)
|
||||||
args: [--config, tox.ini]
|
args: [--toml, pyproject.toml]
|
||||||
- repo: https://github.com/pre-commit/pygrep-hooks
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
||||||
rev: v1.10.0
|
rev: v1.10.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
@ -47,3 +47,10 @@ repos:
|
||||||
- id: rst-backticks
|
- id: rst-backticks
|
||||||
- id: rst-directive-colons
|
- id: rst-directive-colons
|
||||||
- id: rst-inline-touching-normal
|
- id: rst-inline-touching-normal
|
||||||
|
- repo: https://github.com/adamchainz/blacken-docs
|
||||||
|
rev: "1.16.0"
|
||||||
|
hooks:
|
||||||
|
- id: blacken-docs
|
||||||
|
additional_dependencies:
|
||||||
|
- black==24.4.2
|
||||||
|
args: [-l 79]
|
||||||
|
|
|
||||||
1
docs/changes/newsfragments/337.misc
Normal file
1
docs/changes/newsfragments/337.misc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Update ``pre-commit`` dependency versions, add ``blacken-docs`` to ``pre-commit``, add ``__all__`` for modules, sub-packages and package, update ``ruff`` and ``pytest`` configs in ``pyproject.toml`` by `Synchon Mandal`_
|
||||||
|
|
@ -70,10 +70,7 @@ with the DMN. Here, we use the DMN coordinates used in a
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
dmn_coords = np.array(
|
dmn_coords = np.array(
|
||||||
[[0, -52, 18],
|
[[0, -52, 18], [-46, -68, 32], [46, -68, 32], [1, 50, -5]]
|
||||||
[-46, -68, 32],
|
|
||||||
[46, -68, 32],
|
|
||||||
[1, 50, -5]]
|
|
||||||
)
|
)
|
||||||
voi_names = [
|
voi_names = [
|
||||||
"Posterior Cingulate Cortex",
|
"Posterior Cingulate Cortex",
|
||||||
|
|
@ -90,10 +87,7 @@ simply use this to register our coordinates:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
register_coordinates(
|
register_coordinates(
|
||||||
name="DMNCustom",
|
name="DMNCustom", coordinates=dmn_coords, voi_names=voi_names, space="MNI"
|
||||||
coordinates=dmn_coords,
|
|
||||||
voi_names=voi_names,
|
|
||||||
space="MNI"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
Now, when we run this script, ``junifer`` registers these coordinates and we can
|
Now, when we run this script, ``junifer`` registers these coordinates and we can
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,6 @@ With the variables defined above, we can create our DataGrabber and name it
|
||||||
|
|
||||||
|
|
||||||
class ExampleBIDSDataGrabber(PatternDataGrabber):
|
class ExampleBIDSDataGrabber(PatternDataGrabber):
|
||||||
|
|
||||||
def __init__(self, datadir: str | Path) -> None:
|
def __init__(self, datadir: str | Path) -> None:
|
||||||
types = ["T1w", "BOLD"]
|
types = ["T1w", "BOLD"]
|
||||||
patterns = {
|
patterns = {
|
||||||
|
|
@ -180,7 +179,6 @@ use the :func:`.register_datagrabber` decorator.
|
||||||
|
|
||||||
@register_datagrabber
|
@register_datagrabber
|
||||||
class ExampleBIDSDataGrabber(PatternDataGrabber):
|
class ExampleBIDSDataGrabber(PatternDataGrabber):
|
||||||
|
|
||||||
def __init__(self, datadir: str | Path) -> None:
|
def __init__(self, datadir: str | Path) -> None:
|
||||||
types = ["T1w", "BOLD"]
|
types = ["T1w", "BOLD"]
|
||||||
patterns = {
|
patterns = {
|
||||||
|
|
@ -267,7 +265,6 @@ And we can create our DataGrabber:
|
||||||
|
|
||||||
@register_datagrabber
|
@register_datagrabber
|
||||||
class ExampleBIDSDataGrabber(PatternDataladDataGrabber):
|
class ExampleBIDSDataGrabber(PatternDataladDataGrabber):
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
types = ["T1w", "BOLD"]
|
types = ["T1w", "BOLD"]
|
||||||
patterns = {
|
patterns = {
|
||||||
|
|
@ -448,8 +445,9 @@ So, to summarise, our DataGrabber will look like this:
|
||||||
|
|
||||||
@register_datagrabber
|
@register_datagrabber
|
||||||
class ExampleBIDSDataGrabber(BaseDataGrabber):
|
class ExampleBIDSDataGrabber(BaseDataGrabber):
|
||||||
|
def get_item(
|
||||||
def get_item(self, subject: str, session: str) -> dict[str, dict[str, str]]:
|
self, subject: str, session: str
|
||||||
|
) -> dict[str, dict[str, str]]:
|
||||||
out = {
|
out = {
|
||||||
"T1w": {
|
"T1w": {
|
||||||
"path": f"{subject}/{session}/anat/{subject}_{session}_T1w.nii.gz",
|
"path": f"{subject}/{session}/anat/{subject}_{session}_T1w.nii.gz",
|
||||||
|
|
@ -522,9 +520,7 @@ this:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
def get_item(
|
def get_item(self, subject: str, session: str) -> dict:
|
||||||
self, subject: str, session: str
|
|
||||||
) -> dict:
|
|
||||||
out = {
|
out = {
|
||||||
"BOLD": {
|
"BOLD": {
|
||||||
"path": f"{subject}/{session}/func/{subject}_{session}_task-rest_bold.nii.gz",
|
"path": f"{subject}/{session}/func/{subject}_{session}_task-rest_bold.nii.gz",
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,7 @@ that it shows the problem a bit better and how we solve it:
|
||||||
self, using: str, reference: str, on: Union[List[str], str]
|
self, using: str, reference: str, on: Union[List[str], str]
|
||||||
) -> None:
|
) -> None:
|
||||||
# validation and setting up
|
# validation and setting up
|
||||||
|
...
|
||||||
|
|
||||||
|
|
||||||
Here, you see a new class attribute ``_CONDITIONAL_DEPENDENCIES`` which is a
|
Here, you see a new class attribute ``_CONDITIONAL_DEPENDENCIES`` which is a
|
||||||
|
|
@ -129,6 +130,7 @@ similar. ``FSLWarper`` looks like this (only the relevant part is shown here):
|
||||||
extra_input: Dict[str, Any],
|
extra_input: Dict[str, Any],
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
# implementation
|
# implementation
|
||||||
|
...
|
||||||
|
|
||||||
Here you can see the familiar ``_DEPENDENCIES`` and ``_EXT_DEPENDENCIES`` class
|
Here you can see the familiar ``_DEPENDENCIES`` and ``_EXT_DEPENDENCIES`` class
|
||||||
attributes. The validation process starts by looking up the ``using`` value of
|
attributes. The validation process starts by looking up the ``using`` value of
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,6 @@ Template for a custom Marker
|
||||||
|
|
||||||
@register_marker
|
@register_marker
|
||||||
class TemplateMarker(BaseMarker):
|
class TemplateMarker(BaseMarker):
|
||||||
|
|
||||||
def __init__(self, on=None, name=None):
|
def __init__(self, on=None, name=None):
|
||||||
# TODO: add marker-specific parameters
|
# TODO: add marker-specific parameters
|
||||||
super().__init__(on=on, name=name)
|
super().__init__(on=on, name=name)
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ look like this:
|
||||||
name="my_custom_parcellation",
|
name="my_custom_parcellation",
|
||||||
parcellation_path=path_to_parcellation,
|
parcellation_path=path_to_parcellation,
|
||||||
parcels_labels=my_labels,
|
parcels_labels=my_labels,
|
||||||
space="MNI152NLin2009cAsym"
|
space="MNI152NLin2009cAsym",
|
||||||
)
|
)
|
||||||
|
|
||||||
We can run this code and it seems to work, however, how can we actually
|
We can run this code and it seems to work, however, how can we actually
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,11 @@ For input we can accept ``T1w``, ``T2w`` and ``BOLD``
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
def get_valid_inputs(self) -> list[str]:
|
def get_valid_inputs(self) -> list[str]:
|
||||||
return ["T1w", "T2w", "BOLD"]
|
return ["T1w", "T2w", "BOLD"]
|
||||||
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
The output definition of the Preprocessor is unused now but is kept for
|
The output definition of the Preprocessor is unused now but is kept for
|
||||||
|
|
@ -55,9 +57,11 @@ completeness.
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
def get_output_type(self, input_type: str) -> str:
|
def get_output_type(self, input_type: str) -> str:
|
||||||
return input_type
|
return input_type
|
||||||
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
.. _extending_preprocessors_init:
|
.. _extending_preprocessors_init:
|
||||||
|
|
@ -90,6 +94,7 @@ you configure it. Our class will have the following arguments:
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
fwhm: int | float | ArrayLike | Literal["fast"] | None,
|
fwhm: int | float | ArrayLike | Literal["fast"] | None,
|
||||||
|
|
@ -98,6 +103,7 @@ you configure it. Our class will have the following arguments:
|
||||||
self.fwhm = fwhm
|
self.fwhm = fwhm
|
||||||
super().__init__(on=on)
|
super().__init__(on=on)
|
||||||
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
.. caution::
|
.. caution::
|
||||||
|
|
@ -147,6 +153,7 @@ and it has two return values:
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
def preprocess(
|
def preprocess(
|
||||||
self,
|
self,
|
||||||
input: dict[str, Any],
|
input: dict[str, Any],
|
||||||
|
|
@ -155,8 +162,10 @@ and it has two return values:
|
||||||
input["data"] = nimg.smooth_img(imgs=input["data"], fwhm=self.fwhm)
|
input["data"] = nimg.smooth_img(imgs=input["data"], fwhm=self.fwhm)
|
||||||
return input, None
|
return input, None
|
||||||
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
Step 4: Finalise the Preprocessor
|
Step 4: Finalise the Preprocessor
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ This is the *object* that traverses the steps of the pipeline. It is indeed a
|
||||||
dictionary of dictionaries. The first level of keys are the :ref:`data types <data_types>`
|
dictionary of dictionaries. The first level of keys are the :ref:`data types <data_types>`
|
||||||
and the values are the corresponding information as dictionaries.
|
and the values are the corresponding information as dictionaries.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block::
|
||||||
|
|
||||||
{'BOLD': {...}, 'T1w': {...}}
|
{'BOLD': {...}, 'T1w': {...}}
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ The :ref:`Data Grabber <datagrabber>` step adds the ``path`` second-level key
|
||||||
which gives the path to the file containing the data. The ``meta`` key in this
|
which gives the path to the file containing the data. The ``meta`` key in this
|
||||||
step only contains information about the DataGrabber used.
|
step only contains information about the DataGrabber used.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block::
|
||||||
|
|
||||||
{'BOLD': {'meta': {'datagrabber': {'class': 'SPMAuditoryTestingDataGrabber',
|
{'BOLD': {'meta': {'datagrabber': {'class': 'SPMAuditoryTestingDataGrabber',
|
||||||
'types': ['BOLD', 'T1w']},
|
'types': ['BOLD', 'T1w']},
|
||||||
|
|
@ -41,7 +41,7 @@ The :ref:`Data Reader <datareader>` step adds the ``data`` second-level key
|
||||||
which is the actual data loaded into memory. The ``meta`` key in this step
|
which is the actual data loaded into memory. The ``meta`` key in this step
|
||||||
adds information about the DataReader used to read the data.
|
adds information about the DataReader used to read the data.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block::
|
||||||
|
|
||||||
{'BOLD': {'data': <nibabel.nifti1.Nifti1Image object at 0x16b5d8910>,
|
{'BOLD': {'data': <nibabel.nifti1.Nifti1Image object at 0x16b5d8910>,
|
||||||
'meta': {'datagrabber': {'class': 'SPMAuditoryTestingDataGrabber',
|
'meta': {'datagrabber': {'class': 'SPMAuditoryTestingDataGrabber',
|
||||||
|
|
@ -58,6 +58,7 @@ adds information about the DataReader used to read the data.
|
||||||
'element': {'subject': 'sub001'}},
|
'element': {'subject': 'sub001'}},
|
||||||
'path': PosixPath('/var/folders/dv/2lbr8f8j0q12zrx3mz3ll5m40000gp/T/tmpe49321ce/sub001_T1w.nii.gz')}}
|
'path': PosixPath('/var/folders/dv/2lbr8f8j0q12zrx3mz3ll5m40000gp/T/tmpe49321ce/sub001_T1w.nii.gz')}}
|
||||||
|
|
||||||
|
|
||||||
The :ref:`Preprocess <preprocess>` step, if used, modifies the ``data``
|
The :ref:`Preprocess <preprocess>` step, if used, modifies the ``data``
|
||||||
second-level key's value and appends the ``meta`` key with information about
|
second-level key's value and appends the ``meta`` key with information about
|
||||||
the preprocessor.
|
the preprocessor.
|
||||||
|
|
@ -66,7 +67,7 @@ The :ref:`Marker <marker>` step removes the ``path`` second-level key,
|
||||||
replaces the ``data`` second-level key's value with the marker's computed value
|
replaces the ``data`` second-level key's value with the marker's computed value
|
||||||
and adds further keys needed for the storage, for example, ``col_names``.
|
and adds further keys needed for the storage, for example, ``col_names``.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block::
|
||||||
|
|
||||||
{'BOLD': {'col_names': ['root_sum_of_squares_ets'],
|
{'BOLD': {'col_names': ['root_sum_of_squares_ets'],
|
||||||
'data': ...,
|
'data': ...,
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ Example in python format:
|
||||||
strategy = {
|
strategy = {
|
||||||
"motion": "basic",
|
"motion": "basic",
|
||||||
"wm_csf": "full",
|
"wm_csf": "full",
|
||||||
"global_signal": "derivatives"
|
"global_signal": "derivatives",
|
||||||
}
|
}
|
||||||
|
|
||||||
or in YAML format:
|
or in YAML format:
|
||||||
|
|
@ -85,11 +85,7 @@ The default value is to use all the *noise components* with the ``full`` *confou
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
strategy = {
|
strategy = {"motion": "full", "wm_csf": "full", "global_signal": "full"}
|
||||||
"motion": "full",
|
|
||||||
"wm_csf": "full",
|
|
||||||
"global_signal": "full"
|
|
||||||
}
|
|
||||||
|
|
||||||
Other Parameters
|
Other Parameters
|
||||||
~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
|
||||||
|
|
@ -20,3 +20,20 @@ from . import (
|
||||||
onthefly,
|
onthefly,
|
||||||
)
|
)
|
||||||
from ._version import __version__
|
from ._version import __version__
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"api",
|
||||||
|
"configs",
|
||||||
|
"data",
|
||||||
|
"datagrabber",
|
||||||
|
"datareader",
|
||||||
|
"markers",
|
||||||
|
"pipeline",
|
||||||
|
"preprocess",
|
||||||
|
"stats",
|
||||||
|
"storage",
|
||||||
|
"utils",
|
||||||
|
"external",
|
||||||
|
"onthefly",
|
||||||
|
]
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,6 @@
|
||||||
from . import decorators
|
from . import decorators
|
||||||
from .cli import cli
|
from .cli import cli
|
||||||
from .functions import collect, queue, run
|
from .functions import collect, queue, run
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ["decorators", "cli", "collect", "queue", "run"]
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,15 @@ from typing import Type
|
||||||
from ..pipeline.registry import register
|
from ..pipeline.registry import register
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"register_datagrabber",
|
||||||
|
"register_datareader",
|
||||||
|
"register_preprocessor",
|
||||||
|
"register_marker",
|
||||||
|
"register_storage",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def register_datagrabber(klass: Type) -> Type:
|
def register_datagrabber(klass: Type) -> Type:
|
||||||
"""Register DataGrabber.
|
"""Register DataGrabber.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ from .queue_context import GnuParallelLocalAdapter, HTCondorAdapter
|
||||||
from .utils import yaml
|
from .utils import yaml
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ["run", "collect", "queue", "reset", "list_elements"]
|
||||||
|
|
||||||
|
|
||||||
def _get_datagrabber(datagrabber_config: Dict) -> BaseDataGrabber:
|
def _get_datagrabber(datagrabber_config: Dict) -> BaseDataGrabber:
|
||||||
"""Get DataGrabber.
|
"""Get DataGrabber.
|
||||||
|
|
||||||
|
|
@ -92,7 +95,7 @@ def run(
|
||||||
datagrabber : dict
|
datagrabber : dict
|
||||||
DataGrabber to use. Must have a key ``kind`` with the kind of
|
DataGrabber to use. Must have a key ``kind`` with the kind of
|
||||||
DataGrabber to use. All other keys are passed to the DataGrabber
|
DataGrabber to use. All other keys are passed to the DataGrabber
|
||||||
init function.
|
constructor.
|
||||||
markers : list of dict
|
markers : list of dict
|
||||||
List of markers to extract. Each marker is a dict with at least two
|
List of markers to extract. Each marker is a dict with at least two
|
||||||
keys: ``name`` and ``kind``. The ``name`` key is used to name the
|
keys: ``name`` and ``kind``. The ``name`` key is used to name the
|
||||||
|
|
@ -102,11 +105,11 @@ def run(
|
||||||
storage : dict
|
storage : dict
|
||||||
Storage to use. Must have a key ``kind`` with the kind of
|
Storage to use. Must have a key ``kind`` with the kind of
|
||||||
storage to use. All other keys are passed to the storage
|
storage to use. All other keys are passed to the storage
|
||||||
init function.
|
constructor.
|
||||||
preprocessors : list of dict, optional
|
preprocessors : list of dict, optional
|
||||||
List of preprocessors to use. Each preprocessor is a dict with at
|
List of preprocessors to use. Each preprocessor is a dict with at
|
||||||
least a key ``kind`` specifying the preprocessor to use. All other keys
|
least a key ``kind`` specifying the preprocessor to use. All other keys
|
||||||
are passed to the preprocessor init function (default None).
|
are passed to the preprocessor constructor (default None).
|
||||||
elements : str or tuple or list of str or tuple, optional
|
elements : str or tuple or list of str or tuple, optional
|
||||||
Element(s) to process. Will be used to index the DataGrabber
|
Element(s) to process. Will be used to index the DataGrabber
|
||||||
(default None).
|
(default None).
|
||||||
|
|
@ -188,7 +191,7 @@ def collect(storage: Dict) -> None:
|
||||||
storage : dict
|
storage : dict
|
||||||
Storage to use. Must have a key ``kind`` with the kind of
|
Storage to use. Must have a key ``kind`` with the kind of
|
||||||
storage to use. All other keys are passed to the storage
|
storage to use. All other keys are passed to the storage
|
||||||
init function.
|
constructor.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
storage_params = storage.copy()
|
storage_params = storage.copy()
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@ from ..utils.logging import logger, raise_error
|
||||||
from .utils import yaml
|
from .utils import yaml
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ["parse_yaml"]
|
||||||
|
|
||||||
|
|
||||||
def parse_yaml(filepath: Union[str, Path]) -> Dict:
|
def parse_yaml(filepath: Union[str, Path]) -> Dict:
|
||||||
"""Parse YAML.
|
"""Parse YAML.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,3 +6,6 @@
|
||||||
from .queue_context_adapter import QueueContextAdapter
|
from .queue_context_adapter import QueueContextAdapter
|
||||||
from .htcondor_adapter import HTCondorAdapter
|
from .htcondor_adapter import HTCondorAdapter
|
||||||
from .gnu_parallel_local_adapter import GnuParallelLocalAdapter
|
from .gnu_parallel_local_adapter import GnuParallelLocalAdapter
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ["QueueContextAdapter", "HTCondorAdapter", "GnuParallelLocalAdapter"]
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ if [ -d "${var}" ]; then
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Docker args: ${docker_args[*]}" >&2
|
echo "Docker args: ${docker_args[*]}" >&2
|
||||||
echo "Corrected args for afni: ${corrected_args[*]}" >&2
|
echo "Corrected args for AFNI: ${corrected_args[*]}" >&2
|
||||||
|
|
||||||
cwd=$(pwd)
|
cwd=$(pwd)
|
||||||
cmd="docker run --rm ${docker_args[*]} -v ${cwd}:${cwd} -w ${cwd} afni/afni_make_build ${corrected_args[*]}"
|
cmd="docker run --rm ${docker_args[*]} -v ${cwd}:${cwd} -w ${cwd} afni/afni_make_build ${corrected_args[*]}"
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ if [ -d "${var}" ]; then
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Docker args: ${docker_args[*]}" >&2
|
echo "Docker args: ${docker_args[*]}" >&2
|
||||||
echo "Corrected args for fsl: ${corrected_args[*]}" >&2
|
echo "Corrected args for ANTs: ${corrected_args[*]}" >&2
|
||||||
|
|
||||||
cwd=$(pwd)
|
cwd=$(pwd)
|
||||||
cmd="docker run --rm ${docker_args[*]} -v ${cwd}:${cwd} -w ${cwd} antsx/ants ${corrected_args[*]}"
|
cmd="docker run --rm ${docker_args[*]} -v ${cwd}:${cwd} -w ${cwd} antsx/ants ${corrected_args[*]}"
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ if [ -d "${var}" ]; then
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Docker args: ${docker_args[*]}" >&2
|
echo "Docker args: ${docker_args[*]}" >&2
|
||||||
echo "Corrected args for fsl: ${corrected_args[*]}" >&2
|
echo "Corrected args for FSL: ${corrected_args[*]}" >&2
|
||||||
|
|
||||||
cwd=$(pwd)
|
cwd=$(pwd)
|
||||||
cmd="docker run --rm ${docker_args[*]} -v ${cwd}:${cwd} -w ${cwd} brainlife/fsl ${corrected_args[*]}"
|
cmd="docker run --rm ${docker_args[*]} -v ${cwd}:${cwd} -w ${cwd} brainlife/fsl ${corrected_args[*]}"
|
||||||
|
|
|
||||||
|
|
@ -4,3 +4,6 @@
|
||||||
# License: AGPL
|
# License: AGPL
|
||||||
|
|
||||||
from . import datagrabbers
|
from . import datagrabbers
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ["datagrabbers"]
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue