references
tit.reporting.reportlets.references ¶
References reportlet for TI-Toolbox reports.
This module provides the default citations and references used across TI-Toolbox reports. References use stable internal IDs while rendering human-readable citation tags in reports and adjacent citation artifacts.
TIToolboxReferencesReportlet ¶
TIToolboxReferencesReportlet(title: str | None = None, include_defaults: bool = True, pipeline_components: list[str] | None = None, show_empty_warning: bool = False)
Bases: ReferencesReportlet
Specialized references reportlet with TI-Toolbox default citations.
Automatically includes relevant citations based on the pipeline components used.
Initialize the TI-Toolbox references reportlet.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str | None
|
Section title |
None
|
include_defaults
|
bool
|
Whether to include default TI-Toolbox refs |
True
|
pipeline_components
|
list[str] | None
|
List of components used (to filter refs) |
None
|
show_empty_warning
|
bool
|
Render a developer-facing empty-ref warning |
False
|
Source code in tit/reporting/reportlets/references.py
add_default_reference ¶
Add a default reference by stable key, visible label, or legacy alias.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
The reference key (e.g., 'grossman2017_ti' or 'FreeSurfer') |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if reference was found and added, False otherwise |
Source code in tit/reporting/reportlets/references.py
get_default_references ¶
get_reference_by_key ¶
Get a specific reference by stable key, visible label, or legacy alias.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
The reference key or alias |
required |
Returns:
| Type | Description |
|---|---|
dict[str, str] | None
|
Reference dictionary or None if not found |