Skip to main content

Phylodynamic paramater and model inference using pretrained deep neural networks

Project description

Phylodeep

Phylodeep is a python library for parameter estimation and model selection from phylogenetic trees, based on deep learning.

Installation

Use the package pip to install phylodeep.

Usage

###Python

import phylodeep
from phylodeep import BD, BDSS, BD_vs_BDEI, BD_vs_BDSS, SUMSTATS, FULL

path_to_tree = './tests/Zurich.trees'

# set presumed sampling probability
sampling_proba = 0.20

# a priori check


# model selection
model_BD_vs_BDEI = phylodeep.modeldeep(path_to_tree, sampling_proba, vector_representation=SUMSTATS)
model_BD_vs_BDSS = phylodeep.modeldeep(path_to_tree, sampling_proba, vector_representation=FULL)

# the selected model is BDSS

# parameter inference
inference_param_BD = phylodeep.paramdeep(path_to_tree, sampling_proba, model=BD, vector_representation=FULL)
inference_param_BDSS = phylodeep.paramdeep(path_to_tree, sampling_proba, model=BDSS, vector_representation=FULL)

###Command line

paramdeep -t ./tests/Zurich.trees -p 0.25 -m BDSS -v CNN_FULL_TREE -o HIV_Zurich_BDSS_CNN.csv
paramdeep -t ./tests/Zurich.trees -p 0.25 -m BDSS -v FFNN_SUMSTATS -o HIV_Zurich_BDSS_FFNN.csv

Citation

Contributing

License

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phylodeep-0.0.83-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file phylodeep-0.0.83-py3-none-any.whl.

File metadata

  • Download URL: phylodeep-0.0.83-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.6.12

File hashes

Hashes for phylodeep-0.0.83-py3-none-any.whl
Algorithm Hash digest
SHA256 682727e51d29582099701aa05e0f25ef7a37464ece9dd2416a5a76a5e09e7a83
MD5 30592ed853a2cf1bd77b5e3edd212d41
BLAKE2b-256 f18c0bba1a9fdc6a18b378603ef57914b77d4f35a2f6feecb7d0d3a4de2f4c24

See more details on using hashes here.

Supported by

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