cerberus icon indicating copy to clipboard operation
cerberus copied to clipboard

output labels

Open anooyih opened this issue 1 year ago • 4 comments

In the mat file, the predicted tissue class in pclass_mat or cell type in nuclei_mat are stored as integer. I could not find how to map those integers to actual meaningful label such as epithelial, lymphocyte, plasma, etc., for cell type or adipose, abnormal epithelial, normal epithelial, etc., for tissue type. Could you provide the dictionary for each integer somewhere?

Thanks in advance.

anooyih avatar Jul 08 '24 18:07 anooyih

Same problem here :-) Can you provide a way to map the values? thank you

carloalbertobarbano avatar Oct 09 '24 13:10 carloalbertobarbano

Are you using the .mat or .dat file to visualize the results ? and do you use Qupath ?

jw235 avatar Nov 25 '24 09:11 jw235

I believe it should be:

nuclei_dict = {
    0: 'nolabel',
    1: 'neutrophil',
    2: 'epithelial',
    3: 'lymphocyte', 
    4: 'plasma',
    5: 'eosinophil', 
    6: 'connective'
}

tissue_dict = {
    0: 'background',
    1: 'abnormal_epi',
    2: 'normal_epi',
    3: 'inflammatory', 
    4: 'muscle',
    5: 'stroma', 
    6: 'debris'
    7: 'mucin'
    8: 'adipose'
}

Please double check.

simongraham avatar Nov 27 '24 19:11 simongraham

You can also look at https://github.com/TissueImageAnalytics/cerberus/blob/master/dataset.yml

Himanshunitrr avatar Apr 01 '25 19:04 Himanshunitrr