-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<class 'TypeError'> Inappropriate argument type. __init__() should return None, not 'int' #304
Comments
Hi @csittz, Thank you for reaching out! This error message is quite common and usually means an image file (usually .tif or .tiff but potentially also .svs) you are using does not contain key metadata. Can you run |
Thanks for your help. here's the tifftools dump output for one of the svs file.
|
Hi :) I'm running into the same issue, do you know if there is a fix? |
My apologies for the delay. @csittz your dumped output indicates that your file is lacking metadata which HistoQC requires. Specifically, the ImageDescription header is empty. I would recommend following the "Adding Metadata" section of this blog post to inject "fake" metadata into your image. Also note that your injected metadata should reflect e.g., the true base magnification and microns per pixel of the original image. Please let me know if you have additional issues. |
Thank's for the answer! Actually it's not exactly the same problem since the
Do you where the error may come from? |
Hi @bsauty. What file format is your image? ome-tiff? |
getting the same error, what can be a workaround for it? output of tifftools dump file_path:
related errorlog:
I tried adding base_mag=40x in config_v2.1.ini but it did not help |
Hi @Himanshunitrr , It seems your problematic image has a .tiff file format but does not have an ImageDescription header. I would recommend the solution suggested above: #304 (comment) to inject the missing metadata into your image. |
It's |
Okay, thanks. In that case it seems like ImageDescription does not contain the required metadata for HistoQC to run correctly. I would again recommend "spoofing" the Aperio format by following the above tutorial. You may want to hold on to the xml namespace stuff which currently populates the ImageDescription. |
Hi i downloaded ovarian cancer tissue svs files from public imaging portal and try to run histoqc
python3 -m histoqc -c first *.svs
but i encounter this error
any idea what is wrong and how to work around it?
The text was updated successfully, but these errors were encountered: