Coder Social home page Coder Social logo

Comments (10)

mharms avatar mharms commented on August 25, 2024

Thanks for reporting this. Is ${DistortionCorrectionFieldOutput} the only case at the end of the script in this situation -- i.e., in which the imcp is changing the name of the file, and the name of the desired NIFTI (without extension) conflicts with an existing directory name?

from hcppipelines.

studentism avatar studentism commented on August 25, 2024

Yes, sir, that's the only conflict.

I added ".nii.gz" to get things running again for a deadline, but I can submit a pull request with a more elegant fix later this week if that would be helpful.

from hcppipelines.

glasserm avatar glasserm commented on August 25, 2024

Well, Tim and I aren't big fans of the no extension FSL behavior anyway. It is perfectly fine to have Folders and files with the same name but different extensions...

from hcppipelines.

coalsont avatar coalsont commented on August 25, 2024

I would be inclined to use a convention of always specifying the file extension, even to FSL tools where it may not be necessary. It may also be a good idea for the pipelines setup script to set FSLOUTPUTTYPE to avoid possible surprises from oddball setups.

from hcppipelines.

mharms avatar mharms commented on August 25, 2024

I'm not a fan of that, as (1) it clutters up the code a lot, and (2) if someone wanted to use FSLOUTPUTTYPE to save as .nii rather than .nii.gz, why should we stop them?

from hcppipelines.

coalsont avatar coalsont commented on August 25, 2024

If someone changes the fsl output type, every wb_command using an fsl volume output will immediately break. Trying to support this in the HCP scripts would be a nightmare.

Specifying the real filename, and not just a part of it, is more obvious to me, isn't really much "clutter" at all, and apparently would have avoided this error.

from hcppipelines.

coalsont avatar coalsont commented on August 25, 2024

In case you aren't aware: there are only two options for FSL output type that workbench can currently read at all, .nii.gz and .nii - workbench does not support analyze or nifti pair (and there does not appear to be any good reason to add support). Workbench requires that you specify the whole filename (which includes the extension), so when the scripts say .nii.gz, but FSL generates .nii, you will get "file not found". Trying to support uncompressed .nii in the pipelines would not only massively waste disk space, but will further clutter the scripts by requiring something like ".$volext" on the end of every volume file that comes from fsl when used with wb_command, instead of ".nii.gz".

from hcppipelines.

glasserm avatar glasserm commented on August 25, 2024

I would be happy with .nii.gz only for the HCP Pipelines.

from hcppipelines.

coalsont avatar coalsont commented on August 25, 2024

The point is more that the pipelines currently only support .nii.gz for any internal volume files, so it would be good to make sure FSL doesn't produce something else during the pipelines.

I have some other edits in progress on the setup script in relation to something else, so I'll add this.

from hcppipelines.

mharms avatar mharms commented on August 25, 2024

Resolved with 8e53e15

from hcppipelines.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.