This gist describes example of simple workflow on repository whose changes are tracked by git and GitHub
# Go to directory where repository will be cloned (downloaded)
cd ~/Documents
# Clone repository from GitHub
This gist describes example of simple workflow on repository whose changes are tracked by git and GitHub
# Go to directory where repository will be cloned (downloaded)
cd ~/Documents
# Clone repository from GitHub
# Set ITK direction from image1 to image2 | |
# | |
# Usage: | |
# python change_itk_orientation.py <image1> <image2> | |
# Example: | |
# python change_itk_orientation.py sub-001_T1w.nii.gz sub-001_T1w_seg.nii.gz | |
# | |
# Jan Valosek | |
# |
import os | |
import glob | |
import hashlib | |
import argparse | |
def compute_checksum(file_path): | |
with open(file_path, 'rb') as f: | |
file_bytes = f.read() | |
return hashlib.md5(file_bytes).hexdigest() |
This gist contains a template script that can be run across multiple subjects using the sct_run_batch wrapper script.
The template bash script below can be run from you command line using the following command:
sct_run_batch -script example_script.sh -path-data <DATA> -path-output <DATA>_202X-XX-XX -jobs 16
Note
You can directly pass the name of an matplotlib colormap to FSLeyes on the command line, for example:
fsleyes sub-001_T2w_rootlets.nii.gz -cm Jet
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license
/usr/bin/xcodebuild -version
to ensure Xcode is correctly installed and configuredpytorch-nightly
:conda create -n nanogpt python=3.10
Install the Continue plugin:
PyCharm --> Settings --> Plugins --> search for "Continue" --> Install
Download and install Ollama
Download some LLM model, which can be run locally. For example, the open-source Granite model from IBM: