Closed shntnu closed 3 years ago
Hm – actually I don't think the test is correct https://colab.research.google.com/drive/1KitZF-CgV_xgZpd1n0BieQpko-uD4ZQA?usp=sharing
i don't have any idea what that collab notebook means!
@shntnu - this is quickly becoming a pretty critical piece in the lincs cell painting dataset. I'd like to solve it once and for all. see broadinstitute/lincs-cell-painting#60.
Does the notebook mean the test needs to be fixed? Or that the test is showing that the spherize function is incorrect in some way? Does the notebook propose a new test?
In #132, I added a spherize_epsilon
parameter. When we close this issue, we can address this variable here as well.
Sorry for leaving this stray comment without an explanation :D
The notebook shows that this (covariance) matrix will pass the test even though it is not spherized.
But as we discussed, you needn't do more here. The code looks right!
Oh I just noticed this https://github.com/cytomining/pycytominer/issues/127#issuecomment-801467132
nvm – feel free to reopen or use a new issue, as you see fit @gwaygenomics
Spherize
only tests for the defaultepsilon
https://github.com/cytomining/pycytominer/blob/dfd355d748f80c658a85720e9c9bfde7ce58c02c/pycytominer/tests/test_operations/test_transform.py#L21-L40