{"name":"cell-AAP","display_name":"cell-AAP","visibility":"public","icon":"","categories":[],"schema_version":"0.1.0","on_activate":null,"on_deactivate":null,"contributions":{"commands":[{"id":"cell-AAP.run","title":"Create GUI","python_name":"cell_AAP.napari.main:create_cellAAP_widget","short_title":null,"category":null,"icon":null,"enablement":null}],"readers":null,"writers":null,"widgets":[{"command":"cell-AAP.run","display_name":"cell-AAP","autogenerate":false}],"sample_data":null,"themes":null,"menus":{},"submenus":null,"keybindings":null,"configuration":[]},"package_metadata":{"metadata_version":"2.1","name":"cell-AAP","version":"0.0.3","dynamic":null,"platform":null,"supported_platform":null,"summary":null,"description":"# cellular-Automated Annotation Pipeline\nUtilities for the semi-automated generation of instance segmentation annotations to be used for neural network training. Utilities are built ontop of [UMAP](https://github.com/lmcinnes/umap), [HDBSCAN](https://arxiv.org/abs/1911.02282) and a finetuned encoder version of FAIR's [Segment Anything Model](https://github.com/facebookresearch/segment-anything/tree/main?tab=readme-ov-file) developed by Computational Cell Analytics for the project [micro-sam](https://github.com/computational-cell-analytics/micro-sam/tree/master/micro_sam/sam_annotator). In addition to providing utilies for annotation building, we train a network, FAIR's [detectron2](https://github.com/facebookresearch/detectron2) to \n1. Demonstrate the efficacy of our utilities. \n2. Be used for microscopy annotation of supported cell lines \n\nSupported cell lines currently include:\n1. HeLa\n\nIn development cell lines currently include:\n1. U2OS\n2. HT1080\n3. Yeast\n\nWe've developed a napari application for the usage of this pre-trained network and propose a transfer learning schematic for the handling of new cell lines. \n\n\n\n# Installation \nWe highly recommend installing cell-AAP in a clean conda environment. To do so you must have [miniconda](https://docs.anaconda.com/free/miniconda/#quick-command-line-install) or [anaconda](https://docs.anaconda.com/free/anaconda/) installed.\n\nIf a conda distribution has been installed:\n\n1. Create and activate a clean environment \n\n conda create -n cell-aap-env\n conda activate cell-app-env\n\n2. Within this enviroment install pip\n\n conda install pip\n\n3. Then install cell-AAP from PyPi\n\n pip install cell-AAP==0.0.3\n\n4. Finally detectron2 must be built from source, atop cell-AAP\n \n #For MacOS\n CC=clang CXX=clang++ ARCHFLAGS=\"-arch arm64\" python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'\n\n #For other operating systems \n python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'\n\n\n\n# Napari Plugin Usage\n\n1. To open napari simply type \"napari\" into the command line, ensure that you are working the correct environment\n2. To instantiate the plugin navigate to the \"Plugins\" menu and select \"cell-AAP\"\n3. You should now see the Plugin, where you can select an image, display it, and run inference on it. \n\n\n# Configs Best Practices\n\nIf running inference on large volumes of data, i.e. timeseries data >= 300 MB in size, we recommed to procceed in the following manner. \n\n1. Assemble a small, < 100 MB, substack of your data using python or a program like [ImageJ](https://imagej.net/ij/download.html)\n2. Use this substack to find the optimal parameters for your data, (Number of Cells, Confidence)\n3. Run Inference over the volume using the discovered optimal parameters\n\nNote: Finding the optimal set of parameters requires some trial and error, to assist we've created a table. \n\n| Classifications $\\Downarrow$ Detections $\\Rightarrow$ | **Too few** | **Too many** |\n|----------------------------|----------------------------------------|------------------------------------------|\n| **Dropping M-phase** | Confidence $\\Downarrow$
Number of Cells $\\Uparrow$ | Confidence $\\Downarrow$
Number of cells $\\Downarrow$ |\n| **Missclasifying M-phase** | Confidence $\\Uparrow$
Number of Cells $\\Uparrow$ | Confidence $\\Uparrow$
Number of Cells $\\Downarrow$ |\n\n\n\n\n\n\n\n\n\n\n\n","description_content_type":"text/markdown","keywords":null,"home_page":null,"download_url":null,"author":"Anish Virdi","author_email":null,"maintainer":null,"maintainer_email":null,"license":null,"classifier":["Framework :: napari","Programming Language :: Python :: 3"],"requires_dist":["napari[all] >=0.4.19","numpy >=1.26.4","opencv-python >=4.9.0","tifffile >=2024.2.12","torch >=2.3.0","torchvision >=0.18.0","scikit-image >=0.22.0","qtpy >=2.4.1","pillow >=10.3.0","scipy >=1.3.0"],"requires_python":">=3.8","requires_external":null,"project_url":null,"provides_extra":null,"provides_dist":null,"obsoletes_dist":null},"npe1_shim":false}