gendiscalpy
Python bindings to GenDisCal and addition of phylogenetic tree function
- GenDisCal repo: https://github.com/LM-UGent/GenDisCal
- GenDisCal paper: https://academic.oup.com/bioinformatics/article/36/8/2337/5695704
Installation
This package was created using Python 3.9.
pip install git+https://github.com/MrTomRod/gendiscalpy
This will add two scripts to your PATH:
- install_gendiscal
- gendiscal_tree
Usage in terminal
install_gendiscal
This script downloads the GenDisCal binary and unpacks it to a path of your choosing.
$ install_gendiscal
Options:
1: /home/user/PycharmProjects/venvs/gendiscalpy10/bin
2: /home/user/miniconda3/condabin
3: /home/user/bin
4: /usr/bin
5: /usr/sbin
Please select a path to install GenDisCal to!
1
You chose: /home/user/PycharmProjects/venvs/gendiscalpy10/bin
Installed GenDiscal here: /home/user/PycharmProjects/venvs/gendiscalpy10/bin/GenDisCal
Now, you should be able to run GenDisCal in your terminal. Test with GenDisCal --version.
gendiscal_tree
Create a phylogenetic tree based on GenDisCal a distance matrix. Returns Newick format.
This script uses the upmga algorithm of the biotite package. See
wikipedia and
biotite docs.
Requires GenDisCal to be in PATH, see also install_gendiscal.
Examples:
gendiscal_tree from_files assembly1.fna assembly2.fna
gendiscal_tree from_files assemblies/*.fna
gendiscal_tree from_files assemblies/*.fna --preset PaSiT6 --method euclidian
Usage as Python class
from gendiscalpy import GenDisCal, GenDisCalTree
from gendiscalpy.install_gendiscal import install
# install GenDisCal to /home/user/bin/GenDisCal
install(path='/home/user/bin')
gdc = GenDisCal() # bin='/home/user/bin/GenDisCal'
# these commands return pandas.DataFrame objects
table1 = gdc.run('test-data/*.fna')
table2 = gdc.run('test-data/*.fna', preset='PaSiT6', method='euclidian')
distance_matrix = gdc.run('test-data/*.fna', distance_matrix=True)
histogram = gdc.run('test-data/*.fna', histogram=True)
# this command returns a float
val = gdc.compare_two(assembly_1='test-data/FAM3257-i1-1.fna', assembly_2='test-data/FAM13496-i1-1.fna')
# this command returns a string in Newick format
newick = GenDisCalTree.from_files('test-data/*.fna')
Metadata
Release files for gendiscalpy 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gendiscalpy-0.0.2.tar.gz | 6.2 kB | Without provenance | Details for gendiscalpy-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gendiscalpy-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for gendiscalpy-0.0.2-py3-none-any.whl |
Total release size: 13.9 kB
Release files / gendiscalpy-0.0.2.tar.gz
| Download URL | gendiscalpy-0.0.2.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5cca8dc27c04fa9fb4f5db967fea4a8809dcf3415d0b88a6e28f257283c4c5b
|
|
BLAKE2b-256 checksum How to use checksums |
08bb26890094c88ca3cdb9214d6e959c2b9a4f8e5fbad0fb4f025eae362ba8b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / gendiscalpy-0.0.2-py3-none-any.whl
| Download URL | gendiscalpy-0.0.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aed479359506f15c115b7d101c000441d9339b51264009663b1358680e94670d
|
|
BLAKE2b-256 checksum How to use checksums |
a03100369ac1a3b7e21503bf469dc97b4c402e3e5cfa8134ede95a2c1e234b16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Security for gendiscalpy 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.