bidsschematools.types.context¶
BIDS validation context dataclasses
The classes in this module may be used to populate the context for BIDS validation.
This module has been auto-generated from the BIDS schema version 1.2.0-dev.
Classes
- class bidsschematools.types.context.Aslcontext(path: str, n_rows: int, volume_type: Sequence[str] | None = None)¶
Bases:
objectASL context file
- class bidsschematools.types.context.Associations(events: Events | None = None, aslcontext: Aslcontext | None = None, m0scan: M0scan | None = None, magnitude: Magnitude | None = None, magnitude1: Magnitude1 | None = None, bval: Bval | None = None, bvec: Bvec | None = None, channels: Channels | None = None, electrodes: Electrodes | None = None, coordsystem: Coordsystem | None = None)¶
Bases:
objectAssociated files, indexed by suffix, selected according to the inheritance principle
- events¶
Events file
- Type:
protocols.Events | None
- aslcontext¶
ASL context file
- Type:
protocols.Aslcontext | None
- m0scan¶
M0 scan file
- Type:
protocols.M0scan | None
- magnitude¶
Magnitude image file
- Type:
protocols.Magnitude | None
- magnitude1¶
Magnitude1 image file
- Type:
protocols.Magnitude1 | None
- bval¶
B value file
- Type:
protocols.Bval | None
- bvec¶
B vector file
- Type:
protocols.Bvec | None
- channels¶
Channels file
- Type:
protocols.Channels | None
- electrodes¶
Electrodes file
- Type:
protocols.Electrodes | None
- coordsystem¶
Coordinate system file
- Type:
protocols.Coordsystem | None
- class bidsschematools.types.context.Bval(path: str, n_cols: int, n_rows: int, values: Sequence[float])¶
Bases:
objectB value file
- class bidsschematools.types.context.Bvec(path: str, n_cols: int, n_rows: int)¶
Bases:
objectB vector file
- class bidsschematools.types.context.Channels(path: str, type: Sequence[str] | None = None, short_channel: Sequence[str] | None = None, sampling_frequency: Sequence[str] | None = None)¶
Bases:
objectChannels file
- class bidsschematools.types.context.Context(schema: Mapping[str, Any], dataset: Dataset, path: str, size: int, sidecar: Mapping[str, Any], associations: Associations, subject: Subject | None = None, entities: Mapping[str, Any] | None = None, datatype: str | None = None, suffix: str | None = None, extension: str | None = None, modality: str | None = None, columns: Mapping[str, Any] | None = None, json: Mapping[str, Any] | None = None, gzip: Gzip | None = None, nifti_header: NiftiHeader | None = None, ome: Ome | None = None, tiff: Tiff | None = None)¶
Bases:
object- dataset¶
Properties and contents of the entire dataset
- Type:
- associations¶
Associated files, indexed by suffix, selected according to the inheritance principle
- Type:
- subject¶
Properties and contents of the current subject
- Type:
protocols.Subject | None
- columns¶
TSV columns, indexed by column header, values are arrays with column contents
- Type:
Mapping[str, Any] | None
- gzip¶
Parsed contents of gzip header
- Type:
protocols.Gzip | None
- nifti_header¶
Parsed contents of NIfTI header referenced elsewhere in schema.
- Type:
protocols.NiftiHeader | None
- ome¶
Parsed contents of OME-XML header, which may be found in OME-TIFF or OME-ZARR files
- Type:
protocols.Ome | None
- tiff¶
TIFF file format metadata
- Type:
protocols.Tiff | None
- class bidsschematools.types.context.Dataset(dataset_description: Mapping[str, Any], tree: Mapping[str, Any], ignored: Sequence[str], datatypes: Sequence[str], modalities: Sequence[str], subjects: Subjects)¶
Bases:
objectProperties and contents of the entire dataset
- subjects¶
Collections of subjects in dataset
- Type:
- class bidsschematools.types.context.DimInfo(freq: int, phase: int, slice: int)¶
Bases:
objectMetadata about dimensions data.
- class bidsschematools.types.context.Events(path: str, onset: Sequence[str] | None = None)¶
Bases:
objectEvents file
- class bidsschematools.types.context.Gzip(timestamp: float, filename: str | None = None, comment: str | None = None)¶
Bases:
objectParsed contents of gzip header
- class bidsschematools.types.context.NiftiHeader(dim_info: DimInfo, dim: Sequence[int], pixdim: Sequence[float], shape: Sequence[int], voxel_sizes: Sequence[float], xyzt_units: XyztUnits, qform_code: int, sform_code: int, axis_codes: Sequence[Literal['R', 'L', 'A', 'P', 'S', 'I']], mrs: Mapping[str, Any] | None = None)¶
Bases:
objectParsed contents of NIfTI header referenced elsewhere in schema.
- dim_info¶
Metadata about dimensions data.
- Type:
- xyzt_units¶
Units of pixdim[1..4]
- Type:
- axis_codes¶
Orientation labels indicating primary direction of data axes defined with respect to the object of interest.
- Type:
Sequence[Literal[‘R’, ‘L’, ‘A’, ‘P’, ‘S’, ‘I’]]
- class bidsschematools.types.context.Ome(PhysicalSizeX: float | None = None, PhysicalSizeY: float | None = None, PhysicalSizeZ: float | None = None, PhysicalSizeXUnit: str | None = None, PhysicalSizeYUnit: str | None = None, PhysicalSizeZUnit: str | None = None)¶
Bases:
objectParsed contents of OME-XML header, which may be found in OME-TIFF or OME-ZARR files
- class bidsschematools.types.context.Sessions(ses_dirs: Sequence[str], session_id: Sequence[str] | None = None)¶
Bases:
objectCollections of sessions in subject
- class bidsschematools.types.context.Subject(sessions: Sessions)¶
Bases:
objectProperties and contents of the current subject
- sessions¶
Collections of sessions in subject
- Type:
- class bidsschematools.types.context.Subjects(sub_dirs: Sequence[str], participant_id: Sequence[str] | None = None)¶
Bases:
objectCollections of subjects in dataset
- class bidsschematools.types.context.XyztUnits(xyz: Literal['unknown', 'meter', 'mm', 'um'], t: Literal['unknown', 'sec', 'msec', 'usec'])¶
Bases:
objectUnits of pixdim[1..4]
- xyz¶
String representing the unit of voxel spacing.
- Type:
Literal[‘unknown’, ‘meter’, ‘mm’, ‘um’]
- t¶
String representing the unit of inter-volume intervals.
- Type:
Literal[‘unknown’, ‘sec’, ‘msec’, ‘usec’]