This is a deep learning-based tool designed to predict the content and localization of ecDNA in HE-stained pathological section images (SVS/TIF/JPG files). It primarily offers two core functions:
- Predict ecDNA content and localization from input images
- Perform SHAP interpretability analysis on images
Ensure Python (version 3.11.10 or higher) is installed in your environment.
git clone https://github.com/zhangheng43/ecPICK
cd ecPICK
pip install -r requirements.txtDownload H5 Model file combined_model.h5 here and place it in the model/ directory.
Used to analyze pathological section files in SVS/TIF/JPG formats, generating prediction results and visualized images.
python run_model.py predict_svs --input <path_to_image_file> --output <output_directory> --downsample <downsampling_rate> Parameter descriptions:
--input: Required. Path to the input image file, supporting SVS/TIF/JPG formats.
--output: Required. Directory for saving output results.
--downsample: Optional. Downsampling rate for output images (default: 1).
Output contents:
- Cropped image patches
- Prediction result Excel file (predict_result.xlsx)
- Annotated visualization image (output.png)
Used to generate interpretability analysis of model predictions.
python run_model.py shap --input <input_file_path> --output <output_path> --max_eval <max_evaluation_count> Parameter descriptions:
--input: Required. Path to the input file.--output: Required. Path for saving output files.--max_eval: Optional. Maximum number of evaluations (default: 500).
- Run pathological section prediction:
python run_model.py predict_svs --input ./samples/example.svs --output ./results --downsample 2- Run SHAP analysis:
python run_model.py shap --input ./samples/test.jpg --output ./results/shap_result --max_eval 1000- Ensure OpenSlide DLL files are installed correctly.
- The output directory must have write permissions.
- Processing large SVS files may take a significant amount of time (approximately 10 minutes).
- It is recommended to adjust the downsample parameter based on actual needs to balance image quality and file size.