Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CiftiPy - Better python support for cifti files #26

Open
5 of 17 tasks
pvandyken opened this issue Jul 18, 2023 · 0 comments
Open
5 of 17 tasks

CiftiPy - Better python support for cifti files #26

pvandyken opened this issue Jul 18, 2023 · 0 comments

Comments

@pvandyken
Copy link

pvandyken commented Jul 18, 2023

Title

CiftiPy

Short description and the goals for the OHBM BrainHack

cifti is a neuroimaging file format that flexibly stores vertex and voxel data in the same file. It's the format of choice in the HCP processing pipelines for storing surface maps, but can also be used for cortical parcellations, brain segmentations, structural and functional connectomes, and many other applications.

Currently, there isn't an easy way to handle this format in python. Nibabel has support, but the interface is unintuitive and bulky.

CiftiPy will be a wrapper around nibabel offering a convenient, numpy-based interface for accessing and manipulating cifti files. It will offer convenient methods for indexing cifti files by data-type, structure, and hemisphere, be easily and transparently viewed in an REPL (like pandas or xarray), and offer methods for common tasks.

Goals

No code has been written yet, but we have a fairly clear plan for the API. The goal will be to implement, test, and document the core interfaces.

Long term

We are prioritizing robustness over number of features, so we're purposefully trying to keep the scope as small as possible. If we get a good cifti interface built, however, it could in principle be extended to support other neuroimaging file types (gifti, nifti), resulting in a generalized, user-friendly nibabel wrapper.

Link to the Project

https://github.com/pvandyken/ciftipy

Image for the OHBM brainhack website

No response

Project lead

Peter Van Dyken - pvandyken#9542
Mohamed Yousif - dunnom8#1502
Mauricio Cespedes Tenorio - mau_cespedes99#7386

Main Hub

Montreal

Other Hub covered by the leaders

  • Montreal
  • Asia / Pacific
  • Europe / Middle East / Africa
  • Americas

Skills

(Any and none of these skills are welcome! This is more a list of what tech we'll use)

  • Python
  • git
  • Documentation (Sphinx, readthedocs, markdown)
  • Cifti files (read the spec here
  • nibabel
  • Numpy
  • Python testing (pytest, hypothesis)
  • Github actions

Recommended tutorials for new contributors

Good first issues

No response

Twitter summary

ciftipy makes it easy to view, index, and manipulate cifti files with python

Short name for the Discord chat channel (~15 chars)

ciftipy

Please read and follow the OHBM Code of Conduct

  • I agree to follow the OHBM Code of Conduct during the hackathon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants