siibra.features.feature
Handles multimodal data features and related queries.
Attributes
Exceptions
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
Classes
A compound aggregating multiple features of the same type, forming its |
|
Base class for structures which allow compounding. |
|
Base class for anatomically anchored data features. |
Module Contents
- exception siibra.features.feature.EncodeLiveQueryIdException
Common base class for all non-exit exceptions.
- exception siibra.features.feature.NotFoundException
Common base class for all non-exit exceptions.
- exception siibra.features.feature.ParseCompoundFeatureIdException
Common base class for all non-exit exceptions.
- exception siibra.features.feature.ParseLiveQueryIdException
Common base class for all non-exit exceptions.
- class siibra.features.feature.CompoundFeature(elements: List[Feature], queryconcept: siibra.core.region.Region | siibra.core.parcellation.Parcellation | siibra.core.space.Space)
A compound aggregating multiple features of the same type, forming its elements. The anatomical anchors and data of the features is merged. Features need to subclass “Compoundable” to allow aggregation into a compound feature.
- __dir__()
- __getattr__(attr: str) Any
Expose compounding attributes explicitly.
- __getitem__(index: Any)
Get the nth element in the compound.
- __iter__() Iterator[Feature]
Iterate over subfeatures
- __len__()
Number of subfeatures making the CompoundFeature
- get_element(index: Any)
Get the element with its unique index in the compound.
- plot(*args, **kwargs)
Feature subclasses override this with their customized plot methods.
- category
- property data
- property elements
Features that make up the compound feature.
- property feature_type: Type
Feature type of the elements forming the CompoundFeature.
- property id: str
- property indexing_attributes: Tuple[str]
The attributes determining the index of this CompoundFeature’s elements.
- property indices
Unique indices to features making up the CompoundFeature.
- property name: str
Returns a short human-readable name of this feature.
- class siibra.features.feature.Compoundable
Base class for structures which allow compounding. Determines the necessary grouping and compounding attributes.
- classmethod __init_subclass__(**kwargs)
- property filter_attributes: Dict[str, Any]
Attributes that help distinguish or combine features of the same type among others.
- class siibra.features.feature.Feature(modality: str, description: str, anchor: siibra.features.anchor.AnatomicalAnchor, datasets: List[TypeDataset] = [], id: str = None, prerelease: bool = False)
Base class for anatomically anchored data features.
- classmethod __init_subclass__(configuration_folder=None, category=None, do_not_index=False, **kwargs)
- matches(concept: siibra.core.structure.BrainStructure | siibra.core.space.Space) bool
Match the features anatomical anchor against the given query concept. Record the most recently matched concept for inspection by the caller.
- abstract plot(*args, **kwargs)
Feature subclasses override this with their customized plot methods.
- to_zip(filelike: str | BinaryIO)
Export as a zip archive.
- Parameters:
filelike (str or path) – Filelike to write the zip file. User is responsible to ensure the correct extension (.zip) is set.
- property LICENSE: str
- property anchor
- property authors
- category: str = None
- datasets = []
- property description
Allows subclasses to overwrite the description with a function call.
- property id
- property last_match_description
The description of the last anchor comparison to a BrainStructure.
- property last_match_result
The result of the last anchor comparison to a BrainStructure.
- property modality
- property name
Returns a short human-readable name of this feature.
- property urls: List[str]
The list of URLs (including DOIs) associated with this feature.
- siibra.features.feature.TypeDataset