Scripts for preparing datasets compatible with cell-feature-explorer
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.
Create a conda env called cellbrowser-tools.
conda install -c conda-forge numcodecs imagecodecs
Clone the repo.
pip install -e .
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.
Workflow:
-
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. -
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
-
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
-
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 >> -
At actual deploy time, update the files in https://github.com/AllenInstitute/cell-feature-data cell-feature-analysis.json cell-line-def.json
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