[DOC] Section on extending junifer (datagrabbers and markers) #124

Merged
fraimondo merged 22 commits from doc/extending into main 2022-11-23 16:52:13 +00:00
fraimondo commented 2022-11-09 13:57:03 +00:00 (Migrated from github.com)
* [x] implement #117, #124 * [x] description of feature/fix * [x] tests added/passed * [x] add an entry to the [latest changes](../docs/changes/latest.inc)
codecov[bot] commented 2022-11-09 13:59:37 +00:00 (Migrated from github.com)

Codecov Report

Merging #124 (3c898d0) into main (cc861a1) will increase coverage by 0.14%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
+ Coverage   95.09%   95.24%   +0.14%     
==========================================
  Files          57       59       +2     
  Lines        2264     2607     +343     
  Branches      426      496      +70     
==========================================
+ Hits         2153     2483     +330     
- Misses         71       78       +7     
- Partials       40       46       +6     
Flag Coverage Δ
docs 100.00% <ø> (ø)
junifer 95.23% <100.00%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
junifer/datagrabber/datalad_base.py 95.00% <ø> (ø)
junifer/datagrabber/multiple.py 97.72% <ø> (ø)
junifer/datagrabber/pattern.py 97.75% <ø> (ø)
junifer/markers/collection.py 100.00% <ø> (ø)
junifer/testing/datagrabbers.py 100.00% <ø> (ø)
junifer/api/decorators.py 100.00% <100.00%> (ø)
junifer/datareader/default.py 100.00% <100.00%> (ø)
junifer/markers/ets_rss.py 91.11% <0.00%> (-1.75%) ⬇️
junifer/markers/parcel_aggregation.py 94.05% <0.00%> (-0.86%) ⬇️
junifer/markers/sphere_aggregation.py 97.26% <0.00%> (-0.42%) ⬇️
... and 7 more
# [Codecov](https://codecov.io/gh/juaml/junifer/pull/124?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) Report > Merging [#124](https://codecov.io/gh/juaml/junifer/pull/124?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) (3c898d0) into [main](https://codecov.io/gh/juaml/junifer/commit/cc861a1a226a61d8be0fa83e517a48c1634d6cb6?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) (cc861a1) will **increase** coverage by `0.14%`. > The diff coverage is `100.00%`. [![Impacted file tree graph](https://codecov.io/gh/juaml/junifer/pull/124/graphs/tree.svg?width=650&height=150&src=pr&token=5H21JuZXMw&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml)](https://codecov.io/gh/juaml/junifer/pull/124?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) ```diff @@ Coverage Diff @@ ## main #124 +/- ## ========================================== + Coverage 95.09% 95.24% +0.14% ========================================== Files 57 59 +2 Lines 2264 2607 +343 Branches 426 496 +70 ========================================== + Hits 2153 2483 +330 - Misses 71 78 +7 - Partials 40 46 +6 ``` | Flag | Coverage Δ | | |---|---|---| | docs | `100.00% <ø> (ø)` | | | junifer | `95.23% <100.00%> (+0.14%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/juaml/junifer/pull/124?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | Coverage Δ | | |---|---|---| | [junifer/datagrabber/datalad\_base.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhZ3JhYmJlci9kYXRhbGFkX2Jhc2UucHk=) | `95.00% <ø> (ø)` | | | [junifer/datagrabber/multiple.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhZ3JhYmJlci9tdWx0aXBsZS5weQ==) | `97.72% <ø> (ø)` | | | [junifer/datagrabber/pattern.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhZ3JhYmJlci9wYXR0ZXJuLnB5) | `97.75% <ø> (ø)` | | | [junifer/markers/collection.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9tYXJrZXJzL2NvbGxlY3Rpb24ucHk=) | `100.00% <ø> (ø)` | | | [junifer/testing/datagrabbers.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci90ZXN0aW5nL2RhdGFncmFiYmVycy5weQ==) | `100.00% <ø> (ø)` | | | [junifer/api/decorators.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9hcGkvZGVjb3JhdG9ycy5weQ==) | `100.00% <100.00%> (ø)` | | | [junifer/datareader/default.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhcmVhZGVyL2RlZmF1bHQucHk=) | `100.00% <100.00%> (ø)` | | | [junifer/markers/ets\_rss.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9tYXJrZXJzL2V0c19yc3MucHk=) | `91.11% <0.00%> (-1.75%)` | :arrow_down: | | [junifer/markers/parcel\_aggregation.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9tYXJrZXJzL3BhcmNlbF9hZ2dyZWdhdGlvbi5weQ==) | `94.05% <0.00%> (-0.86%)` | :arrow_down: | | [junifer/markers/sphere\_aggregation.py](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9tYXJrZXJzL3NwaGVyZV9hZ2dyZWdhdGlvbi5weQ==) | `97.26% <0.00%> (-0.42%)` | :arrow_down: | | ... and [7 more](https://codecov.io/gh/juaml/junifer/pull/124/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | |
github-actions[bot] commented 2022-11-09 14:02:25 +00:00 (Migrated from github.com)
PR Preview Action v1.2.0
Preview removed because the pull request was closed.
2022-11-23 16:56 UTC
[PR Preview Action](https://github.com/rossjrw/pr-preview-action) v1.2.0 :---: Preview removed because the pull request was closed. 2022-11-23 16:56 UTC <!-- Sticky Pull Request Commentpr-preview -->
fraimondo commented 2022-11-09 14:06:01 +00:00 (Migrated from github.com)

Test fail due to dataset id mismatch. Need to merge #123 first.

Test fail due to dataset id mismatch. Need to merge #123 first.
fraimondo commented 2022-11-22 14:50:33 +00:00 (Migrated from github.com)

Also taclkes #117

Also taclkes #117
synchon (Migrated from github.com) requested changes 2022-11-23 10:40:24 +00:00
synchon (Migrated from github.com) left a comment
  • Would be good if we can keep the TOC level to 3: x.y.z
  • Would suggest to rephrase code-less configuration to declarative configuration
- Would be good if we can keep the TOC level to 3: x.y.z - Would suggest to rephrase code-less configuration to declarative configuration
@ -173,11 +173,11 @@ texts.
###############################################################################
# The BIDS datagrabber requires three parameters: the types of data we want,
synchon (Migrated from github.com) commented 2022-11-23 06:58:58 +00:00

# replaced in the patterns.

`# replaced in the patterns.`
@ -0,0 +1,424 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 07:09:32 +00:00

Its

`Its`
synchon (Migrated from github.com) commented 2022-11-23 07:10:18 +00:00

covered

`covered`
synchon (Migrated from github.com) commented 2022-11-23 07:11:20 +00:00

an

`an`
synchon (Migrated from github.com) commented 2022-11-23 07:12:12 +00:00

these

`these`
synchon (Migrated from github.com) commented 2022-11-23 07:17:01 +00:00

... were scanned during 3 sessions ...

`... were scanned during 3 sessions ...`
synchon (Migrated from github.com) commented 2022-11-23 07:21:10 +00:00

... ``{session}`` ...

```... ``{session}`` ...```
synchon (Migrated from github.com) commented 2022-11-23 07:25:01 +00:00
    ...,
    replacements=replacements,
)
``` ..., replacements=replacements, ) ```
synchon (Migrated from github.com) commented 2022-11-23 07:26:24 +00:00
    ...,
    replacements=replacements,
)
``` ..., replacements=replacements, ) ```
synchon (Migrated from github.com) commented 2022-11-23 07:29:47 +00:00

