Skip to content

deep-projects/camelyon-slide-to-tiles-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camelyon Slide to Tiles Experiments

This repository contains a reproducible RED experiment. This experiment can be reproduced with CC-FAICE or CC-Agency version 7 of the Curious Containers project.

The experiments read image slides from the CAMELYON16 database via OpenSlide to create image tiles for tumor and normal tissue. Tiles are saved in one HDF5 file per slide. It is used as data preparation step of machine learning tasks.

External resources used for this Experiment

Reproduce at CBMI - HTW Berlin

Running the requires access to compute resources of CBMI - HTW Berlin. If you had access, you could run the original experiment as follows.

pip3 install --user --upgrade cc-faice==7.*
faice exec slide-tiles.red.yml

Reproduce without access to CBMI resources

To reproduce this on your own hardware, you should perform the following steps:

  • Download CAMELYON16 to your own storage server:
wget -r -nH --cut-dirs=5 -nc ftp://parrot.genomics.cn/gigadb/pub/10.5524/100001_101000/100439/CAMELYON16/
  • Change the RED connectors in slide-tiles.red.yml to access the files from your storage server. For more information about possible connectors refer to the Curious Containers documentation.
  • Run RED experiment via faice agent red --outputs slide-tiles-custom.red.yml commandline tool or your own instance of CC-Agency server software.
  • The experiments use the camelyon-utils slide-tiles commandline tool to create one HDF5 file per slide. Use camelyon-utils merge-hdf5 to merge them into a single HDF5 file.

Merge files

The experiment produces one HDF5 file per slide. You can merge them to a CNN training data set using camelyon-utils merge-hd5 as follows:

camelyon-utils merge-hdf5 --indir /data/ldap/camelyon/camelyon_new_downloaded_2019_02_06/CAMELYON16/tiles/training/ --outfile /data/ldap/camelyon/camelyon_new_downloaded_2019_02_06/CAMELYON16/merged_tiles/merged.hdf5 --mode single --numtiles 750

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages