Skip to content

Add compression to Gunzip interface #3471

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

Closed
ghisvail opened this issue May 13, 2022 · 1 comment · Fixed by #3472
Closed

Add compression to Gunzip interface #3471

ghisvail opened this issue May 13, 2022 · 1 comment · Fixed by #3472

Comments

@ghisvail
Copy link
Contributor

ghisvail commented May 13, 2022

In Clinica, we use the Gunzip interface quite a bit, especially for SPM-based pipelines since SPM does not handle compressed NIfTI files. Afaik, this interface only supports decompression.

Would there be an intereset to enhance this interface to also support compression, so that results from SPM can be persisted in compressed form? Unless there is an alternative option I missed.

@ghisvail
Copy link
Contributor Author

ghisvail commented May 13, 2022

I'd imagine something like:

from nipype.algorithms.misc import Gunzip

compress = Gunzip(compress=True)  # False by default for compatibility.

with in_file provided in raw nifti format and out_file as compressed nifti.

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 a pull request may close this issue.

1 participant