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.
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.
To set up the environment and run Napari for chromosome analysis, follow these steps:
First, download all the files from the GitHub directory and navigate to the downloaded folder. You can do this by using the following commands:
# 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>
# 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.
Before beginning, ensure that Anaconda is installed on your machine. You can download it from the official Anaconda website.
After launching Anaconda, follow the steps below to create a new environment and install the necessary packages for Napari.
-
Create a new environment with Python 3.10:
conda create -y -n napari-env -c conda-forge python=3.10
-
Activate the newly created environment:
conda activate napari-env
-
Install Napari and the required dependencies (PyQt):
conda install -c conda-forge napari pyqt
-
Install additional libraries required for analysis:
conda install -c conda-forge magicgui numpy scikit-image scipy matplotlib pandas qtpy
-
Install Cellpose using pip:
pip install cellpose
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.
cd path\to\downloaded\folder
python main.py
cd /path/to/downloaded/folder
python main.py
For more detailed installation instructions, please refer to the Napari Installation Guide.
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.