Skip to content
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

Add collate.py #160

Merged
merged 23 commits into from
Jun 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ Since the project is actively being developed, with new features added regularly
# Example:
pip install git+git://github.com/cytomining/pycytominer@2aa8638d7e505ab510f1d5282098dd59bb2cb470
```
### CSV collation

If you want to perform data collation inside pycytominer, you will need an extra package; this will change your installation commands slightly
If running your images on a cluster, unless you have a MySQL or similar large database set up then you will likely end up with lots of different folders from the different cluster runs (often one per well or one per site), each one containing an `Image.csv`, `Nuclei.csv`, etc. In order to look at full plates, therefore, we first need to collate all of these CSVs into a single file (currently SQLite) per plate. We currently do this with a library called [cytominer-database](https://github.com/cytomining/cytominer-database).
gwaybio marked this conversation as resolved.
Show resolved Hide resolved

If you want to perform this data collation inside pycytominer using the `cyto_utils` function `collate` (and/or you want to be able to run the tests and have them all pass!), you will need `cytominer-database==0.3.4`; this will change your installation commands slightly
gwaybio marked this conversation as resolved.
Show resolved Hide resolved

```bash
# Example for general case commit:
Expand All @@ -55,6 +58,8 @@ pip install "pycytominer[collate] @ git+git://github.com/cytomining/pycytominer"
pip install "pycytominer[collate] @ git+git://github.com/cytomining/pycytominer@2aa8638d7e505ab510f1d5282098dd59bb2cb470"
```

If using `pycytominer` in a conda environment, you will also want to make sure to add `cytominer-database=0.3.4`to your list of `dependencies`.
gwaybio marked this conversation as resolved.
Show resolved Hide resolved

## Usage

Using pycytominer is simple and fun.
Expand Down