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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pairsnp-0.0.7.tar.gz
(4.0 kB
view details)
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 pairsnp-0.0.7.tar.gz.
File metadata
- Download URL: pairsnp-0.0.7.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
591f395c59d91056882f0b349c201b2d708a093d6b6ffd3c2ee34aed8767ee98
|
|
| MD5 |
7f6b26ed596195fc9ce82ce1271929da
|
|
| BLAKE2b-256 |
1bf1d229d96eff9acb851514f0bd9fb808fb0c36cf505f6896f8937f88b164e2
|
File details
Details for the file pairsnp-0.0.7-py3-none-any.whl.
File metadata
- Download URL: pairsnp-0.0.7-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35b68ed41de00589ada073fe87799c521d2b1e14f48423b7dbf098095e6c4e9b
|
|
| MD5 |
cd1fb41b57cd8e6829cba32f174923db
|
|
| BLAKE2b-256 |
baa0857046b4e157d86a542258f24062532c7ec27a0f092e4a4e46128394b47f
|