9.2.10. Testing#

Testing DataGrabbers.

class junifer.testing.datagrabbers.OasisVBMTestingDataGrabber#

DataGrabber for Oasis VBM testing data.

Wrapper for nilearn.datasets.fetch_oasis_vbm().

get_element_keys()#

Get element keys.

Returns:
list of str

The element keys.

get_elements()#

Get elements.

Returns:
list of str

List of elements that can be grabbed.

get_item(subject)#

Implement indexing support.

Parameters:
subjectstr

The subject to retrieve.

Returns:
dict

The data along with the metadata.

class junifer.testing.datagrabbers.PartlyCloudyTestingDataGrabber(reduce_confounds=True, age_group='both')#

DataGrabber for Partly Cloudy dataset.

Wrapper for nilearn.datasets.fetch_development_fmri().

Parameters:
reduce_confoundsbool, optional

If True, the returned confounds only include 6 motion parameters, mean framewise displacement, signal from white matter, csf, and 6 anatomical compcor parameters. This selection only serves the purpose of having realistic examples. Depending on your research question, other confounds might be more appropriate. If False, returns all fMRIPrep confounds (default True).

age_group{“adult”, “child”, “both”}, optional

Which age group to fetch:

  • adult : fetch adults only (n=33, ages 18-39)

  • child : fetch children only (n=122, ages 3-12)

  • both : fetch full sample (n=155)

(default “both”)

Initialize the class.

get_element_keys()#

Get element keys.

Returns:
list of str

The element keys.

get_elements()#

Get elements.

Returns:
list of str

List of elements that can be grabbed.

get_item(subject)#

Implement indexing support.

Parameters:
subjectstr

The subject to retrieve.

Returns:
dict

The data along with the metadata.

class junifer.testing.datagrabbers.SPMAuditoryTestingDataGrabber#

DataGrabber for SPM Auditory dataset.

Wrapper for nilearn.datasets.fetch_spm_auditory().

get_element_keys()#

Get element keys.

Returns:
list of str

The element keys.

get_elements()#

Get elements.

Returns:
list of str

List of elements that can be grabbed.

get_item(subject)#

Implement indexing support.

Parameters:
subjectstr

The subject to retrieve.

Returns:
dict

The data along with the metadata.