Skip to main content

TruSD co-infers selection coefficients and genetic drift from allele trajectories using a maximum-likelihood framework.

Project description

TruSD

Trajectories under Selection and Drift is an implementation of a method that co-infers selection coefficients and genetic drift from allele trajectories using a maximum-likelihood framework.

If you find the software useful in your research please cite this package.

Installation

TruSD needs Python 3.6 or newer. Python 2 is not supported! TruSD was only tested on Linux (Ubuntu), but should work on Mac and Windows as well.

We suggest to use a virtual environment for use of TruSD. To install TruSD, run:

pip3 install trusd

This will install TruSD as importable module and three command line tools, trusd, trusd-plot, and trusd-sim.

Update

If you later want to update TruSD, use the pip command:

pip3 install --upgrade trusd

Running TruSD from within a Python script

Import the trusd module from your Python 3 script:

# inside python3 script or interactive prompt
import trusd
help(trusd.trusd) # gives package content

For an example, download two files (for example with wget):

wget https://github.com/mathiasbockwoldt/TruSD/blob/master/examples/min_working_example.py
wget https://github.com/mathiasbockwoldt/TruSD/blob/master/examples/traj_example.txt

You can start an example run with

python3 min_working_example.py

The min_working_example.py is documented to explain the basic steps. It uses traj_example.txt as input and produces outfile.txt (the results), outfile.json (the metadata) and outfile.pdf (the plot).

Running TruSD as command line program

The command line programs are self-explanatory using the --help flag.

trusd --help
trusd-plot --help
trusd-sim --help

The parameters are the same as in the Python modules.

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

TruSD-0.0.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

TruSD-0.0.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file TruSD-0.0.2.tar.gz.

File metadata

  • Download URL: TruSD-0.0.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for TruSD-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8e4fa074f5f337e82ab76f3119abfaafefe598fe291ed6958166dd8b8a81b74a
MD5 26175eff2844f2fc61f3625237ba4566
BLAKE2b-256 aa3a4e77f2b6664ab0f0d3aa6107e7d861538899270c6b7a9473cfd159e9cc68

See more details on using hashes here.

File details

Details for the file TruSD-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: TruSD-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for TruSD-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d8c0fdee8011077723570611185de3988e3bbe8530ef99a483e462e0861be35
MD5 f84fc27c1843611b63bec0af13fb902a
BLAKE2b-256 8880e430b0e85c3afad1d5e3943f56a2eeaa1343797994a99de86ea964f06253

See more details on using hashes here.

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