Skip to content

aksagar/MetaChromeTool2024

Repository files navigation

Metaphase Chromosome Analysis with Napari

This repository contains code for analyzing metaphase chromosomes using the Napari platform. The code is tailored for visualization, segmentation, and quantitative analysis of chromosome images, with integrated tools for centromere detection and CENP-A level measurement.

Description

This project uses Napari for analyzing metaphase chromosome images. It enables users to:

  • Visualize and segment chromosome structures.
  • Detect centromeres and measure CENP-A levels within metaphase chromosome regions.
  • Perform quantitative analysis of chromosome features.

Installation Instructions

To set up the environment and run Napari for chromosome analysis, follow these steps:

Step 1: Download the Repository

First, download all the files from the GitHub directory and navigate to the downloaded folder. You can do this by using the following commands:

Windows:

# Navigate to the directory where you want to download the repository
cd path\to\your\directory

# Clone the repository
git clone <repository_url>

# Navigate to the downloaded directory
cd <repository_name>

Linux:

# Navigate to the directory where you want to download the repository
cd /path/to/your/directory

# Clone the repository
git clone <repository_url>

# Navigate to the downloaded directory
cd <repository_name>

Alternatively, if you downloaded the repository as a ZIP file, extract it and navigate to the extracted folder.

Step 2: Install Anaconda

Before beginning, ensure that Anaconda is installed on your machine. You can download it from the official Anaconda website.

Step 3: Create and Activate a Conda Environment

After launching Anaconda, follow the steps below to create a new environment and install the necessary packages for Napari.

  1. Create a new environment with Python 3.10:

    conda create -y -n napari-env -c conda-forge python=3.10
  2. Activate the newly created environment:

    conda activate napari-env
  3. Install Napari and the required dependencies (PyQt):

    conda install -c conda-forge napari pyqt
  4. Install additional libraries required for analysis:

    conda install -c conda-forge magicgui numpy scikit-image scipy matplotlib pandas qtpy
  5. Install Cellpose using pip:

    pip install cellpose

Step 4: Navigate to the Downloaded Folder and Run the Program

After installing the necessary dependencies, navigate to the folder where you downloaded the code and launch the program. To verify that you are in the correct folder, ensure that the directory contains the main.py file along with other required files.

Windows:

cd path\to\downloaded\folder
python main.py

Linux:

cd /path/to/downloaded/folder
python main.py

For more detailed installation instructions, please refer to the Napari Installation Guide.

Usage

Once Napari is installed and running, you can load your metaphase chromosome images and use the provided tools for chromosome segmentation, centromere detection, and CENP-A level analysis. For further assistance, please refer to the documentation within the code or contact the author.


Feel free to contribute by submitting issues or pull requests. Your feedback is valuable for improving the analysis tools.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages