Reduced dimension embeddings for pathogen sequences
Project description
pathogen-embed
Create reduced dimension embeddings for pathogen sequences
pathogen-embed is an open-source software for scientists, epidemiologists, etc. to run reduced dimension embeddings (PCA, MDS, t-SNE, and UMAP) on viral populations. This is the source code from the paper Cartography written by Sravani Nanduri and John Huddleston.
Installation
Simply install the package using pip.
pip install pathogen-embed
Build documentation
Build the Documentation:
make -C /docs html
Clean the docs.
make -C /docs clean
Releasing a new version
Information about each file
README.md
contains the description of the package pathogen-embed.
setup.py
Gives PyPi the instructions about where to find dependent packages, the authors and relevant links, etc. Also gives the entry points for the console script, which tells Pypi to call the main function of main.py.
init.py
Initializes the package, creates the parser to parse the command line arguments and pass them into the embed.py function.
main.py
Calls the "run" function in init.py, which calls embed.py.
embed.py
The main code for the package.
To create new version
Run
python3 -m build
This creates the dist folder that gets uploaded to pypi.
python3 -m twine upload dist/*
Input the username and password, upload new dist files to pypi. Make sure the version of the dist folders does not already exist within pypi.
Run tests
Run tests with cram.
cram tests
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pathogen_embed-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f1eaff9be4903b972d4835acc46675d0038bbe54444e9df082cced6d4d740df |
|
MD5 | 60be7ed27a9337c74b4ff6ebca47d73e |
|
BLAKE2b-256 | 7302b23d51419d1beb5545c8469cfda243bf5af69b03ee6574b15e6457a9e1ac |