Skip to content

Question: Why is dcm2niix saving to /tmp #481

@mirestrepo

Description

@mirestrepo

Summary

In our logs I can see that dcm2niix is saving to a random folder in /tmp. For instance I get messages like this one:

INFO: [Node] Running "convert" ("nipype.interfaces.dcm2nii.Dcm2niix"), a CommandLine Interface with command:
dcm2niix -b y -z y -x n -t n -m n -f func -o . -s n -v n /tmp/dcm2niix0odmo4o6/convert

If we isolate our containers from host, i.e, --contain flag in singularity, then the container /tmp may run out of memory to store all the nifti files. While we have ways to work around this, it took a while to figure out what was going on. Our nii.gz where just showing missing blocks. I think it is unexpected that heudiconv would be using a hardcoded /tmp to temporarily store conversion. Is there a way to change the path or make that assumption more clear to the user?

Platform details:

Choose one:

  • Local environment
  • Container

This is a custom container
https://hub.docker.com/repository/docker/brownbnc/xnat-tools
All versions contain the same version of heudiconv and dcm2nii
While we create a docker container we use it mostly as a singularity container from our HPC

  • Heudiconv version:
  • heudiconv —version 0.6.0
  • dcm2niiX version v1.0.20190902

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions