Metadata-Version: 2.4
Name: metachrome
Version: 1.0.0
Summary: Metaphase Chromosome Analysis with Napari
Home-page: https://github.com/yourusername/metachrome
Author: Md Abdul Kader Sagar
Author-email: Md Abdul Kader Sagar <sagarm2@nih.gov>
Maintainer-email: Md Abdul Kader Sagar <sagarm2@nih.gov>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/metachrome
Project-URL: Repository, https://github.com/yourusername/metachrome
Project-URL: Documentation, https://github.com/yourusername/metachrome#readme
Project-URL: Bug Tracker, https://github.com/yourusername/metachrome/issues
Keywords: chromosome,analysis,napari,bioinformatics,image-processing
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Scientific/Engineering :: Image Processing
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: napari>=0.4.0
Requires-Dist: numpy>=1.20.0
Requires-Dist: pandas>=1.3.0
Requires-Dist: scikit-image>=0.18.0
Requires-Dist: scipy>=1.7.0
Requires-Dist: matplotlib>=3.3.0
Requires-Dist: magicgui>=0.2.0
Requires-Dist: qtpy>=1.9.0
Requires-Dist: superqt>=0.2.0
Requires-Dist: cellpose>=2.0.0
Requires-Dist: Pillow>=8.0.0
Provides-Extra: dev
Requires-Dist: pytest>=6.0; extra == "dev"
Requires-Dist: pytest-cov>=2.0; extra == "dev"
Requires-Dist: black>=21.0; extra == "dev"
Requires-Dist: flake8>=3.8; extra == "dev"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# Metaphase Chromosome Analysis with Napari

This repository contains code for analyzing metaphase chromosomes using the [Napari](https://napari.org/stable/) 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:

```bash
pip install metachrome
```

After installation, you can run the application with:
```bash
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:

```bash
python install.py
```

This will automatically install all dependencies and the package in development mode.

#### Manual Installation

#### Windows:
```powershell
# 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:
```bash
# 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](https://www.anaconda.com/products/individual) 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:
    ```bash
    conda create -y -n napari-env -c conda-forge python=3.10
    ```

2. Activate the newly created environment:
    ```bash
    conda activate napari-env
    ```

3. Install Napari and the required dependencies (PyQt):
    ```bash
    conda install -c conda-forge napari pyqt
    ```

4. Install additional libraries required for analysis:
    ```bash
    conda install -c conda-forge magicgui numpy scikit-image scipy matplotlib pandas qtpy
    ```

5. Install Cellpose using pip:
    ```bash
    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:
```powershell
cd path\to\downloaded\folder
python main.py
```

#### Linux:
```bash
cd /path/to/downloaded/folder
python main.py
```


    

For more detailed installation instructions, please refer to the [Napari Installation Guide](https://napari.org/stable/tutorials/fundamentals/installation.html).

## 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.
