Closed yuechen9 closed 2 years ago
it depends on what pyramid levels are available in your 40x wsi file. e.g. is it 40x, 20x, 10x, 5x, ..., or maybe 40x, 10x, 2.5x, ...?
If it's the latter then yes your command looks right.
Thank you for your reply, I will check pyramid levels first.
I found that this depends on scanner, For Hamamatsu (output wsi in .ndpi) downsample: level 0 = 1, level 1 = 2, level 2=4 and so on, each level x2 for level 0 is x40, level 1 will be x20 and so on.
For aperio(output wsi in .svs) downsample: level 0 = 1, level 1 = 4, level 2=64 and so on, each level x4 for level 0 is x40, level 1 will be x10 and so on.
Sorry to reopen this issue! I am facing the same problem and thus I am curious about how to check pyramid levels you mentioned above. My dataset is TCGA, downloaded as .svs format, and is preprocessed via CLAM which uses the default value of patch level, i.e., "--patch_level: which downsample pyramid level to extract patches from (default is 0, the highest available resolution)".
If the .svs data is x40 at level 0, dose it mean that my TCGA dataset preprocessed by CLAM is x40 magnificantion? If so, it would contradict to the description of CLAM's paper, which TCGA is at x20 magnification. Therefore, should I modify the 'patch level' to get a x20 magnification for TCGA?
I found that this depends on scanner, For Hamamatsu (output wsi in .ndpi) downsample: level 0 = 1, level 1 = 2, level 2=4 and so on, each level x2 for level 0 is x40, level 1 will be x20 and so on.
For aperio(output wsi in .svs) downsample: level 0 = 1, level 1 = 4, level 2=64 and so on, each level x4 for level 0 is x40, level 1 will be x10 and so on.
Sorry to reopen this issue! I am facing the same problem and thus I am curious about how to check pyramid levels you mentioned above. My dataset is TCGA, downloaded as .svs format, and is preprocessed via CLAM which uses the default value of patch level, i.e., "--patch_level: which downsample pyramid level to extract patches from (default is 0, the highest available resolution)".
If the .svs data is x40 at level 0, dose it mean that my TCGA dataset preprocessed by CLAM is x40 magnificantion? If so, it would contradict to the description of CLAM's paper, which TCGA is at x20 magnification. Therefore, should I modify the 'patch level' to get a x20 magnification for TCGA?
I found that this depends on scanner, For Hamamatsu (output wsi in .ndpi) downsample: level 0 = 1, level 1 = 2, level 2=4 and so on, each level x2 for level 0 is x40, level 1 will be x20 and so on. For aperio(output wsi in .svs) downsample: level 0 = 1, level 1 = 4, level 2=64 and so on, each level x4 for level 0 is x40, level 1 will be x10 and so on.
I checked pyramid levels using openslide package, read in then check the info. You will get something like this:
aperio.AppMag': '40' which indicates highest resolution 40x 'openslide.level-count': '4', in total 4 levels 'openslide.level[0].downsample': '1', level 0 is 40/1 'openslide.level[1].downsample': '4.0000683838614091', level 1 is 40/4 'openslide.level[2].downsample': '16.001974108624321', level 2 is 40/16 'openslide.level[3].downsample': '32.006867359118147', level 3 is 40/32
FYI, TCGA contains both x20 and x40 WSIs, but majority of diagnostic slide should be 40x. You need to check image pyramids first.
Hope this answers your question.
I am also trying to work on different magnifications, such as 5x,10x,20x.
Just to check for 40x WSI file:
Thanks
Originally posted by @Legendddd in https://github.com/mahmoodlab/CLAM/issues/115#issuecomment-1087652098