- 1 A repo that contains miscellaneous Python/C++ modules/programs, a standalone Python module 'palos' by the yfish group (can be installed by pip).
- 2 Prerequisites to run Python programs in Pymodule
- 3 Example on how to run some pymodule programs
Yu S. Huang, polyactis@gmail.com
1 A repo that contains miscellaneous Python/C++ modules/programs, a standalone Python module 'palos' by the yfish group (can be installed by pip).
This repository is a mix of a python module 'palos' and other standalone programs developed and used by the yfish group, http://www.yfish.org/.
It contains code related to bioinformatics projects focusing on next-generation sequencing data, population genetics, genome-wide association studies, pedigree genetics, etc.
palos/ contains the source code of the https://pypi.org/project/palos module.
palos/algorithm/ contains pure algorithms, not specific to Bioinformatics.
GADA/ contains a faster algorithm than the original GADA (2008/2009) by using a Red-Black tree. Now in an independent repo https://github.com/polyactis/eGADA.
ngs/ contains programs analyzing next-generation sequencing data.
2 Prerequisites to run Python programs in Pymodule
Most programs in pymodule are dependent on the palos module, which is in palos/. Installation of palos will trigger installation of other dependencies.
2.1 PyPi package: Palos
Palos supports Python3 primarily, but is ported to Python2 via https://github.com/asottile/future-fstrings because some pymodule programs are Python2-only.
Install/Upgrade the Python3 version of Palos
pip3 install --upgrade palos
Install/Upgrade the Python2 version of Palos
# to run some Python2 pymodule programs
pip install --upgrade palos
2.1.1 Package future-fstrings ensures compatibility between Python2 and Python3
Package future-fstrings allows the use of f-string in Python2.
# -*- coding: future_fstrings -*-
thing = 'world'
print(f'hello {thing}')
2.1.2 Build and upload the palos package to PyPi
# Build the package.
# sdist and bdist_wheel are both commands of setup.py, not package names.
python3 setup.py sdist bdist_wheel
# (Delete old ones beforehand) and Upload the compiled package file.
# Enter your PyPi username (__token__) and password (!= the pypi.org account password).
twine upload dist/*
2.2 Optional prerequisites
The following pakcages are optional, only needed for some functions.
- mysqldb
- biopython
- pegaflow https://pypi.org/project/Pegaflow/
- psycopg2 http://initd.org/psycopg/
- matplotlib basemap toolkit http://matplotlib.sourceforge.net/basemap/doc/html/
- python imaging library http://www.pythonware.com/products/pil/
- python-scientific http://www.scipy.org/
- biopython
- python-rpy2
- networkx https://networkx.lanl.gov/wiki
- hcluster
- python-h5py
- python-tables
2.3 Optional C++ libraries
Required if you plan to compile all binaries in pymodule by typeing 'make all'.
apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-cpp-100 hdf5-tools
libarmadillo-dev libboost-program-options-dev libboost-iostreams-dev
libboost-python-dev python-dev
3 Example on how to run some pymodule programs
./ngs/DownsampleWorkflow.py -h
Metadata
Release files for Palos 0.1.37
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 |
|---|---|---|---|---|
| Palos-0.1.37.tar.gz | 358.0 kB | Without provenance | Details for Palos-0.1.37.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Palos-0.1.37-py3-none-any.whl | Python 3 | none | any | Details for Palos-0.1.37-py3-none-any.whl |
Total release size: 751.5 kB
Release files / Palos-0.1.37.tar.gz
| Download URL | Palos-0.1.37.tar.gz |
|---|---|
| Size | 358.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6269de9ada19dbd26a8716c8501f88864265c254a3dbdecd7d02f386b2611887
|
|
BLAKE2b-256 checksum How to use checksums |
cd613c79279426d3410301521c21589924960d1868d88d0ba3bb9227dd88cf49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
|
Release files / Palos-0.1.37-py3-none-any.whl
| Download URL | Palos-0.1.37-py3-none-any.whl |
|---|---|
| Size | 393.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6473a3c4cae4e4eea13b20e2d6959b83c83146e465e232f277b8dfbd35fc29b
|
|
BLAKE2b-256 checksum How to use checksums |
f4ba5136ab3f0c4d206e656f4bf2ba61c29bee8b7ac0fb467402fcdfc3fe1ef1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
|
Security for Palos 0.1.37
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.