-
Notifications
You must be signed in to change notification settings - Fork 11
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
Running a single sample #177
Comments
Dear @gjbaker , I figured out what is happening. It has nothing to do with it being a single sample. the [0] calls the channel name with index 0, the issue in my case is that I am excluding 5 channels, and therefore the lowest channel number has the index 5. So when I try to call the [0] it cannot find any and it runs into a KeyError. I also have another problem which is that my nuclear stain is not on the first channel, it is actually the last channel. This means that .min() would still not work for me. Do you think I could be an easy way for me to specify the channel name as a string in the config.yml? This would be nice. Best, |
Hi @josenimo, The line of code you shared looks for the name of the channel with the lowest index in the I assume you are using the A relatively easy work around for your counterstain channel being the last channel in the image is to reassign the Regarding your earlier question about the form and function of Hope this helps, |
Hey @gjbaker , I am hard-coding a specific channel name to the my counterstain. Thank you again, |
Hi @josenimo, Assuming you are on a Mac, all one would have to do is update the -Greg |
Hey @gjbaker , thank you, I had never hacked into my conda environments :) I noticed that the channel being loaded was still being the first one, Thanks again, I will close the issue now. |
Hey @gjbaker ,
Thank you for this amazing tool, a couple of questions regarding Cylinter.
I am running MCMICRO using mesmer, so I have to adapt a little bit to conform the input file structure.
First, what is the structure of the seg files, I remember that these come from the S3segmenter QC folder. from I could explore, the file is made up of two channels, the first channel being a binary segmentation mask, 0 for background, and 42594 for foreground. The inside of the cells is also 0, meaning the cells are not filled (as I would expect). The second channel seems to be the nuclear channel used for the segmentation step.
How critical is this file? I will try to replicate exactly what I find in the example files. Any detail that matters for downstream?
Second, can I run a single sample? I am just trying to go through cylinter for a single sample. However a
KeyError: 0
shows up at the aggregateData step, which I assume is not necesary for a single sample. Is there a way to bypass the single sample?StackTrace below:
Config file here, as .txt:
config.txt
Thank you again
Best,
Jose
The text was updated successfully, but these errors were encountered: