Skip to main content

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

pathogen-embed-1.1.2.tar.gz (10.7 kB view hashes)

Uploaded Source

Built Distribution

pathogen_embed-1.1.2-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page