Skip to content

TemplateFlow spaces as siibra objects - #716

Draft
AhmetNSimsek wants to merge 4 commits into
mainfrom
feat_templateflow
Draft

TemplateFlow spaces as siibra objects#716
AhmetNSimsek wants to merge 4 commits into
mainfrom
feat_templateflow

Conversation

@AhmetNSimsek

@AhmetNSimsek AhmetNSimsek commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator
  • spaces (volumes)
  • spaces (surfaces)
  • labelled maps
  • statistical maps

Note: some spaces are divided in cohorts which seem to be distinct enough that they could be represent with their own space configuration. This is what I chose for now since variant has to be used for other things such as image modality, resolution, and other descriptive attributes.

Suggested typical workflow example

import siibra
from nilearn import plotting

siibra.extend_configuration(siibra.create_templateflow_configs())
siibra.spaces.dataframe

MNI152NLin6Asym = siibra.spaces.get(
    "MNI ICBM 152 non-linear 6th Generation Asymmetric"
)
MNI152NLin6Asym

print(MNI152NLin6Asym.name)
print(MNI152NLin6Asym.publications)
print(MNI152NLin6Asym.description)

for template in MNI152NLin6Asym.volumes:
    print(template.variant)

tmp_img = MNI152NLin6Asym.get_template("T1 weighted (res-01)").fetch()
plotting.view_img(tmp_img, bg_img=None, symmetric_cmap=False, cmap="gray")

List all template flow spaces

import siibra
siibra.extend_configuration(siibra.create_templateflow_configs())
for s in siibra.spaces:
    if s.name.startswith("[TemplateFlow]"):
        print(s)

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 23.93162% with 89 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.43%. Comparing base (92f81cf) to head (b34f6b6).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
siibra/configuration/templateflow.py 22.60% 89 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #716      +/-   ##
==========================================
- Coverage   46.78%   46.43%   -0.35%     
==========================================
  Files          73       74       +1     
  Lines        7731     7847     +116     
==========================================
+ Hits         3617     3644      +27     
- Misses       4114     4203      +89     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AhmetNSimsek
AhmetNSimsek force-pushed the feat_templateflow branch 4 times, most recently from d17ec6f to d1b4cd1 Compare August 5, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant