Closed gwaybio closed 4 years ago
Are you working off of CP151 data? Older batches don't have those measurements.
We could add in for this step (as well as the PLLS and saturation plots) a logic that says if those columns can't be found then skip that unit in case a user accidentally removes those measurements from the CP pipeline?
Are you working off of CP151 data?
Yep
We could add in for this step (as well as the PLLS and saturation plots) a logic that says if those columns can't be found then skip that unit in case a user accidentally removes those measurements from the CP pipeline?
I am 100% for this strategy. In general, I'm a tad bit concerned that these QC scripts will fail out if CellProfiler output updates. This is exactly what I was trying to adapt to in the beginning! I will add the checks in #39
Are you working off of CP151 data?
Yep
There are Correlation_Correlation_
columns in all the Image.csv
files output by CP for all the CP151 data, so we need to take another look at the creation of the image_df?
Oops! I take that back. They are there for CP151A2 and B2 but not for A1 and B1. So sorry about the confusion.
They should be in all future batches, but adding in the check if column exists should solve the issue now and in the future :)
Got it! Super helpful comments
I add column checks in eff296e32402fb92981d544c2fccc3eeadbc1eaf. I can also confirm that the code runs in the other wells when Correlation_Correlation_
is present
The following code block is giving me problems to reproduce š (copied in full below as well)
https://github.com/broadinstitute/pooled-cell-painting-profiling-recipe/blob/6ff26253d6d653f012878ee16a82ad34c089bf53/0.preprocess-sites/4.image-and-segmentation-qc.py#L459-L479
In #39 I move the
image.csv
processing away from4.image-and-segmentation-qc.py
into an earlier step. In this way we are able to propagate important column metadata through in earlier files. This makes things way less fragile.Anyways, in the new
image.csv
processing, I am not finding any columns containing the string "CorrelationCorrelation". Because we're missing that string, this code block fails.edit to incude error message (my bad for not including in the first place)