Giter Site home page Giter Site logo

adyprat / smorph Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swanandlab/smorph

0.0 0.0 0.0 24.26 MB

Automated morphological analysis for cells

Home Page: https://doi.org/10.1242/jcs.258430

License: GNU General Public License v3.0

Python 8.46% Jupyter Notebook 91.54%

smorph's Introduction

SMorph

This library automates the morphological analysis of cells and classify different subgroups based on the extracted morphometric parameters.

  • The notebook single_cell_analysis.ipynb includes the morpholgy analysis to explore various morphological parameters of a single cell.

Published Version

Please note that this is an update to the initial published version. If you prefer to use the published version please redirect to following commit hyperlink.

  • Follow the instructions there to setup and run the published version.

Git Commit ID: bc8a1cc20d66eca755cb1f0621a4df72ca665bda

Please note that the published version is not packaged as a library.


Latest version usage

Quickstart

The package can be easily used in local and Colaboratory environment.

Colaboratory

Just go to following for:

  • Single cell analysis: Open in Colab

  • Group Cells analysis: Open in Colab

You'll have to upload you data to Colaboratory environment either directly to session storage or to your Google Drive.

Instructions for linking your Google Drive dataset:

  • Either select Mount Drive from sidebar Files browser or manually execute the following code in a cell.
from google.colab import drive
drive.mount('/content/drive')
  • After completing the authorization, paste the authorization code in the input.

  • After confirmation, refresh the Files sidebar. Your drive would now be visible in it.

  • Follow the same instructions in the following Usage instructions for organization of your data.


The same notebook can also run on your local environment.

Installation from source

The code has been tested for Python 3.7.11 and above, if you don't have it installed, please download the binaries from here and follow the installation guide.

SMorph uses Poetry package manager. Use the package manager pip to install Poetry. And install the dependencies by typing following in the command line:

pip install -r requirements.txt
poetry install

If the above commands throw errors on windows, please try:

python -m pip install -r requirements.txt
poetry install

Setup for analysis on local environment

To run the notebooks, execute following from command line and locate to the desired notebook using browser.

poetry shell
jupyter notebook

If the above command throw errors on windows, please try:

poetry shell
python -m notebook

Usage

Group analysis

  • Place your image data folders inside the Datasets folder, with each group's images organized in their respective folders.

  • Run the analysis by replacing the value of groups_folders variable in group_analysis.ipynb with path to each of your cell groups.

Single cell analysis

  • Run the analysis by replacing the value of cell_image variable in single_cell_analysis.ipynb with path to your cell image.

Help & Support


References

If you use this code and find it useful, we kindly ask that you please cite

Parul Sethi, Garima Virmani, Kushaan Gupta, Surya Chandra Rao Thumu, Narendrakumar Ramanan, Swananda Marathe. Automated morphometric analysis with SMorph software reveals plasticity induced by antidepressant therapy in hippocampal astrocytes. J Cell Sci 15 June 2021; 134 (12): jcs258430 https://doi.org/10.1242/jcs.258430

smorph's People

Contributors

adyprat avatar kushaangupta avatar parulsethi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.