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

new stable release (v1.0.20241208) #896

Merged
merged 105 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
029275f
issue 769: relax the check for bvec components > 1 a bit.
Dec 22, 2023
ac8a646
Merge branch 'development' of https://github.com/rordenlab/dcm2niix i…
Feb 17, 2024
987fdfb
GE UHP/7T Diffusion SliceTiming (#796)
Feb 22, 2024
66f6427
Merge pull request #798 from mr-jaemin/development
mr-jaemin Feb 22, 2024
79bcd4c
DCM2NIIXFSLIB changes
yhuang43 Feb 28, 2024
bca228c
Merge pull request #800 from yhuang43/development
neurolabusc Feb 28, 2024
cb60b43
Philips renaming (https://github.com/rordenlab/dcm2niix/issues/795)
neurolabusc Mar 1, 2024
e7aaa1b
Merge branch 'development' of https://github.com/rordenlab/dcm2niix i…
Mar 2, 2024
c975d1f
PET BIDS (https://github.com/rordenlab/dcm2niix/issues/802)
neurolabusc Mar 11, 2024
cc7d7f3
codespell
neurolabusc Mar 11, 2024
f8baa94
more PET support (https://github.com/rordenlab/dcm2niix/issues/802)
neurolabusc Mar 11, 2024
e5256f8
GE UHP/7T Diffusion SliceTiming Update (#796)
mr-jaemin Mar 13, 2024
8becfeb
GE UHP/7T Diffusion SliceTiming Update2
mr-jaemin Mar 14, 2024
484de5b
Renambed ASL fields to match new BIDS specification (https://bids-spe…
neurolabusc Mar 14, 2024
11b64e3
Merge branch 'rordenlab:development' into development
mr-jaemin Mar 14, 2024
856d032
Merge pull request #805 from mr-jaemin/development
mr-jaemin Mar 14, 2024
1858e1c
Restore PR modifications (https://github.com/rordenlab/dcm2niix/commi…
neurolabusc Mar 15, 2024
04d6d49
ASL BIDS suggestions from @jan-petr
neurolabusc Mar 15, 2024
d635970
Another suggestion from @jan-petr
neurolabusc Mar 15, 2024
1b4505e
Experimental start for reproin support
neurolabusc Mar 21, 2024
550b9e2
Unlatch 0400,0561 based on nesting depth (https://github.com/rordenla…
neurolabusc Mar 25, 2024
b256504
GE AcquisitionDuration (#808)
Mar 28, 2024
608f636
GE AcquisitionDuration minor (#808)
Mar 29, 2024
ae1cb29
Merge pull request #810 from mr-jaemin/development
neurolabusc Mar 29, 2024
eba090b
Add DeidentificationMethod and DeidentificationMethodCodeSequence to …
CGSchwarzMayo Apr 17, 2024
d17927e
Merge branch 'development' of https://github.com/rordenlab/dcm2niix i…
Apr 18, 2024
70abd5e
Disable XA partial vol detection for single slice files (rordenlab#742)
Apr 18, 2024
d53a237
Fix CSA n_tags check (#633)
Apr 20, 2024
dd56f9a
Merge branch 'rordenlab:master' into DeIdentificationMethod_json
CGSchwarzMayo Apr 25, 2024
ed3f8a5
More robust detection of whether tags are inside DeidentificationMeth…
CGSchwarzMayo Apr 25, 2024
f9ad69e
Merge pull request #814 from captainnova/development
neurolabusc May 23, 2024
772d8ad
Update issue templates
neurolabusc Mar 19, 2023
70007b6
Console script return status code (https://github.com/rordenlab/dcm2n…
tomhampshire Apr 22, 2024
08aeeef
add MAGNITUDE to ImageType for GE data, necessary for heudiconv logic
bpinsard May 31, 2024
a7ed66c
CI: PyPI release
casperdcl Jul 3, 2024
299aac0
Merge pull request #824 from tomhampshire/main-exit-code
neurolabusc Jul 24, 2024
6978699
Merge pull request #826 from UNFmontreal/fix/ge_magnitude
neurolabusc Jul 24, 2024
e73095c
Merge pull request #833 from casperdcl/pypi-release
neurolabusc Jul 24, 2024
cd7e481
GE slice timing (https://github.com/rordenlab/dcm2niix/issues/838)
neurolabusc Jul 24, 2024
0001daa
UIH DWI (https://github.com/rordenlab/dcm2niix/issues/836)
neurolabusc Jul 24, 2024
25ce4d0
myNoRois option to ignore ROIs (https://github.com/rordenlab/dcm2niix…
neurolabusc Jul 25, 2024
720ba60
minBvalThreshold (https://github.com/rordenlab/dcm2niix/issues/827)
neurolabusc Jul 25, 2024
1eab724
Siemens instance number re-use (https://github.com/rordenlab/dcm2niix…
neurolabusc Jul 25, 2024
e039cb3
Specific for Siemens
neurolabusc Jul 25, 2024
446419e
TablePosition (https://github.com/rordenlab/dcm2niix/issues/726)
neurolabusc Jul 25, 2024
eb1eb11
GE TablePosition (https://github.com/rordenlab/dcm2niix/issues/726)
neurolabusc Jul 26, 2024
041310e
codespell:disable does not seem to work
neurolabusc Jul 26, 2024
7d62584
Bruker kludge (https://github.com/rordenlab/dcm2niix/issues/839)
neurolabusc Jul 30, 2024
fe4021d
Fix corrupted raw nrrd file output on Windows
lassoan Jul 31, 2024
15dacce
Merge pull request #843 from lassoan/patch-2
neurolabusc Aug 4, 2024
6a01168
TablePosition (https://github.com/rordenlab/dcm2niix/issues/726)
neurolabusc Aug 11, 2024
ba03669
Siemens version details (https://github.com/rordenlab/dcm2niix/issues…
neurolabusc Aug 11, 2024
d675aef
GE TablePosition tableDelta
Aug 12, 2024
7440121
Do not report PhaseEncodingDirection for 3D sequences (https://github…
neurolabusc Aug 13, 2024
0ff9d32
Merge pull request #850 from mr-jaemin/development
neurolabusc Aug 13, 2024
de3b205
Revese polarity of Philips/Siemens TablePos Z (https://github.com/ror…
neurolabusc Aug 13, 2024
373618d
Only add "MAGNITUDE" if neither ?MAGNITUDE" or "M" is listed as Image…
neurolabusc Aug 14, 2024
5bff3c9
Only append PHASE, REAL, etc to ImageType if term or alias not alread…
neurolabusc Aug 14, 2024
23eb1ee
Total Read-Out Time Documentation update for GEHC
Aug 16, 2024
6e20194
Merge pull request #852 from mr-jaemin/development
neurolabusc Aug 16, 2024
64e6b43
WASM build
neurolabusc Aug 20, 2024
db97160
add wasm build for npm package
taylorhanayikVBC Aug 26, 2024
b95524c
Merge pull request #856 from rordenlab/feature/add-wasm-npm-module
neurolabusc Aug 26, 2024
fda03a5
Merge pull request #813 from CGSchwarzMayo/DeIdentificationMethod_json
neurolabusc Aug 27, 2024
404771c
workaround for safari and allow nested directories
hanayik Sep 11, 2024
c07f325
bump version for npm release
hanayik Sep 11, 2024
382014a
Merge pull request #858 from rordenlab/bug/fix-safari-wasm-issues
neurolabusc Sep 11, 2024
4aca344
Make PR813 compilation conditional (https://github.com/rordenlab/dcm2…
neurolabusc Sep 14, 2024
4d4d23f
clang-format
neurolabusc Sep 14, 2024
52f0606
AppVeyor Linux compile error
neurolabusc Sep 14, 2024
9f8b3b7
Another attempt for DT_UNKNOWN being defined in dirent.h
neurolabusc Sep 14, 2024
fd87967
Fix typo found by codespell
DimitriPapadopoulos Sep 23, 2024
035b36b
Merge pull request #866 from DimitriPapadopoulos/codespell
neurolabusc Sep 26, 2024
5840e71
Enhanced Mediso (https://github.com/rordenlab/dcm2niix/issues/853)
neurolabusc Sep 28, 2024
b254e16
Deidentification (https://github.com/rordenlab/dcm2niix/issues/861)
neurolabusc Sep 29, 2024
e851138
Reduce stack pressure (https://github.com/rordenlab/dcm2niix/issues/867)
neurolabusc Sep 30, 2024
6b56b91
Reduce stack pressure (https://github.com/rordenlab/dcm2niix/issues/867)
neurolabusc Sep 30, 2024
d8aacc5
Reduce stack pressure (https://github.com/rordenlab/dcm2niix/issues/867)
neurolabusc Sep 30, 2024
d633868
Close quote (https://github.com/rordenlab/dcm2niix/issues/869)
neurolabusc Sep 30, 2024
f3f8e66
Reformat json DeidentificationMethod
CGSchwarzMayo Oct 2, 2024
2d98d4f
refactor file handling
hanayik Oct 2, 2024
15b5356
Merge pull request #872 from rordenlab/wasm/refactor-for-drop
neurolabusc Oct 3, 2024
f5bed4e
Merge pull request #871 from CGSchwarzMayo/DeIdentificationMethod_jso…
neurolabusc Oct 3, 2024
3130690
XA60/61 invalid slice times and 0018,9155 for SMS (https://github.com…
neurolabusc Oct 4, 2024
47ef6d5
Experimental fix for issue 797 (https://github.com/rordenlab/dcm2niix…
neurolabusc Oct 12, 2024
e3fc3e2
Adjust for ms
neurolabusc Oct 12, 2024
7ff30fc
Revert (https://github.com/rordenlab/dcm2niix/issues/797)
neurolabusc Oct 12, 2024
c0be114
kludge for inaccurate start time (0021,1104) in first volume (https:/…
neurolabusc Oct 15, 2024
ed6a38b
Update CMake min version.
ningfei Oct 21, 2024
b5faec4
Include tinydir.h earlier; avoid R-unfriendly calls
jonclayden Oct 21, 2024
6a3a4b4
Remove R special case now that stack usage is less
jonclayden Oct 21, 2024
cf9f981
Small fixes: out-of-bounds or NULL accesses, memory leaks, uninitiali…
jonclayden Oct 21, 2024
b48c597
Merge pull request #876 from jonclayden/divest-1.1
neurolabusc Oct 21, 2024
1657730
Deidentification refactor (https://github.com/rordenlab/dcm2niix/issu…
neurolabusc Oct 22, 2024
fd81790
ISO_IR 100 -> UTF8 for DeidentificationMethod (https://github.com/ror…
neurolabusc Oct 23, 2024
2ffaba7
ImageType reporting (https://github.com/rordenlab/dcm2niix/issues/881)
neurolabusc Oct 24, 2024
ead9ed1
strncat not strcat (https://github.com/rordenlab/dcm2niix/issues/883)
neurolabusc Oct 25, 2024
b3605c4
Improve PET and PET BIDS (https://github.com/rordenlab/dcm2niix/issue…
neurolabusc Oct 31, 2024
29c224b
Siemens series instance UID issues (https://github.com/rordenlab/dcm2…
neurolabusc Nov 6, 2024
2c062f5
Detect variability in first frame's image position patient (https://g…
neurolabusc Nov 6, 2024
586ca3c
Table position from CSA (https://github.com/rordenlab/dcm2niix/issues…
neurolabusc Nov 13, 2024
74e6cc3
Update qForm with crop (https://github.com/rordenlab/dcm2niix/issues/…
neurolabusc Nov 13, 2024
e922fe8
Removing slice timing data for derived and localizer data (e.g. Sieme…
neurolabusc Nov 27, 2024
7067959
Do not convert enhanced DICOMs where slice orientation varies within …
neurolabusc Dec 8, 2024
fae2720
Update dcm_qa submodules.
ningfei Dec 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ skip = .git,*.json,dcm_qa*
# te - the TE used in the code often
# clen - another common variable for length of smth
# tage - for \tAge, inline ignores are yet to be released
# SPOFF - GE diffusion cycling mode
# nd - there is some kind of ND whi
# ❯ grep -e 'trace or MD ' -e 'Trace/ND' ./console/nii_dicom_batch.cpp
# // the isotropic trace or MD can be calculated) often come as
# /*if (!dcmList[indx0].isDerived) //no need to warn if images are derived Trace/ND pair
# ser - used in printMessage(" acq %d img %d ser %ld ...
ignore-words-list = te,clen,tage,nd,ser
ignore-words-list = clen,hep,indx,nd,ser,spoff,tage,te
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Release
on: {push: {tags: ['v*.*.*']}}
jobs:
pypi:
permissions: {id-token: write}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0, submodules: recursive}
- uses: actions/setup-python@v5
with: {python-version: '3.x'}
- uses: casperdcl/deploy-pypi@v2
with: {build: -s, upload: true}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ __pycache__/
/_cmake_test_compile/
/dcm2niix/_dist_ver.py
/dcm2niix/dcm2niix
MANIFEST
/MANIFEST*
/*.egg*/
/dist/

dist
node_modules
dcm2niix.js
dcm2niix.wasm
69 changes: 47 additions & 22 deletions BIDS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ These fields are present regardless of modality (e.g. MR, CT, PET).

| Field | Unit | Comments | Defined By |
|--------------------------|------|---------------------|------------|
| BodyPartExamined | | DICOM tag 0018,0015 | D |
| BodyPart | | DICOM tag 0018,0015 | B |
| PatientPosition | | DICOM tag 0020,0032 | D |
| ProcedureStepDescription | | DICOM tag 0040,0254 | D |
| SoftwareVersions | | DICOM tag 0020,1020 | B |
| StudyDescription | | DICOM tag 0008,1030 | D |
| SeriesDescription | | DICOM tag 0008,103E | D |
| ProtocolName | | DICOM tag 0018,1030 | D |
| ScanningSequence | | DICOM tag 0018,0020 | B |
Expand All @@ -107,6 +108,9 @@ These fields contain personally identifiable information. By default dcm2niix wi
| PatientID | | DICOM tag 0010,0020 | D |
| AccessionNumber | | DICOM tag 0008,0050 | D |
| PatientBirthDate | | DICOM tag 0010,0030 | D |
| PatientSex | | DICOM tag 0010,0040 | D |
| PatientAge | | DICOM tag 0010,1010 | D |
| PatientSize | | DICOM tag 0010,1020 | D |
| PatientWeight | kg | DICOM tag 0010,1030 | D |
| AcquisitionDateTime | | DICOM tag 0008,002A | D |

Expand Down Expand Up @@ -181,23 +185,31 @@ PET fields extracted from [DICOM tags](http://dicom.nema.org/medical/dicom/curre

The term ECAT in the comments suggests that values are defined by the [ECAT7](http://www.turkupetcentre.net/petanalysis/format_image_ecat.html) format. Therefore, these fields will not be populated for DICOM data.

| Field | Unit | Comments | Defined By |
|------------------------------|------|-----------------------------|------------|
| Radiopharmaceutical | | DICOM tag 0018,0031 or ECAT | D |
| RadionuclidePositronFraction | f | DICOM tag 0018,1076 | D |
| RadionuclideTotalDose | MBq | DICOM tag 0018,1074 | D |
| RadionuclideHalfLife | s | DICOM tag 0018,1075 | D |
| DoseCalibrationFactor | | DICOM tag 0054,1322 | D |
| IsotopeHalfLife | | ECAT | D |
| Dosage | | ECAT | D |
| ConvolutionKernel | | DICOM tag 0018,1210 | D |
| Units | | DICOM tag 0054,1001 | D |
| DecayCorrection | | DICOM tag 0054,1102 | D |
| AttenuationCorrectionMethod | | DICOM tag 0054,1101 | D |
| ReconstructionMethod | | DICOM tag 0054,1103 | D |
| DecayFactor | | DICOM tag 0054,1321 | D |
| FrameTimesStart | s | DICOM tags 0008,0022 | D |
| FrameDuration | s | DICOM tag 0018,1242 | D |
| Field | Unit | Comments | Defined By |
|------------------------------|------|----------------------------------|------------|
| IsotopeHalfLife | | ECAT | D |
| Dosage | | ECAT | D |
| FrameTimesStart | s | DICOM tag 0008,0022 | B |
| TracerRadionuclide | | DICOM tag 0008,0100 or 0008,0104 | B |
| Radiopharmaceutical | | DICOM tag 0018,0031 or ECAT | D |
| InjectedRadioactivity | MBq | DICOM tag 0018,1074 | B |
| RadionuclideHalfLife | s | DICOM tag 0018,1075 | D |
| RadionuclidePositronFraction | f | DICOM tag 0018,1076 | D |
| ConvolutionKernel | | DICOM tag 0018,1210 | D |
| Units | | DICOM tag 0054,1001 | B |
| AttenuationCorrectionMethod | | DICOM tag 0054,1101 | B |
| DecayCorrection | | DICOM tag 0054,1102 | D |
| ReconstructionMethod | | DICOM tag 0054,1103 | B |
| DecayCorrectionFactor | | DICOM tag 0054,1321 | B |
| DoseCalibrationFactor | | DICOM tag 0054,1322 | B |
| ScatterFraction | | DICOM tag 0054,1323 | B |
| FrameDuration | s | DICOM tag 0018,1242 | B |

n.b. ConvolutionKernel (0018,1210) can be parsed to BIDS `ReconFilterType` and `ReconFilterSize`. However, manufacturer variations (Siemens: `XYZGAUSSIAN3.00` GE `Rad: \ rectangle \ 4.000000 mm \ Ax: \ rectangle \ 8.500000 mm` require complex logic).

n.b. ReconstructionMethod (0054,1103) can be parsed to ReconMethodName, ReconMethodParameterLabels, ReconMethodParameterUnits and ReconMethodParameterValues. However, this requires maniufacturer specific logic (e.g. Siemens `OP-OSEM4i21s`, GE `3D Kinahan - Rogers`

For Philips scanners, [Source Isotope Name](https://dicom.innolitics.com/ciods/rt-brachy-treatment-record/rt-brachy-session-record/30080100/300a0226) may be a good source for TracerRadionuclide

## Manufacturer Fields

Expand Down Expand Up @@ -232,8 +244,18 @@ Data unique to [GE](https://github.com/rordenlab/dcm2niix/tree/master/GE). Deter
| ASLLabelingTechnique | | DICOM tag 0043,10A4 | D |
| LabelingDuration | s | DICOM tag 0043,10A5 | B |
| SliceTiming | s | [see notes](https://github.com/rordenlab/dcm2niix/tree/master/GE#slice-timing) | B |
| CompressedSensingFactor | | DICOM tag 0043,10b7 | D |
| DeepLearningFactor | | DICOM tag 0043,10ca | D |
| CompressedSensingFactor | | DICOM tag 0043,10B7 | D |
| TablePosition | mm | The 3rd value of DICOM tag 0043,10B2 - the value of DICOM tag 0019,107F | B |
| DeepLearningFactor | | DICOM tag 0043,10CA | D |

### Manufacturer GE (Positron Emission Tomography)

[GE Private Tags](https://www.gehealthcare.com/-/jssmedia/b86f641ae0bd4a7b919c79215e5c01e7)

| Field | Unit | Comments | Defined By |
|------------------------------------|------|-----------------------|------------|
| InjectedVolume | | DICOM tag 0009,103A | B |
| ReconFilterSize | | DICOM tag 0009,108F | B |

### Manufacturer Philips

Expand All @@ -246,11 +268,12 @@ Data unique to Philips, including [custom intensity scaling](https://www.ncbi.nl
| PhilipsRWVIntercept | | DICOM tag 0040,9224 | D |
| PhilipsRescaleSlope | | DICOM tag 0028,1053 | D |
| PhilipsRescaleIntercept | | DICOM tag 0028,1052 | D |
| PhilipsScaleSlope | | DICOM tag 2005,100E | D |
| UsePhilipsFloatNotDisplayScaling | | dcm2niix option `-p y` or `-p n` | D |
| PartialFourierEnabled | | DICOM tag 0018,9081, `YES` | D |
| PhaseEncodingStepsNoPartialFourier | | DICOM tag 0018,9231 | D |
| WaterFatShift | | DICOM tag 2001,1022 | D |
| PhilipsScaleSlope | | DICOM tag 2005,100E | D |
| TablePosition | mm | DICOM tag 2005,143C | B |

### Manufacturer Siemens (Arterial Spin Labeling)

Expand Down Expand Up @@ -320,6 +343,7 @@ Fields specific to Siemens V*-series (e.g. VB, VE) MRI systems (e.g. Verio, Trio
| ConsistencyInfo | | The more complete software version, e.g. VE11C or VE11E instead of just VE11. | D |
| CoilCombinationMethod | | Detects `Sum of Squares` and `Adaptive Combine` | B |
| MatrixCoilMode | | Detects `SENSE` and `GRAPPA` | B |
| TablePosition | mm | DICOM tag 0019,1014 | B |
| DwellTime | | DICOM tag 0019,1018 | B |
| BandwidthPerPixelPhaseEncode | Hz | DICOM tag 0019,1028 | D |
| ImageOrientationText | | DICOM tag 0051,100E | D |
Expand All @@ -335,9 +359,10 @@ Fields specific to [Siemens XA-series](https://github.com/rordenlab/dcm2niix/tre
| BandwidthPerPixelPhaseEncode | Hz | DICOM tag 0021,1153 | D |
| ScanningSequence | | DICOM tag 0021,105a | D |
| PostLabelingDelay | s | DICOM tag 0018,9258 | B |
| TablePosition | mm | DICOM tag 0021,1005 | B |
| NonlinearGradientCorrection | b | 0008,0008 or 0021,1175 | B |
| PhaseEncodingDirection | | polarity from 0021,111c | B |
| SpoilingState | | 0021,105B | B |
| SpoilingState | | DICOM tag 0021,105B | B |

Siemens also includes some sequence information in the private MRPhoenixProtocol (0021,1019) tag. You can view this with [gdcmdump](https://gdcm.sourceforge.net/html/gdcmdump.html), e.g. `gdcmdump --mrprotocol img.dcm`. Fields that dcm2niix inspects include `sPat.lAccelFact3D `, `sPat.lAccelFactPE`, `sPat.lRefLinesPE` and `sPat.ucPATMode`. The behavior of dcm2niix will be more well documented as our understanding of this tag improves.

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.5)

if(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Like the [Brain Imaging Data Structure](https://bids.neuroimaging.io/get_involve

The easiest way to contribute to dcm2niix is to ask questions you have by [generating Github issues](https://github.com/rordenlab/dcm2niix/issues) or [asking a question on the NITRC forum](https://www.nitrc.org/forum/?group_id=880).

The code is open source, and you can share your improvements by [creating a pull request](https://github.com/rordenlab/dcm2niix/pulls).
The code is open source, and you can share your improvements by [creating a pull request](https://github.com/rordenlab/dcm2niix/pulls) to the **development** branch. Please note that the **master** branch is always the current stable release and does not accept pull requests.
dcm2niix is a community project that has benefitted from many [contributors](https://github.com/rordenlab/dcm2niix/graphs/contributors).

The INCF suggests indicating who is responsible for maintaining software for [stability and support](https://incf.org/incf-standards-review-criteria-v20). Therefore, below we indicate several active contributors and their primary domain of expertise. However, this list is not comprehensive, and it is noted that the project has been supported by contributions from many users. This list does not reflect magnitude of prior contributions, rather it is a non-exhaustive list of members who are actively maintaining the project.
Expand Down
2 changes: 1 addition & 1 deletion FILENAMING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ DICOM images can have up to [16](https://www.medicalconnections.co.uk/kb/Number-

## File Name Conflicts

dcm2niix will attempt to write your image using the naming scheme you specify with the '-f' parameter. However, if an image already exists with the specified output name, dcm2niix will append a letter (e.g. 'a') to the end of a file name to avoid overwriting existing images. Consider a situation where dcm2niix is run with '-f %t'. This will name images based on the study time. If a single study has multiple series (for example, a T1 sequence and a fMRI scan, the reulting file names will conflict with each other. In order to avoid overwriting images, dcm2niix will resort to adding the post fix 'a', 'b', etc. There are a few solutions to avoiding these situations. You may want to consider using both of these:
dcm2niix will attempt to write your image using the naming scheme you specify with the '-f' parameter. However, if an image already exists with the specified output name, dcm2niix will append a letter (e.g. 'a') to the end of a file name to avoid overwriting existing images. Consider a situation where dcm2niix is run with '-f %t'. This will name images based on the study time. If a single study has multiple series (for example, a T1 sequence and a fMRI scan, the resulting file names will conflict with each other. In order to avoid overwriting images, dcm2niix will resort to adding the post fix 'a', 'b', etc. There are a few solutions to avoiding these situations. You may want to consider using both of these:
- Make sure you specify a naming scheme that can discriminate between your images. For example '-f %t' will not disambiguate different series acquired in the same session. However, '-f %t_%s' will discriminate between series.
- Localizer (scout) images are the first scans acquired for any scanning session, and are used to plan the location for subsequent images. Localizers are not used in subsequent analyses (due to resolution, artefacts, etc). Localizers are often acquired with three orthogonal image planes (sagittal, coronal and axial). The NIfTI format requires that all slices in a volume are co-planar, so these localizers will generate naming conflicts. The solution is to use '-i y' which will ignore (not convert) localizers (it will also ignore derived images and 2D slices). This command helps exclude images that are not required for subsequent analyses.
- Be aware that if you run dcm2niix twice with the same parameters on the same data, you will encounter file naming conflicts.
Expand Down
Loading
Loading