KitwareMedical / KitwareMedical/UTM

include header when writing nifti from R

Open Beginner friendly
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

https://github.com/KitwareMedical/UTM/blob/a17e172cd4c9f3805bafb12201fa111e24e58245/Scripts/Analysis/analyse.images.cor.R#L157-L165

The spacing information from the original feature images that were analyzed is not passed into the writeNifti here^^
So we should use the template argument of writeNifti; see documentation.
Pass to the template argument the result of applying readNifti to one of the feature images that were used for analysis.

This way when our analysis results visualizer looks at nifti images that were written here, it knows how to display them in relation to the atlas.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Scripts/Analysis/analyse.images.cor.R at lines 157-165 and read the linked RNifti writeNifti documentation. Trace the feature image inputs and use one with readNifti as the template for the result-writing call. Done means generated NIfTI results retain the source spacing so the visualizer displays them relative to the atlas.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.