Skip to main content

Python software package for simulating random mutagenesis experiments

Project description

Library simulator is a python package for generating random mutagenesis libraries given a nucleotide sequence and error-prone polymerase.

Examples

Create a library

from library_simulator import LibrarySimulator
lib = LibrarySimulator("example.fasta",mutation_spectrum="published")
lib.simulate(num_samples=10,mutation_rate=2)
lib.clones
example/output-table.png
  • aa: amino acid changes (*: new stop codon)

  • base: base changes (- and + are insertions and deletions)

  • num: total number of amino acid changes (could be a huge number if there is an early stop or indel)

  • indel: whether or not there is an indel

  • stop: whether or not there is new stop codon

  • start: whether or not the real start codon was messed up

Find the frequencies of classes of mutants versus mutation rate

from library_simulator import LibrarySimulator, util
lib = LibrarySimulator("example.fasta",mutation_spectrum="published")
f_v_r = util.freq_vs_mutation_rate(lib,num_samples=10000)
util.plot_freq_vs_mutation_rate(f_v_r)
example/mutation-rate.png

See example/examples.ipynb for more functionality.

Installation

pip install library_simulator

Assumptions

  • The number of mutations per clone is determined by a Poisson process.

  • The sites mutated are independent within a clone and between clones

  • The probability of each possible mutation (A->T, G->C, etc.) is determined by the enzyme, not the sequence. The profiles for different enzymes are found in: library_simulator/mutation_spectra

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

library_simulator-0.1.tar.gz (104.8 kB view details)

Uploaded Source

Built Distributions

library_simulator-0.1-py3.6.egg (18.9 kB view details)

Uploaded Source

library_simulator-0.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file library_simulator-0.1.tar.gz.

File metadata

  • Download URL: library_simulator-0.1.tar.gz
  • Upload date:
  • Size: 104.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

File hashes

Hashes for library_simulator-0.1.tar.gz
Algorithm Hash digest
SHA256 5d6127e5d24c052780642f16ed709eaf3679478744e1beac0979070c39f5ae18
MD5 7a362a587aee0baf39d7ae52e0eeb7b0
BLAKE2b-256 cda7c158ac59badf554910f52d9136901af2092ecd8baea402df90db9f739cfb

See more details on using hashes here.

File details

Details for the file library_simulator-0.1-py3.6.egg.

File metadata

  • Download URL: library_simulator-0.1-py3.6.egg
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

File hashes

Hashes for library_simulator-0.1-py3.6.egg
Algorithm Hash digest
SHA256 f9b93d07375325e1eddda84f6746bd002747f588eb9f0af8acdd681391bc2398
MD5 f336ab626580f3f334491fb1068a5474
BLAKE2b-256 6175ad8239fcf3634c31cba87417a74e91f8cd60b124acef6dbca5f0fdca8da9

See more details on using hashes here.

File details

Details for the file library_simulator-0.1-py3-none-any.whl.

File metadata

  • Download URL: library_simulator-0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

File hashes

Hashes for library_simulator-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0636c77f8469179e4817e8a2a71e68f27dc76245f5acc3ab1d72a0e5c22c3136
MD5 27f7d7125f6b249e60ace9426f80b8ca
BLAKE2b-256 5565f235b61bac5fb08fa48c913efaf3a2afef20ae13195ee821872ea52f20cc

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