9.2.9. Testing#

Provide testing datagrabbers.

class junifer.testing.datagrabbers.OasisVBMTestingDatagrabber#

Data Grabber for Oasis VBM testing data.

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')#

Data Grabber 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#

Data Grabber 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.