clinicaio.subject.Subject#

class clinicaio.subject.Subject#
parent_dataset: clinicaio.dataset.BIDSDataset#
id: clinicaio.types.SubjectId#
info: SubjectInfo#

Non-empty only if enabled when reading the dataset with BIDSDataset.populate_from_dir().

Methods#

add_session(→ clinicaio.session.Session)

Adds a new session to this subject.

all_sessions(→ Iterable[clinicaio.session.Session])

Retrieves all the sessions that this subject is part of.

sessions_count(→ int)

Retrieves the number of sessions that this subject is part of.

session_by_id(→ Optional[clinicaio.session.Session])

Get this subject's session with the given ID. It is a programmer error to call this method

all_images(→ Iterable[clinicaio.image.Image])

Retrieves all the images that are part of this subject's sessions.

populate_sessions_info_from_df(→ None)

Populates the sessions information from the given dataframe.