8000 GitHub - twiltgen/LST-AI_BIDS: This repository includes scripts for the application of LST-AI to BIDS database
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

twiltgen/LST-AI_BIDS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LST-AI Lesion Segmentation Pipeline

This repository contains a Python script (run_lst_ai.py) for applying LST-AI lesion segmentation and performing the necessary steps to convert the output to BIDS standards. The script processes a list of subjects, checks for the availability of required images, and runs the segmentation pipeline, producing outputs that comply with BIDS (Brain Imaging Data Structure) conventions. This is a framework to automatically apply LST-AI on all images in a BIDS compliant database.

Table of Contents

Installation

To use this pipeline, ensure you have Python installed on your system along with the required dependencies. In addition, the pipeline requires LST-AI to be installed (https://github.com/CompImg/LST-AI).

Usage

To run the LST-AI pipeline, use the following command:

python run_lst_ai.py -i /path/to/bids/dataset -n 4 --cpu --remove_temp --clipping 0.5 99.5

Arguments

  • -i, --input_directory: (Required) Path to the derivatives folder in the BIDS database.
  • -n, --number_of_workers: Number of parallel processing cores to use (default: os.cpu_count()-1).
  • --cpu: Use this flag to process using CPU only (default: GPU if available).
  • --remove_temp: Use this flag to remove the temporary folder containing auxiliary files after processing.
  • --clipping: Clipping for standardization of image intensities (default: (0.5, 99.5)).

Pipeline Details

The script performs the following steps:

  1. Check availability: The scripts checks availability of T1w and FLAIR images and whether the lesion mask generated by LST-AI already exists.
  2. Segmentation: Runs the LST-AI lesion segmentation on the images where the lesion mask does not exist.
  3. Output Handling: Checks if the segmentation was successful, renames output files to comply with BIDS conventions, and optionally removes temporary files.

About

This repository includes scripts for the application of LST-AI to BIDS database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0