You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser.add_argument("--SourceFolder", help="path to tiled images", dest='SourceFolder')
252
252
parser.add_argument("--JsonFile", help="path to metadata json file", dest='JsonFile')
253
253
parser.add_argument("--Magnification", help="magnification to use", type=float, dest='Magnification')
254
-
parser.add_argument("--MagDiffAllowed", help="difference allwed on Magnification", type=float, dest='MagDiffAllowed')
254
+
parser.add_argument("--MagDiffAllowed", help="difference allowed on Magnification", type=float, dest='MagDiffAllowed')
255
255
parser.add_argument("--SortingOption", help="see option at the epilog", type=int, dest='SortingOption')
256
256
parser.add_argument("--PercentValid", help="percentage of images for validation (between 0 and 100)", type=float, dest='PercentValid')
257
257
parser.add_argument("--PercentTest", help="percentage of images for testing (between 0 and 100)", type=float, dest='PercentTest')
258
258
parser.add_argument("--PatientID", help="Patient ID is supposed to be the first PatientID characters (integer expected) of the folder in which the pyramidal jpgs are. Slides from same patient will be in same train/test/valid set. This option is ignored if set to 0 or -1 ", type=int, dest='PatientID')
259
259
parser.add_argument("--TMB", help="path to json file with mutational loads; or to BRAF mutations", dest='TMB')
260
-
parser.add_argument("--nSplit", help="interger n: Split into train/test in n different ways", dest='nSplit')
260
+
parser.add_argument("--nSplit", help="integer n: Split into train/test in n different ways", dest='nSplit')
261
261
parser.add_argument("--outFilenameStats", help="Check if the tile exists in an out_filename_Stats.txt file and copy it only if it True, or is the expLabel option had the highest probability", dest='outFilenameStats')
262
262
parser.add_argument("--expLabel", help="Index of the expected label within the outFilenameStats file (if only True/False is needed, leave this option empty).", dest='expLabel')
263
263
parser.add_argument("--threshold", help="threshold above which the probability the class should be to be considered as true (if not specified, it would be considered as true if it has the max probability).", dest='threshold')
Copy file name to clipboardexpand all lines: DeepPATH_code/README.md
+14-4
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,18 @@
1
+
If you use this code, please cite:
2
+
3
+
Nicolas Coudray, Paolo Santiago Ocampo, Theodore Sakellaropoulos, Navneet Narula, Matija Snuderl, David Fenyö, Andre L. Moreira, Narges Razavian, Aristotelis Tsirigos. "Classification and mutation prediction from non–small cell lung cancer histopathology images using deep learning". Nature Medicine, 2018; DOI: 10.1038/s41591-018-0177-5
4
+
5
+
6
+
This procedure is based on the inception v3 architecture from google which should be cited as well if you use this code. See [Inception v3](https://github.com/tensorflow/models/blob/f87a58cd96d45de73c9a8330a06b2ab56749a7fa/research/inception/README.md) for information about it.
7
+
8
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, Zbigniew Wojna. "Rethinking the Inception Architecture for Computer Vision"
9
+
http://arxiv.org/abs/1512.00567
10
+
1
11
2
12
Preliminary comments:
3
13
* For the path, it is advised to always put the full path name and not the relative paths.
4
-
* For all the steps below, always submit the jobs via a qsub script (if on Pheonix) and always check the output and error log files are fine.
5
-
* This procesude is based on the inception v3 architecture from google. See [Inception v3](https://github.com/tensorflow/models/blob/f87a58cd96d45de73c9a8330a06b2ab56749a7fa/research/inception/README.md) for information about it.
14
+
* For all the steps below, always submit the jobs via a qsub script (if on Phoenix) and always check the output and error log files are fine.
15
+
6
16
7
17
The overall process is:
8
18
* tile the svs images and convert into jpg
@@ -17,7 +27,7 @@ There are several ways to run the pre-processing steps depending on the desired
17
27
* if you aim for a multi-output classification (mutations for example): run the svs tiling step once using all the svs images inside 1 output folder, then run the sorting program using option 10 (only 1 output folder generated with all the jpg. They will be sorted into train/valid/test but not assigned any label yet), then run the TFRecord conversion programs for multi-output classification (will assign the label to each tile)
18
28
* if a pathologist has selected/labelled regions with Aperio (contours of the ROIs saved in xml format), then you run the svs tiling step on each class of xml file, run the sorting program using optin 10 on each of them (the output folder will have the same name as the one where each class has been tiled), and then run the TFRecord conversion programs
19
29
20
-
Advised folder organization (directorties that may need to be created in plain, those generated by the programs in bold).
30
+
Advised folder organization (directories that may need to be created in plain, those generated by the programs in bold).
21
31
* For classes obtained from json files:
22
32
23
33
| directories | Comments |
@@ -27,7 +37,7 @@ Advised folder organization (directorties that may need to be created in plain,
27
37
|`images/Raw/*svs`| original svs images |
28
38
|`images/Raw/*json `| json file from TCGA database |
29
39
|`images/<##>pxTiles_<##>Bkg`| output folder for tiles. Replace ## tile size and background threshold used to run the tiling process` |
30
-
|**`images/<##>pxTiles_<##>Bkg/<slide name>_files/20.0/<X index>_<Y index>.jpeg`**| Each svs image will have a folder. Inside, there will be as many sub-folders as mangnification available and the tiles jpeg images inside |
40
+
|**`images/<##>pxTiles_<##>Bkg/<slide name>_files/20.0/<X index>_<Y index>.jpeg`**| Each svs image will have a folder. Inside, there will be as many sub-folders as magnification available and the tiles jpeg images inside |
| `images/01_Cancer_Tumor/ | output folder for sorted tiled |
33
43
|**`images/01_Cancer_Tumor/Solid_Normal_Tissue/<t/v/t set>_<slide name>_<X index>_<Y index>.jpg`**| folders with class names will be generated. Symbolic links to the tiled jpeg will be created and renamed.` |
0 commit comments