Can we have a hyperlink reference for datalad?

Can we have a hyperlink reference for datalad?
synchon (Migrated from github.com) commented 2022-11-23 07:31:07 +00:00

This class will not only interpret patterns but also use datalad to `clone` and `get` the data.

```This class will not only interpret patterns but also use datalad to `clone` and `get` the data.```
synchon (Migrated from github.com) commented 2022-11-23 07:31:39 +00:00

... .

`... .`
synchon (Migrated from github.com) commented 2022-11-23 07:33:12 +00:00
    ...,
    replacements=replacements,
)
``` ..., replacements=replacements, ) ```
synchon (Migrated from github.com) commented 2022-11-23 07:33:45 +00:00

of

`of`
synchon (Migrated from github.com) commented 2022-11-23 07:35:05 +00:00

... BOLD.

`... BOLD.`
synchon (Migrated from github.com) commented 2022-11-23 07:35:43 +00:00

can

`can`
synchon (Migrated from github.com) commented 2022-11-23 07:36:40 +00:00

represent each of the items ...

`represent each of the items ...`
synchon (Migrated from github.com) commented 2022-11-23 07:38:42 +00:00

One the should be removed.

One `the` should be removed.
@ -0,0 +45,4 @@
Importantly, nothing prevents that one image is part of two different elements.
For example, it is usually the case that the ``T1w`` image is not acquired for
each task, but once in the entire session. So in this case, the ``T1w`` image
for the element (``sub001``, ``ses1``, ``rest``) will be the same as the
synchon (Migrated from github.com) commented 2022-11-23 07:14:48 +00:00

Maybe: ("sub001", "ses1", "rest")?

Maybe: ``("sub001", "ses1", "rest")``?
@ -0,0 +46,4 @@
For example, it is usually the case that the ``T1w`` image is not acquired for
each task, but once in the entire session. So in this case, the ``T1w`` image
for the element (``sub001``, ``ses1``, ``rest``) will be the same as the
``T1w`` image for the element (``sub001``, ``ses1``, ``stroop``).
synchon (Migrated from github.com) commented 2022-11-23 07:15:15 +00:00

And here maybe: ("sub001", "ses1", "stroop")?

And here maybe: ``("sub001", "ses1", "stroop")``?
@ -0,0 +1,28 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 07:02:53 +00:00

functionality to junifer at runtime.

`functionality to junifer at runtime.`
@ -0,0 +1,28 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 07:01:35 +00:00

functionality

`functionality`
@ -0,0 +1,276 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 08:45:18 +00:00

... with the data types that the marker ...

`... with the data types that the marker ... `
synchon (Migrated from github.com) commented 2022-11-23 08:48:21 +00:00

In this example, the only parameter required for computation is the name of the parcellation to use.

`In this example, the only parameter required for computation is the name of the parcellation to use.`
synchon (Migrated from github.com) commented 2022-11-23 09:52:08 +00:00

Rendering for this as well is weird.

Rendering for this as well is weird.
synchon (Migrated from github.com) commented 2022-11-23 09:53:08 +00:00

useful

`useful`
synchon (Migrated from github.com) commented 2022-11-23 10:00:56 +00:00
:ref:`data type <data_types>`
``` :ref:`data type <data_types>` ```
synchon (Migrated from github.com) commented 2022-11-23 10:01:47 +00:00

The method ``store`` ...

```The method ``store`` ...```
synchon (Migrated from github.com) commented 2022-11-23 10:03:06 +00:00

... simply ...

`... simply ...`
synchon (Migrated from github.com) commented 2022-11-23 10:04:05 +00:00

Once all of the above steps are done, we ...

`Once all of the above steps are done, we ...`
synchon (Migrated from github.com) commented 2022-11-23 10:06:44 +00:00

parcellation

`parcellation`
synchon (Migrated from github.com) commented 2022-11-23 10:07:31 +00:00

parcellation_name

`parcellation_name`
synchon (Migrated from github.com) commented 2022-11-23 10:09:05 +00:00

self.parcellation_name = parcellation_name

`self.parcellation_name = parcellation_name`
synchon (Migrated from github.com) commented 2022-11-23 10:09:47 +00:00

parcellation_name

`parcellation_name`
synchon (Migrated from github.com) commented 2022-11-23 10:09:58 +00:00

self.parcellation_name = parcellation_name

`self.parcellation_name = parcellation_name`
@ -0,0 +90,4 @@
In this step, we will define the method that computes the marker. This method will be called by junifer when needed,
using the data provided by the datagrabber, as configured by the user. The function ``compute`` has two arguments:
* ``input``: a dictionary with the data to be used to compute the marker. This will be the corresponding element in the
synchon (Migrated from github.com) commented 2022-11-23 09:50:07 +00:00

The indentation for this is a bit weird when rendered.

