-
Notifications
You must be signed in to change notification settings - Fork 73
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
Density plot gate does not respect filter #290
Comments
Unfortunately filters and gates behave independently, and we currently don't have an easy pathway to making them co-operate in this manner. It'd be nice to have in the future, but since that'd be an extensive rewrite I'm not sure if/when it'd happen. As a workaround, you might want to try building a SQL filter which combines the two and adding that into the .properties file. |
I see, thank you! I have tried this but was not able to successfully convert the gate to a SQL filter manually. I arrive at same error message as in #243. Could you or someone else provide a working example of such a .properties file? |
The default .properties file should already have some SQL filters inside, but commented out. You could check those. |
Yes, I commented in the example filters but arrived at same error message, pasted below. An error occurred in the program: Traceback (most recent call last): |
It looks like there's something very wrong with that filter, what exactly is it supposed to be doing? |
It's the example filters from the default .properties file generated by Cellprofiler. filter_SQL_EMPTY = SELECT TableNumber, ImageNumber FROM CPA_per_image, Well_ID_Table WHERE CPA_per_image.well=Well_ID_Table.well AND Well_ID_Table.Gene="EMPTY" and filter_SQL_CDKs = SELECT TableNumber, ImageNumber FROM CPA_per_image, Well_ID_Table WHERE CPA_per_image.well=Well_ID_Table.well AND Well_ID_Table.Gene REGEXP 'CDK.*' Selecting either one of them gives the error. |
Ah, I see. The example filters won't work straight off for any database, yours probably doesn't have a table called "CPA_per_image" and an extra table mapping wells to genes. I meant to point to those as an example of syntax rather than commands that'd work without editing. If you could post the "create filter" window setup you used to make your filter, and the parameters for your gate, perhaps that'd be a better approach to figuring out how to combine the two. |
When displaying data in density plot tool and applying a filter (in my case to examine the objects from only one image in a database containing multiple images by applying a metadata filter) and creating a gate, the gate is applied to the entire population, disregarding the filter.
Is there some workaround to this?
Thank you!
The text was updated successfully, but these errors were encountered: