Skip to content

allen-cell-animated/cellbrowser-tools

Repository files navigation

cellbrowser-tools

Scripts for preparing datasets compatible with cell-feature-explorer


Description

Compiles a table of FOV and segmented cell data from AICS databases.
Copies images, prepares 3d viewer data, and produces a json database as input to cell-feature-explorer. Results are all contained in one output directory ready to be uploaded for deployment.

Installation

Create a conda env called cellbrowser-tools.

conda install -c conda-forge numcodecs imagecodecs

Clone the repo.
pip install -e .

Documentation

If you have more extensive technical documentation (whether generated or not), ensure they are published to the following address: For full package documentation please visit allen-cell-animated.github.io/cellbrowser-tools.

Quick Start

Workflow:

  1. Prepare environment.
    create a virtualenv and pip install cellbrowser-tools or git clone cellbrowser-tools and pip install . This should result in all necessary dependencies being installed.

  2. Modify a copy of prefs.json to have the proper parameters inside. The most important parameters are the output directories to prevent overwriting old data sets.

Test dataset from csv instead of db query \allen\aics\assay-dev\computational\data\dna_cell_seg_on_production_data\production_run_test\mergedataset\manifest.csv /allen/aics/assay-dev/computational/data/dna_cell_seg_on_production_data/production_run/mergedataset/manifest.csv

  1. Generate dataset. This step will prepare every image, validate the final images, and then compile some aggregations including a csv manifest for deployment and the final CFE input dataset in a json file. run:

    python build_release.py myprefs.json
    
    python build_release.py myprefs.json --step images
    python build_release.py myprefs.json --step validate
    python build_release.py myprefs.json --step featuredata
    python build_release.py myprefs.json --step celllines
    
  2. Upload data: This step is tied to the implementation of Cell-Feature-Explorer. The current strategy is to upload two large directories of files: the OME-TIFF files, and the postprocessed json and png files. To upload the json and png data: set DATASET_VERSION=2.0.0 cd %prefs.out_dir% s3promotion upload --dest-bucket bisque.allencell.org --dest-prefix v%DATASET_VERSION%/ %dataset_constants.THUMBNAILS_DIR%/ Upload of the OME-TIFF files is accomplished by handing the cellviewer-files.csv from step 3 to Gabe, currently. << fill in details here >>

  3. At actual deploy time, update the files in https://github.com/AllenInstitute/cell-feature-data cell-feature-analysis.json cell-line-def.json

Development

See CONTRIBUTING.md for information related to developing the code.

make_images --input_manifest //allen/aics/gene-editing/FISH/2019/chaos/data/raw_merged_ometiff/manifest_cfe_live_for_dan.csv --output_dir //allen/aics/animated-cell/Allen-Cell-Explorer/cellsystems-2021-live --distributed

make_images --input_manifest //allen/aics/assay-dev/computational/data/dna_cell_seg_on_production_data/production_run_test/mergedataset/manifest.csv --output_dir s3://animatedcell-test-data/ or try --output_dir e:\data\cellbrowser-tools\test for local testing

make_images --input_manifest //allen/aics/animated-cell/Dan/datasets/drug_pilot/drug_cell_meta_pilot_Danhandoff2023.csv --output_dir s3://animatedcell-test-data/ --distributed

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published