The indentation for this is a bit weird when rendered.
@ -0,0 +124,4 @@
)
# Create a masker
masker = NiftiLabelsMasker(
synchon (Migrated from github.com) commented 2022-11-23 09:57:01 +00:00
masker = NiftiLabelsMasker(
    labels_img=t_parcellation,
    standardize=True,
    memory="nilearn_cache",
    verbose=5,
)
``` masker = NiftiLabelsMasker( labels_img=t_parcellation, standardize=True, memory="nilearn_cache", verbose=5, ) ```
@ -0,0 +213,4 @@
)
# Create a masker
masker = NiftiLabelsMasker(
synchon (Migrated from github.com) commented 2022-11-23 10:10:30 +00:00
masker = NiftiLabelsMasker(
    labels_img=t_parcellation,
    standardize=True,
    memory="nilearn_cache",
    verbose=5,
)
``` masker = NiftiLabelsMasker( labels_img=t_parcellation, standardize=True, memory="nilearn_cache", verbose=5, ) ```
@ -42,9 +42,21 @@ Data types
* - ``BOLD``
synchon (Migrated from github.com) commented 2022-11-23 10:12:39 +00:00

CONN toolbox?

`CONN toolbox`?
synchon (Migrated from github.com) commented 2022-11-23 10:12:47 +00:00

CONN toolbox?

`CONN toolbox`?
@ -0,0 +1,30 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 10:15:09 +00:00

DataGrabber

`DataGrabber`
synchon (Migrated from github.com) commented 2022-11-23 10:15:33 +00:00

dataset instead of database?

`dataset` instead of `database`?
@ -0,0 +8,4 @@
The junifer pipeline is the main execution path of junifer. It consists of five steps:
1. :ref:`Data Grabber <datagrabber>`: Interpret the dataset and provide a list of files.
2. :ref:`Data Reader <datareader>`: Read the files.
synchon (Migrated from github.com) commented 2022-11-23 10:15:42 +00:00

DataReader

`DataReader`
@ -0,0 +9,4 @@
1. :ref:`Data Grabber <datagrabber>`: Interpret the dataset and provide a list of files.
2. :ref:`Data Reader <datareader>`: Read the files.
3. :ref:`Pre-processing <preprocess>`: Prepare the images for marker computation.
synchon (Migrated from github.com) commented 2022-11-23 10:16:21 +00:00

Preprocess

`Preprocess`
@ -0,0 +10,4 @@
1. :ref:`Data Grabber <datagrabber>`: Interpret the dataset and provide a list of files.
2. :ref:`Data Reader <datareader>`: Read the files.
3. :ref:`Pre-processing <preprocess>`: Prepare the images for marker computation.
4. :ref:`Marker Computation <marker>`: Compute the marker.
synchon (Migrated from github.com) commented 2022-11-23 10:16:01 +00:00

Marker

`Marker`
@ -0,0 +1,204 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 10:19:47 +00:00
``preprocess``
``` ``preprocess`` ```
synchon (Migrated from github.com) commented 2022-11-23 10:21:49 +00:00

... datareader ...

`... datareader ...`
synchon (Migrated from github.com) commented 2022-11-23 10:24:34 +00:00

I believe the YAML syntax is false and when we load YAML, it should automatically convert it to False.

I believe the YAML syntax is `false` and when we load YAML, it should automatically convert it to `False`.
synchon (Migrated from github.com) commented 2022-11-23 10:24:42 +00:00

Same as above but for true and True.

Same as above but for `true` and `True`.
synchon (Migrated from github.com) commented 2022-11-23 10:25:35 +00:00

compute

`compute`
@ -0,0 +52,4 @@
it is possible to extend junifer with custom datareaders, and thus, it is also possible to configure this step.
Data Grabber
synchon (Migrated from github.com) commented 2022-11-23 10:21:19 +00:00

DataGrabber

`DataGrabber`
@ -0,0 +83,4 @@
kind: OasisVBMTesting
Data Reader
synchon (Migrated from github.com) commented 2022-11-23 10:21:29 +00:00

DataReader

`DataReader`
@ -0,0 +168,4 @@
storage:
kind: SQLiteFeatureStorage
uri: /data/junifer/example/oasis_vbm_testing.sqlite
synchon (Migrated from github.com) commented 2022-11-23 10:28:52 +00:00

In the storage types, we have .db extension for SQLite. Just to be consistent, maybe we use it here?

In the storage types, we have `.db` extension for SQLite. Just to be consistent, maybe we use it here?
@ -0,0 +1,89 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 10:33:27 +00:00

If you are in immediate need of any of these ...

`If you are in immediate need of any of these ...`
synchon (Migrated from github.com) commented 2022-11-23 10:33:48 +00:00

scheduler

`scheduler`
synchon (Migrated from github.com) commented 2022-11-23 10:34:15 +00:00
``HTCondor``
``` ``HTCondor`` ```
synchon (Migrated from github.com) commented 2022-11-23 10:34:49 +00:00

Python

`Python`
synchon (Migrated from github.com) commented 2022-11-23 10:36:24 +00:00

Please check my argument for having true.

Please check my argument for having ``true``.
@ -0,0 +1,60 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 10:30:02 +00:00

console instead of bash?

`console` instead of `bash`?
synchon (Migrated from github.com) commented 2022-11-23 10:31:41 +00:00

console instead of bash?

`console` instead of `bash`?
synchon (Migrated from github.com) commented 2022-11-23 10:32:02 +00:00

console instead of bash?

`console` instead of `bash`?
synchon (Migrated from github.com) commented 2022-11-23 10:32:16 +00:00

console instead of bash?

`console` instead of `bash`?
@ -0,0 +22,4 @@
* ``--help``: Show a help message.
* ``--verbose`` Set the verbosity level. Options are ``warning``, ``info``, ``debug``.
* ``--element``: The *element* to run. If not specified, all elements will be run. This parameter can be specified
synchon (Migrated from github.com) commented 2022-11-23 10:30:49 +00:00

The rendering for this has some indentation issue.

The rendering for this has some indentation issue.
@ -33,6 +33,30 @@ def register_datagrabber(klass: Type) -> Type:
return klass
synchon (Migrated from github.com) commented 2022-11-23 10:38:07 +00:00

datareader

`datareader`
fraimondo (Migrated from github.com) reviewed 2022-11-23 14:18:22 +00:00
@ -0,0 +45,4 @@
Importantly, nothing prevents that one image is part of two different elements.
For example, it is usually the case that the ``T1w`` image is not acquired for
each task, but once in the entire session. So in this case, the ``T1w`` image
for the element (``sub001``, ``ses1``, ``rest``) will be the same as the
fraimondo (Migrated from github.com) commented 2022-11-23 14:18:21 +00:00

not as strings. I like it like that.

not as strings. I like it like that.
fraimondo (Migrated from github.com) reviewed 2022-11-23 14:25:45 +00:00
@ -0,0 +1,30 @@
.. include:: ../links.inc
fraimondo (Migrated from github.com) commented 2022-11-23 14:25:44 +00:00

It can be either. Given that we are coupled with datalad, I would keep it as dataset.

It can be either. Given that we are coupled with datalad, I would keep it as dataset.
fraimondo (Migrated from github.com) reviewed 2022-11-23 14:26:07 +00:00
@ -0,0 +1,30 @@
.. include:: ../links.inc
fraimondo (Migrated from github.com) commented 2022-11-23 14:26:06 +00:00

I stil prefer to use the two words to describe the concept and not the Class name.

I stil prefer to use the two words to describe the concept and not the Class name.
fraimondo (Migrated from github.com) reviewed 2022-11-23 14:26:24 +00:00
@ -0,0 +8,4 @@
The junifer pipeline is the main execution path of junifer. It consists of five steps:
1. :ref:`Data Grabber <datagrabber>`: Interpret the dataset and provide a list of files.
2. :ref:`Data Reader <datareader>`: Read the files.
fraimondo (Migrated from github.com) commented 2022-11-23 14:26:23 +00:00

same as before

same as before
fraimondo (Migrated from github.com) reviewed 2022-11-23 14:26:32 +00:00
@ -0,0 +9,4 @@
1. :ref:`Data Grabber <datagrabber>`: Interpret the dataset and provide a list of files.
2. :ref:`Data Reader <datareader>`: Read the files.
3. :ref:`Pre-processing <preprocess>`: Prepare the images for marker computation.
fraimondo (Migrated from github.com) commented 2022-11-23 14:26:31 +00:00

same

same
fraimondo (Migrated from github.com) reviewed 2022-11-23 14:26:43 +00:00
@ -0,0 +10,4 @@
1. :ref:`Data Grabber <datagrabber>`: Interpret the dataset and provide a list of files.
2. :ref:`Data Reader <datareader>`: Read the files.
3. :ref:`Pre-processing <preprocess>`: Prepare the images for marker computation.
4. :ref:`Marker Computation <marker>`: Compute the marker.
fraimondo (Migrated from github.com) commented 2022-11-23 14:26:42 +00:00

same

same
fraimondo (Migrated from github.com) reviewed 2022-11-23 14:27:10 +00:00
@ -0,0 +1,204 @@
.. include:: ../links.inc
fraimondo (Migrated from github.com) commented 2022-11-23 14:27:09 +00:00

was not sure about this.

was not sure about this.
fraimondo (Migrated from github.com) reviewed 2022-11-23 14:27:53 +00:00
@ -0,0 +52,4 @@
it is possible to extend junifer with custom datareaders, and thus, it is also possible to configure this step.
Data Grabber
fraimondo (Migrated from github.com) commented 2022-11-23 14:27:52 +00:00

will keep it as concepts and not class names

will keep it as concepts and not class names
fraimondo (Migrated from github.com) reviewed 2022-11-23 14:29:00 +00:00
@ -0,0 +168,4 @@
storage:
kind: SQLiteFeatureStorage
uri: /data/junifer/example/oasis_vbm_testing.sqlite
fraimondo (Migrated from github.com) commented 2022-11-23 14:28:59 +00:00

it does not matter, the user sets the name and extension. It should be sqlite.

it does not matter, the user sets the name and extension. It should be sqlite.
synchon (Migrated from github.com) reviewed 2022-11-23 14:40:54 +00:00
@ -0,0 +168,4 @@
storage:
kind: SQLiteFeatureStorage
uri: /data/junifer/example/oasis_vbm_testing.sqlite
synchon (Migrated from github.com) commented 2022-11-23 14:40:54 +00:00

It indeed does not matter, my argument is just for the sake of consistency. I can imagine it be confusing for users who are not familiar with SQLite in that detail.

It indeed does not matter, my argument is just for the sake of consistency. I can imagine it be confusing for users who are not familiar with SQLite in that detail.
synchon (Migrated from github.com) reviewed 2022-11-23 14:41:14 +00:00
@ -0,0 +1,204 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 14:41:13 +00:00

I think it does, can you please check it?

I think it does, can you please check it?
synchon (Migrated from github.com) reviewed 2022-11-23 14:43:14 +00:00
@ -0,0 +1,30 @@
.. include:: ../links.inc
synchon (Migrated from github.com) commented 2022-11-23 14:43:14 +00:00

In the Understanding section, we have DataGrabber for the concept as well. Again my reasoning is that if we keep it as one name throughout, users are not confused. And also, one can mentally link better to the name of the step being the class category's name.

In the Understanding section, we have `DataGrabber` for the concept as well. Again my reasoning is that if we keep it as one name throughout, users are not confused. And also, one can mentally link better to the name of the step being the class category's name.
synchon (Migrated from github.com) reviewed 2022-11-23 14:43:57 +00:00
@ -0,0 +45,4 @@
Importantly, nothing prevents that one image is part of two different elements.
For example, it is usually the case that the ``T1w`` image is not acquired for
each task, but once in the entire session. So in this case, the ``T1w`` image
for the element (``sub001``, ``ses1``, ``rest``) will be the same as the
synchon (Migrated from github.com) commented 2022-11-23 14:43:56 +00:00

With strings, you directly link it to the code which IMO is simpler.

With strings, you directly link it to the code which IMO is simpler.
synchon (Migrated from github.com) reviewed 2022-11-23 14:45:57 +00:00
@ -0,0 +45,4 @@
Importantly, nothing prevents that one image is part of two different elements.
For example, it is usually the case that the ``T1w`` image is not acquired for
each task, but once in the entire session. So in this case, the ``T1w`` image
for the element (``sub001``, ``ses1``, ``rest``) will be the same as the
synchon (Migrated from github.com) commented 2022-11-23 14:45:56 +00:00

Also, the rendering is not very pretty.

Also, the rendering is not very pretty.
synchon (Migrated from github.com) reviewed 2022-11-23 14:46:47 +00:00
@ -0,0 +45,4 @@
Importantly, nothing prevents that one image is part of two different elements.
For example, it is usually the case that the ``T1w`` image is not acquired for
each task, but once in the entire session. So in this case, the ``T1w`` image
for the element (``sub001``, ``ses1``, ``rest``) will be the same as the
synchon (Migrated from github.com) commented 2022-11-23 14:46:47 +00:00

What I actually meant was putting the whole thing as monospace.

What I actually meant was putting the whole thing as monospace.
synchon (Migrated from github.com) requested changes 2022-11-23 15:41:34 +00:00
@ -0,0 +192,4 @@
datadir: /data/project/test/data
Optional: Using datalad
synchon (Migrated from github.com) commented 2022-11-23 15:39:05 +00:00

..., but also ...

`..., but also ...`
@ -62,7 +62,7 @@ class MarkerCollection:
----------
synchon (Migrated from github.com) commented 2022-11-23 15:40:25 +00:00

Data Grabber

`Data Grabber`
synchon (Migrated from github.com) approved these changes 2022-11-23 16:21:41 +00:00
synchon (Migrated from github.com) left a comment

🚀

🚀
synchon commented 2022-11-23 16:21:55 +00:00 (Migrated from github.com)

Will merge after CI passes.

Will merge after CI passes.
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
juaml/junifer!124
No description provided.