Usage
Generates image embeddings of immunofluorescent labeled images from the Human Protein Atlas that were downloaded by the cellmaps_imagedownloader package.
In a project
To use cellmaps_image_embedding in a project:
import cellmaps_image_embedding
On the command line
For information invoke cellmaps_image_embeddingcmd.py -h
Usage
cellmaps_image_embeddingcmd.py [outdir] [--inputdir IMAGEDOWNLOADER_OUT_DIR] [OPTIONS]
Arguments
outdirThe directory where the output will be written to.
Required
--inputdirDirectory with blue, red, yellow, and green image directories (output of cellmaps_image_downloader package).
Optional
--model_pathURL or path to model file for image embedding. If left unspecified then the winning Densenet model from Human Protein Atlas Kaggle Challenge is used
--nameName of this run, needed for FAIRSCAPE. If unset, name value from the directory specified by –inputdir will be used.
--organization_nameName of the organization running this tool, needed for FAIRSCAPE. If unset, the organization name specified in –inputdir directory will be used.
--project_nameName of the project running this tool, needed for FAIRSCAPE. If unset, the project name specified in –input directory will be used.
--foldImage node attribute file fold to use. Default is 1.
--fake_embedderIf set, generate fake embedding.
--dimensionsDimensions of generated embedding vector. Default is 1024.
--suffixSuffix for image files. Default is .jpg.
--logconfPath to the Python logging configuration file in the specified format. Setting this overrides the -v parameter which uses the default logger.
--verbose,-vvIncreases verbosity of logger to standard error for log messages in this module. Logging levels: -v = ERROR, -vv = WARNING, -vvv = INFO, -vvvv = DEBUG, -vvvvv = NOTSET. Default is no logging.
--versionDisplay the version of the package.
Example usage
The output directory for the image downloads is required (see Cell Maps Image Downloader). Optionally, a path to the image embedding model can be provided.
cellmaps_image_embeddingcmd.py ./cellmaps_image_embedding_outdir --inputdir ./cellmaps_imagedownloader_outdir --fold 1
Via Docker
Example usage
Coming soon...