photofitt


Namephotofitt JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/HenriquesLab/photofitt
SummaryPhotoFiTT: Phototoxicity Fitness Time Trial. Python package for assessing phototoxicity in live-cell microscopy experiments.
upload_time2024-07-11 15:30:40
maintainerNone
docs_urlNone
authorM. del Rosario, E. Gómez-de-Mariscal, L. Morgado, R. Portela, G. Jacquemet, P.M. Pereira, R. Henriques
requires_python>=3.10
licenseMIT
keywords phototoxicity cell arrest bioimage analysis cell mitosis live-cell microscopy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![License](https://img.shields.io/github/license/HenriquesLab/PhotoFiTT?color=Green)](https://github.com/HenriquesLab/PhotoFiTT/blob/main/LICENSE.txt)
[![Contributors](https://img.shields.io/github/contributors-anon/HenriquesLab/PhotoFiTT)](https://github.com/HenriquesLab/PhotoFiTT/graphs/contributors)
[![GitHub stars](https://img.shields.io/github/stars/HenriquesLab/PhotoFiTT?style=social)](https://github.com/HenriquesLab/PhotoFiTT/)
[![GitHub forks](https://img.shields.io/github/forks/HenriquesLab/PhotoFiTT?style=social)](https://github.com/HenriquesLab/PhotoFiTT/)


<img src="https://github.com/HenriquesLab/PhotoFiTT/blob/main/docs/logo/photofitt-logo.png" align="right" width="300"/>

# PhotoFiTT: Phototoxicity Fitness Time Trial
A Quantitative Framework for Assessing Phototoxicity in Live-Cell

# General description of the workflow
PhotoFiTT was designed to quantitatively analyse the impact that fluorescence light excitation has in cell behaviour.
PhotoFiTT focuses on three different measurements: (1) Identified pre-mitotic cells, (2) Cell size dynamics and (3) Cell activity.
These are the steps to follow to replicate the analysis: 
### Deep learning based analysis
Follow these steps to detect cells and pre-mitotic rounding events in the data.
1. Cell Detection and Quantification (deep learning-based image analysis: This processing is only applied to the first time point of each video.
   - Virtual Staining: Use ZeroCostDL4Mic/DL4MicEverywhere Pix2Pix notebook to train a virtual staining model that infers cell nuclei. Analyse the first frame of each video.
   - Nuclei Segmentation: Use ZeroCostDL4Mic/DL4MicEverywhere 2D StarDist notebook to apply the pretrained StarDist-versatile model to segment individual nuclei in the virtually stained images.
   - Initial Cell Quantification: Count the number of detected nuclei (Use notebook `XXXXX.ipnynb` to generate a CSV file with the counts). The number of detected nuclei serves as the baseline cell count for each field of view, enabling tracking of population dynamics over time.
2. Pre-mitotic Cell Identification (deep learning-based image analysis):
   - For CHO cells imaged with brightfield, you can use our trained StarDist model. Otherwise, manually annotate a representative image set and train a new StarDist model using the corresponding ZeroCostDL4Mic/DL4MicEverywhere notebooks.
### Image data Analysis
1. Cell Size Analysis and Classification `XXXXX.ipnynb`
2. Quantification of Cellular Activity `XXXXX.ipnynb`



## Data structure

1. The masks and the raw input, should be equally organised by folders, each folder for each condition to be analysed in a hierarchical manner.
   For example:
      ```
       -Raw-images (folder)
       |
       |--Biological-replica-date-1 (folder) [Subcaegory-00]
           |
           |--Cell density / UV Ligth / WL 475 light [Subcategory-01] 
              |
              |-- control-condition (folder) [Subcategory-02] 
              |    |  file1.tif
              |    |  file2.tif
              |    |  ...
              |
              |-- condition1 (folder) [Subcategory-02] 
              |    |  file1.tif
              |    |  file2.tif
              |    |  ...
              |
              |-- condition2 (folder) [Subcategory-02] 
              |    |  file1.tif
              |    |  file2.tif
              |    |  ...
           |
           |--Cell density / UV Ligth / WL 475 light [Subcategory-01]
           ...
       -Masks (folder)
       |
       |--Biological-replica-date-1 (folder) [Subcaegory-00]
           |
           |--Cell density / UV Ligth / WL 475 light [Subcategory-01] 
              |
              |-- control-condition (folder) [Subcategory-02] 
              |    |  file1.tif
              |    |  file2.tif
              |    |  ...
              |
              |-- condition1 (folder) [Subcategory-02] 
              |    |  file1.tif
              |    |  file2.tif
              |    |  ...
              |
              |-- condition2 (folder) [Subcategory-02] 
              |    |  file1.tif
              |    |  file2.tif
              |    |  ...
           |
           |--Cell density / UV Ligth / WL 475 light [Subcategory-01]
           ...
      ```
      
# Package installation
- The code provides an `environment.yaml` file to create a conda environment with all the dependencies needed.
  Place your terminal in the `photofitt` folder. Use either conda or mamba:
  ```
  git clone https://github.com/HenriquesLab/photofitt.git
  cd photofitt
  mamba env create -f environment.yml  
  mamba activate photofitt
  ```

- **ONCE PUBLISHED** You can now install the package using pip install or conda as follows:
  
  - ```
    pip install photofitt
    ```
    or
  - 
    ```
    conda install photofitt
    ```
- **Meanwhile**:

  - ```
    git clone https://github.com/HenriquesLab/photofitt.git
    cd photofitt
    python setup.py
    ```
    or
  - ```
    git clone https://github.com/HenriquesLab/photofitt.git
    cd photofitt
    pip install .
    ```
    or
  - ```
    git clone https://github.com/HenriquesLab/photofitt.git
    cd photofitt
    conda build conda-recipe/meta.yaml
    ```

## Common error messages
- Error messages with `lxml`. 
Most probably you need to update developers tools in your system. Before anything, run in Mac M1:
  - 
      ```
      xcode-select --install
      ```
- If you were in Linux, you can run 
  - ```
    sudo apt-get update
    sudo apt-get install libxml2-dev libxslt-dev python-dev
    ```




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/HenriquesLab/photofitt",
    "name": "photofitt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "phototoxicity, cell arrest, bioimage analysis, cell mitosis, live-cell microscopy",
    "author": "M. del Rosario, E. G\u00f3mez-de-Mariscal, L. Morgado, R. Portela, G. Jacquemet, P.M. Pereira, R. Henriques",
    "author_email": "mrosario@igc.gulbenkian.pt, egomez@igc.gulbenkian.pt, rjhenriques@igc.gulbenkian.pt",
    "download_url": "https://files.pythonhosted.org/packages/96/6e/b49b1d3cd51c70ae094e769a26b84627c53492216493e1b8cf9f82abebf2/photofitt-1.0.1.tar.gz",
    "platform": null,
    "description": "[![License](https://img.shields.io/github/license/HenriquesLab/PhotoFiTT?color=Green)](https://github.com/HenriquesLab/PhotoFiTT/blob/main/LICENSE.txt)\n[![Contributors](https://img.shields.io/github/contributors-anon/HenriquesLab/PhotoFiTT)](https://github.com/HenriquesLab/PhotoFiTT/graphs/contributors)\n[![GitHub stars](https://img.shields.io/github/stars/HenriquesLab/PhotoFiTT?style=social)](https://github.com/HenriquesLab/PhotoFiTT/)\n[![GitHub forks](https://img.shields.io/github/forks/HenriquesLab/PhotoFiTT?style=social)](https://github.com/HenriquesLab/PhotoFiTT/)\n\n\n<img src=\"https://github.com/HenriquesLab/PhotoFiTT/blob/main/docs/logo/photofitt-logo.png\" align=\"right\" width=\"300\"/>\n\n# PhotoFiTT: Phototoxicity Fitness Time Trial\nA Quantitative Framework for Assessing Phototoxicity in Live-Cell\n\n# General description of the workflow\nPhotoFiTT was designed to quantitatively analyse the impact that fluorescence light excitation has in cell behaviour.\nPhotoFiTT focuses on three different measurements: (1) Identified pre-mitotic cells, (2) Cell size dynamics and (3) Cell activity.\nThese are the steps to follow to replicate the analysis: \n### Deep learning based analysis\nFollow these steps to detect cells and pre-mitotic rounding events in the data.\n1. Cell Detection and Quantification (deep learning-based image analysis: This processing is only applied to the first time point of each video.\n   - Virtual Staining: Use ZeroCostDL4Mic/DL4MicEverywhere Pix2Pix notebook to train a virtual staining model that infers cell nuclei. Analyse the first frame of each video.\n   - Nuclei Segmentation: Use ZeroCostDL4Mic/DL4MicEverywhere 2D StarDist notebook to apply the pretrained StarDist-versatile model to segment individual nuclei in the virtually stained images.\n   - Initial Cell Quantification: Count the number of detected nuclei (Use notebook `XXXXX.ipnynb` to generate a CSV file with the counts). The number of detected nuclei serves as the baseline cell count for each field of view, enabling tracking of population dynamics over time.\n2. Pre-mitotic Cell Identification (deep learning-based image analysis):\n   - For CHO cells imaged with brightfield, you can use our trained StarDist model. Otherwise, manually annotate a representative image set and train a new StarDist model using the corresponding ZeroCostDL4Mic/DL4MicEverywhere notebooks.\n### Image data Analysis\n1. Cell Size Analysis and Classification `XXXXX.ipnynb`\n2. Quantification of Cellular Activity `XXXXX.ipnynb`\n\n\n\n## Data structure\n\n1. The masks and the raw input, should be equally organised by folders, each folder for each condition to be analysed in a hierarchical manner.\n   For example:\n      ```\n       -Raw-images (folder)\n       |\n       |--Biological-replica-date-1 (folder) [Subcaegory-00]\n           |\n           |--Cell density / UV Ligth / WL 475 light [Subcategory-01] \n              |\n              |-- control-condition (folder) [Subcategory-02] \n              |    |  file1.tif\n              |    |  file2.tif\n              |    |  ...\n              |\n              |-- condition1 (folder) [Subcategory-02] \n              |    |  file1.tif\n              |    |  file2.tif\n              |    |  ...\n              |\n              |-- condition2 (folder) [Subcategory-02] \n              |    |  file1.tif\n              |    |  file2.tif\n              |    |  ...\n           |\n           |--Cell density / UV Ligth / WL 475 light [Subcategory-01]\n           ...\n       -Masks (folder)\n       |\n       |--Biological-replica-date-1 (folder) [Subcaegory-00]\n           |\n           |--Cell density / UV Ligth / WL 475 light [Subcategory-01] \n              |\n              |-- control-condition (folder) [Subcategory-02] \n              |    |  file1.tif\n              |    |  file2.tif\n              |    |  ...\n              |\n              |-- condition1 (folder) [Subcategory-02] \n              |    |  file1.tif\n              |    |  file2.tif\n              |    |  ...\n              |\n              |-- condition2 (folder) [Subcategory-02] \n              |    |  file1.tif\n              |    |  file2.tif\n              |    |  ...\n           |\n           |--Cell density / UV Ligth / WL 475 light [Subcategory-01]\n           ...\n      ```\n      \n# Package installation\n- The code provides an `environment.yaml` file to create a conda environment with all the dependencies needed.\n  Place your terminal in the `photofitt` folder. Use either conda or mamba:\n  ```\n  git clone https://github.com/HenriquesLab/photofitt.git\n  cd photofitt\n  mamba env create -f environment.yml  \n  mamba activate photofitt\n  ```\n\n- **ONCE PUBLISHED** You can now install the package using pip install or conda as follows:\n  \n  - ```\n    pip install photofitt\n    ```\n    or\n  - \n    ```\n    conda install photofitt\n    ```\n- **Meanwhile**:\n\n  - ```\n    git clone https://github.com/HenriquesLab/photofitt.git\n    cd photofitt\n    python setup.py\n    ```\n    or\n  - ```\n    git clone https://github.com/HenriquesLab/photofitt.git\n    cd photofitt\n    pip install .\n    ```\n    or\n  - ```\n    git clone https://github.com/HenriquesLab/photofitt.git\n    cd photofitt\n    conda build conda-recipe/meta.yaml\n    ```\n\n## Common error messages\n- Error messages with `lxml`. \nMost probably you need to update developers tools in your system. Before anything, run in Mac M1:\n  - \n      ```\n      xcode-select --install\n      ```\n- If you were in Linux, you can run \n  - ```\n    sudo apt-get update\n    sudo apt-get install libxml2-dev libxslt-dev python-dev\n    ```\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "PhotoFiTT: Phototoxicity Fitness Time Trial. Python package for assessing phototoxicity in live-cell microscopy experiments.",
    "version": "1.0.1",
    "project_urls": {
        "Download": "https://github.com/HenriquesLab/photofitt/archive/refs/tags/v1.0.0.tar.gz",
        "Homepage": "https://github.com/HenriquesLab/photofitt"
    },
    "split_keywords": [
        "phototoxicity",
        " cell arrest",
        " bioimage analysis",
        " cell mitosis",
        " live-cell microscopy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "966eb49b1d3cd51c70ae094e769a26b84627c53492216493e1b8cf9f82abebf2",
                "md5": "39bdb03e87738564d7e0ef05abfc7fc7",
                "sha256": "a0afcbde1cc66a77915d3553f22f471af6ea9fadde8a9d9c1c1a8494d4784466"
            },
            "downloads": -1,
            "filename": "photofitt-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "39bdb03e87738564d7e0ef05abfc7fc7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 26846,
            "upload_time": "2024-07-11T15:30:40",
            "upload_time_iso_8601": "2024-07-11T15:30:40.738972Z",
            "url": "https://files.pythonhosted.org/packages/96/6e/b49b1d3cd51c70ae094e769a26b84627c53492216493e1b8cf9f82abebf2/photofitt-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-11 15:30:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "HenriquesLab",
    "github_project": "photofitt",
    "github_not_found": true,
    "lcname": "photofitt"
}
        
Elapsed time: 0.51687s