Skip to content

Commit 5dd3d9e

Browse files
committed
adds bash format where need and missed spoiler for linux dicom data conversion #4
1 parent 39f7717 commit 5dd3d9e

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

episodes/itksnap.Rmd

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,14 @@ We will now work on converting DICOM images to a NIfTI image volume.
285285
#### Using ITK-SNAP
286286
In the ITK-SNAP application, save the file by clicking 'File' --> 'Save image' --> rename image and choose format as 'NiFTI'.
287287

288-
Notes.
289-
```callout
290-
For Linux users. You might get this error
291-
`Error: exception occurred during image IO.
292-
Exception: std::expedition`
293-
to which he suggest using dicom2nifti library.
294-
```
288+
289+
290+
:::::::::::::::::::::::::::::::::::::: spoiler
291+
292+
## Warning for Linux users.
293+
You might get this error `Error: exception occurred during image IO. Exception: std::expedition` to which we suggest using dicom2nifti library.
294+
295+
::::::::::::::::::::::::::::::::::::::
295296

296297
#### Using [dicom2nifti](https://github.com/icometrix/dicom2nifti)
297298
1. Open terminal, activate `mirVE` environment and run python

learners/setup.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ Bare in mind that:
2929

3030
#### Extracting and renaming data paths
3131
Original data directory paths for this work were renamed for easy interpretability as follows:
32-
```callout
33-
`5.000000-Thorax Insp 2.0 B*` ranamed as `inhale_BH_CT`
34-
`7.000000-Thorax Exp 2.0 B*` renamed as `exhale_BH_CT`
35-
`3.000000-CT Lung 3.0 B*` ranamed as `CT_for_PET`
36-
`4.000000-Galligas Lung-0*` renamed as `PET`
37-
```
32+
* `5.000000-Thorax Insp 2.0 B*` ranamed as `inhale_BH_CT`
33+
* `7.000000-Thorax Exp 2.0 B*` renamed as `exhale_BH_CT`
34+
* `3.000000-CT Lung 3.0 B*` ranamed as `CT_for_PET`
35+
* `4.000000-Galligas Lung-0*` renamed as `PET`
3836

3937
See how the original data paths and renamed look like
4038
```bash
@@ -123,7 +121,7 @@ Installing python virtual environment with dependencies (e.g., nibabel, etc).
123121
See further instructions [here](https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/tree/main/_dependencies).
124122

125123
#### Using conda
126-
```
124+
```bash
127125
conda create -n "mirVE" python=3.11 pip -c conda-forge
128126
conda config --set pip_interop_enabled True
129127
conda activate mirVE
@@ -132,7 +130,7 @@ pip install -r requirements.txt
132130
```
133131

134132
#### Using python virtual environment
135-
```
133+
```bash
136134
# Installing dependencies in Ubuntu 22.04
137135
sudo apt-get install -y python3-pip
138136
sudo apt-get install -y python3-venv
@@ -181,7 +179,7 @@ Installing ITK-SNAP in differen operating systems
181179
### Linux (tested on Ubuntu 22.04 x64 GNU/Linux)
182180

183181
- Open your Terminal to install it
184-
```
182+
```bash
185183
sudo apt-get install tree # to visualise files and paths
186184
FILENAME=itksnap-nightly-rel_4.0-Linux-gcc64.tar.gz #Length: 200943059 (192M) [application/x-gzip]
187185
cd ~/Downloads/

0 commit comments

Comments
 (0)