Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New cyto tool: create cell locations file (#257)
* Init * cmdline tool * Cleanup * use fire * output is optional * fix sqlite fixture * refactor * files are optional * Typo * cleanup * drop comments * create test fixtures * checks * fix paths * Use fixtures * yield * download file if needed * typo * Update req * use boto3 session * Test s3 locations * skip s3 test * dtypes * Add mike's snipper * use mike's format * tests pass * use method * add alternatives * refactor mike's code * cleanup * better tests * cleanup * overwrite is an option, other cleanup * Update pycytominer/cyto_utils/cell_locations.py Co-authored-by: Gregory Way <[email protected]> * add docs * Add deps * Move to setup * add fire to deps * use pathlib * Add pip install .[cell_locations] (+formatting) * Update docs + fix typo in actions * Use as module * Formatting * add cell_locations * Merge in SQL * Update README.md Co-authored-by: Dave Bunten <[email protected]> * Update .github/workflows/codecov.yml Co-authored-by: Dave Bunten <[email protected]> * Update .github/workflows/python-app.yml Co-authored-by: Dave Bunten <[email protected]> * Update pycytominer/tests/test_data/cell_locations_example_data/test_cell_locations.sh Co-authored-by: Dave Bunten <[email protected]> * Update pycytominer/tests/test_data/cell_locations_example_data/test_cell_locations.sh Co-authored-by: Dave Bunten <[email protected]> * Update pycytominer/tests/test_cyto_utils/test_cell_locations.py Co-authored-by: Dave Bunten <[email protected]> * Update pycytominer/cyto_utils/cell_locations.py Co-authored-by: Dave Bunten <[email protected]> * Update pycytominer/cyto_utils/cell_locations.py Co-authored-by: Dave Bunten <[email protected]> * Update pycytominer/tests/test_cyto_utils/test_cell_locations.py Co-authored-by: Dave Bunten <[email protected]> * Update pycytominer/tests/test_cyto_utils/test_cell_locations.py Co-authored-by: Dave Bunten <[email protected]> * Address various comment * To address this warning below: pycytominer/tests/test_cyto_utils/test_cell_locations.py::test_shape_and_columns[cell_loc1] /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pandas/io/sql.py:1405: RemovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) return self.connectable.execution_options().execute(*args, **kwargs) * use sqlalchemy * More comments and switch to boto3.client * Be explicit about anon; fix indentation bug * explicit types * Address various comment * Move gitignore entries to the top level * rename files, add docs * Upgrade to python 3.10 * refactor _load_single_cell * fix type * test on highest build version * explain warning * s3 is an attribute * compact check * Update README.md Co-authored-by: Dave Bunten <[email protected]> * fix typo + more docs * black cells.py * trim code * black * Skip test * docs * dtypes * skip test * Fix test * Add docs --------- Co-authored-by: Gregory Way <[email protected]> Co-authored-by: Dave Bunten <[email protected]>
- Loading branch information