pairsnp-python
Installation
This is a Python3 version of pairsnp written with the help of Simon Frost
git clone https://github.com/gtonkinhill/pairsnp-python
cd pairsnp-python
pip3 install .
Quick Start
The python version can be run from the python interpreter as
from pairsnp import calculate_snp_matrix, calculate_distance_matrix
sparse_matrix, consensus, seq_names = calculate_snp_matrix(fasta.file.name)
d = calculate_distance_matrix(sparse_matrix, consensus, "dist", False)
alternatively if installed using pip it can be used at the command line as
pairsnp -f /path/to/msa.fasta -o /path/to/output.csv
additional options include
Program to calculate pairwise SNP distance and similarity matrices.
optional arguments:
-h, --help show this help message and exit
-t {sim,dist}, --type {sim,dist}
either sim (similarity) or dist (distance) (default).
-n, --inc_n flag to indicate differences to gaps should be
counted.
-f FILENAME, --file FILENAME
location of a multiple sequence alignment. Currently
only DNA alignments are supported.
-z, --zipped Alignment is gzipped.
-c, --csv Output csv-delimited table (default tsv).
-o OUTPUT, --out OUTPUT
location of output file.
Release files for pairsnp 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pairsnp-0.0.7.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pairsnp-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / pairsnp-0.0.7.tar.gz
| Download URL | pairsnp-0.0.7.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
591f395c59d91056882f0b349c201b2d708a093d6b6ffd3c2ee34aed8767ee98
|
|
BLAKE2b-256 checksum How to use checksums |
1bf1d229d96eff9acb851514f0bd9fb808fb0c36cf505f6896f8937f88b164e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.7
|
Release files / pairsnp-0.0.7-py3-none-any.whl
| Download URL | pairsnp-0.0.7-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35b68ed41de00589ada073fe87799c521d2b1e14f48423b7dbf098095e6c4e9b
|
|
BLAKE2b-256 checksum How to use checksums |
baa0857046b4e157d86a542258f24062532c7ec27a0f092e4a4e46128394b47f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.7
|