Metaphase Chromosome Analysis with Napari
Project description
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
Option 1: Install via pip (Recommended)
The easiest way to install MetaChrome is using pip:
pip install metachrome
After installation, you can run the application with:
metachrome
Option 2: Install from source
To install from the source code, 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:
Quick Installation (Recommended)
If you have Python installed, you can use the provided installation script:
python install.py
This will automatically install all dependencies and the package in development mode.
Manual Installation
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.
-
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metachrome-1.0.0.tar.gz.
File metadata
- Download URL: metachrome-1.0.0.tar.gz
- Upload date:
- Size: 24.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7533285299d90effe6248f3f7c75a1ae86edb3f145d01a81b04fbd877fe60d1d
|
|
| MD5 |
bd75d8e69fe57ac31b11a337145162ab
|
|
| BLAKE2b-256 |
4829326028f4f1e5d9ec94065b17da0b37befd98601396579c3eccb6d449635c
|
File details
Details for the file metachrome-1.0.0-py3-none-any.whl.
File metadata
- Download URL: metachrome-1.0.0-py3-none-any.whl
- Upload date:
- Size: 31.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2973c33cbea4dccc913e9d7d8a86a1dbc94a8848f5b452bf86dfef504ff9f7e
|
|
| MD5 |
b9fb2581863817f9863d1a3075bf6ca9
|
|
| BLAKE2b-256 |
60293b40fff5cddf95bbcb2edea8f2d051e1794398bd628349f86b996644cc91
|