Skip to content

Direct inference of molecular subtype of PDAC samples from WSI

License

Notifications You must be signed in to change notification settings

rmoffitt/PatchDAC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PatchDAC

Direct inference of molecular subtype of PDAC samples from WSI

Quick Start

In order to run, the script runPDAC_multiarc.sh requires three arguments in the following format:

bash runPDAC_multiarc.sh /PATH/TO/SVS/ /PATH/TO/INFERENCE_OUTPUT/ /PATCH/TO/PATCH_OUTPUT/

Required data structure and software

  • Argument 1: Directory containing SVS files
  • Arguments 2 and 3: These are intermediate and output directories
  • Requires either docker or singularity

Output structure

inference_output/cluster_dir
├── **inference_feat.pickle**
├── **inference_list.pickle**
├── patchwise_cluster_vit_features.csv
└── patient_wise_stacked_cluster 
    ├── SVS1.png
    ├── SVS2.png
    └── etc.

patch_output/
└── one folder per svs filled with one png per patch
  • inference_feat.pickle and inference_list.pickle contain what you will need for downstream predictions. inference_feat.pickle is in the structure of n rows (1 row per .svs) by 20 columns, with each cell representing the percentage of the svs that was classified as belonging to that cluster. inference_list.pickle contains the svs file names in the same order as the row-level entries of inference_feat.pickle.
  • the patient wise stacked clusters show representative images of each cluster type from each WSI. It is normal for many rows to be blank, as not all morphologies are present in all cases.
  • patchwise cluster vit features can be used for patch level analyses (BETA)

Implementing prediction pipeline (in development)

Once you have run the prediction pipeline on your dataset, run the .R file implementPipeline.R to generate a basal-like probability output

About

Direct inference of molecular subtype of PDAC samples from WSI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published