ZeyuGaoAi/CLAM_PreProcessing

CLAM-based preprocessing with more fundation models

2

stars

93

commits

Python

primary language

Dec 12, 2024

updated

README

CLAM_PreProcessing

CLAM-based preprocessing with more foundation models

Patch Tessellation

python create_patches_fp.py --source /home/shared/su123/TCGA_ORI/TCGA-OV/ \
       --save_dir /home/shared/su123/TCGA_Embed/TCGA-OV/clam_gen_1024   \
       --step_size 1024 --patch_size 1024 --seg --patch --stitch --patch_level 0 --preset tcga.csv

Feature Extraction

set up model_name: uni_v1, conch_v1, conch_v1_5, h_optimus_0, virchow2, gigapath, hibou_l

python extract_features_fp.py --data_h5_dir /home/shared/su123/TCGA_Embed/TCGA-RCC/clam_gen_1024/ \
    --anno_dir /home/z/zeyugao/dataset/WSIData/TCGA-RCC/annotation/ \
    --data_slide_dir /home/shared/su123/TCGA_ORI/TCGA-RCC/ \
    --csv_path /home/shared/su123/TCGA_Embed/TCGA-RCC/clam_gen_1024/process_list_autogen.csv --model_name virchow2\
    --feat_dir /home/shared/su123/TCGA_Embed/TCGA-RCC/clam_gen_1024/virchow2/ \
    --suffix "_0_1024" --patch_size 1024 

Contributors

fedshyvana

57 commits

faisalml

18 commits

scjjb

4 commits

ZeyuGaoAi/CLAM_PreProcessing

CLAM-based preprocessing with more fundation models

2

stars

93

commits

Python

primary language

Dec 12, 2024

updated

README

CLAM_PreProcessing

CLAM-based preprocessing with more foundation models

Patch Tessellation

python create_patches_fp.py --source /home/shared/su123/TCGA_ORI/TCGA-OV/ \
       --save_dir /home/shared/su123/TCGA_Embed/TCGA-OV/clam_gen_1024   \
       --step_size 1024 --patch_size 1024 --seg --patch --stitch --patch_level 0 --preset tcga.csv

Feature Extraction

set up model_name: uni_v1, conch_v1, conch_v1_5, h_optimus_0, virchow2, gigapath, hibou_l

python extract_features_fp.py --data_h5_dir /home/shared/su123/TCGA_Embed/TCGA-RCC/clam_gen_1024/ \
    --anno_dir /home/z/zeyugao/dataset/WSIData/TCGA-RCC/annotation/ \
    --data_slide_dir /home/shared/su123/TCGA_ORI/TCGA-RCC/ \
    --csv_path /home/shared/su123/TCGA_Embed/TCGA-RCC/clam_gen_1024/process_list_autogen.csv --model_name virchow2\
    --feat_dir /home/shared/su123/TCGA_Embed/TCGA-RCC/clam_gen_1024/virchow2/ \
    --suffix "_0_1024" --patch_size 1024 

Contributors

fedshyvana

57 commits

faisalml

18 commits

scjjb

4 commits

Languages

Python

79.4%

Jupyter Notebook

16.2%

Shell

4.5%