Metadata-Version: 2.2
Name: snplib
Version: 1.0.7
Summary: Snptools is a tool for Single Nucleotide Polymorphism (SNP) data processing
Author-email: Igor <igor.loschinin@gmail.com>
License: GNU
Project-URL: Homepage, https://github.com/IgorekLoschinin/snptools
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.26.1
Requires-Dist: pandas>=2.1.1
Requires-Dist: six>=1.16.0
Requires-Dist: swifter>=1.4.0
Requires-Dist: xlrd>=2.0.1
Requires-Dist: XlsxWriter>=3.1.9
Requires-Dist: openpyxl>=3.1.2
Requires-Dist: pydantic>=2.4.2
Requires-Dist: pytest>=7.4.2

# snptools

**Snptools** is a tool for SNP (Single Nucleotide Polymorphism) data processing, 
parentage calculation and call rate estimation.

## Introduction

SNP (Single Nucleotide Polymorphism) represent genetic variations, that can 
be used to analyze genetic data. SNPTools provides a set of tools for working 
with SNP data, including the following capabilities:

- SNP data processing - FinalReport.
- Parentage Verification and Parentage Discovery Based on SNP Genotypes (ICAR). 
- Call rate estimation (percentage of missing data).
- Processing and preparation of data in plink formats.

## Installation

To install SNPTools, follow the steps below:

1. Clone the repository into your project directory:
   ```
   git clone https://github.com/yourusername/snpTools.git
   ```
2. Set dependencies:
   ```
   pip install -r requirements.txt
   ```
3. Use SNPTools:
   ```
   import snptools
   ```

or 

You can install snptools via pip from [PyPI](https://pypi.org/project/snplib/):
```
pip install snplib
```


## Usage
Snptools provides commands for a variety of operations. Here are examples of 
usage:

#### SNP data processing:
```
from snptools import FinalReport
```

#### Computation of parentage:
```
from snptools import Discovery, Verification
```

#### Preparation format files:
```
from snptools import (
   Snp, make_fam, make_ped, make_lgen, make_map
)
```

#### Stat:
```
from snptools import (
   hwe, hwe_test, call_rate, allele_freq, minor_allele_freq
)
```

## Documentation
Detailed documentation on how to use SNPTools is available see the [docs](./docs/_build/index.html).

## License
This project is licensed under the GNU General Public License - see the 
LICENSE file for details.
