squidpy icon indicating copy to clipboard operation
squidpy copied to clipboard

H&E Image Features

Open DaisyCuttie opened this issue 2 years ago • 3 comments

Hi, I am currently learning Squidpy calculate image features. I am wondering what is the interpretation of the pattern? I could not figure out why there are circles of low-mean image features(how to interpret the location of the circles). Also, channel 0,1 and 2 do not seem be too different on the tissue sample I am working on. Screen Shot 2022-05-04 at 10 01 32 PM For this, I used the tutorial on this site https://squidpy.readthedocs.io/en/stable/auto_examples/image/compute_features.html#sphx-glr-auto-examples-image-compute-features-py I tried custom_features as well, but did not get any difference. Screen Shot 2022-05-04 at 10 03 04 PM

I would be grateful if you can provide some insights of the results I am getting!

DaisyCuttie avatar May 05 '22 05:05 DaisyCuttie

hi @Charlottehero sorry completely missed this issue. looks interesting, can you share the actual line of code you used? it maybe computing features on different layers?

giovp avatar Jun 07 '22 15:06 giovp

Thank you for the reply! I first loaded in the tif image file our team has using image container function, img = sq.im.ImageContainer("path/to/image.tif", scale = scale) and I used the default image feature calculation function in the tutorial. feature_name = "features_summary" sq.im.calculate_image_features( adata, img, features="summary", key_added=feature_name, n_jobs=4, scale=scale, ) Btw, we are also not sure why the intensity value range is very narrow across the whole tissue. Is there anything wrong with our code?

DaisyCuttie avatar Jun 13 '22 23:06 DaisyCuttie

apologies for late reply, I must say it's difficult to debug with this info. Are you sure that image features calculcation is computed on the same (or a scaled version) of the tissue image that you use for plotting?

Re intesnity ranges, it looks like the iamge is in 8but instead of 16bit so it's not necessarily low (thje max is 255)

giovp avatar Jun 21 '22 09:06 giovp

@DaisyCuttie I'll close this issue due to inactivity, let me know if the problem persist and feel free to reopen the issue!

giovp avatar Oct 14 '22 06:10 giovp