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

Support for adding history of commands to header #1119

Open
eurunuela opened this issue Jun 21, 2022 · 3 comments
Open

Support for adding history of commands to header #1119

eurunuela opened this issue Jun 21, 2022 · 3 comments

Comments

@eurunuela
Copy link

I use AFNI's 3dNotes -h "{command}" {filename} command a lot but it requires the use of subprocess.run() to run it from Python.

I believe nibabel should provide this feature in a Pythonic way, similar to the way other parameters of the header can be edited.

@effigies
Copy link
Member

I would need to check if we support writing BRIK/HEAD. My memory is that it's read only, but maybe not.

If this also works in the AFNI extension to NIfTI-1, then we would need to add support for that extension. Is there a spec?

I'm any case, would you be interested in adding this feature?

@eurunuela
Copy link
Author

Thank you Chris.

I would need to check if we support writing BRIK/HEAD. My memory is that it's read only, but maybe not.

Please let me know.

If this also works in the AFNI extension to NIfTI-1, then we would need to add support for that extension. Is there a spec?

I'm not sure I understand what you mean by the AFNI extension to NIfTI-1.

I'm any case, would you be interested in adding this feature?

I would be happy to contribute, but I will need help from core devs. This is the first time I fork nibabel and look at the project.

I will try to familiarize with the I/O functions first and will open a PR if (when) I make any progress.

@effigies
Copy link
Member

I'm not sure I understand what you mean by the AFNI extension to NIfTI-1.

There are header extensions to NIfTI, and AFNI has one that includes the additional metadata from BRIK/HEAD that the AFNI team felt were essential but missing.

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

No branches or pull requests

2 participants