GithubHelp home page GithubHelp logo

medvedevgroup / mutation-rate-intervals Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 161 KB

Support for "statistics of k-mers from a sequence undergoing a simple mutation process without spurious matches"

Python 100.00%

mutation-rate-intervals's People

Contributors

pashadag avatar rsharris avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mutation-rate-intervals's Issues

Problems with the Bernoulli error model

(Copied from a direct email to the authors)

I'd like to inform you that in the case of the 'BernoulliModel,' which is causing some errors (errors are listed below) while running, some correction or further development may be required. Without 'BernoulliModel,' it works fine.

Error list:
$ python3 $packg/simulate_unit_errors.py K=21 N=10000 S=4 T=2 P=0.001 B=0.6
Traceback (most recent call last):
File "/home/pijush/Desktop/mutation-rate-intervals/simulate_unit_errors.py", line 622, in
if name == "main": main()
File "/home/pijush/Desktop/mutation-rate-intervals/simulate_unit_errors.py", line 217, in main
mutationModel.set_sketch_prng(sketchSize,sketchPrngs[sketchSize])
AttributeError: 'BernoulliModel' object has no attribute 'set_sketch_prng'

$ cat FirstSeq.fasta | python3 $packg/simulate_nucleotide_errors.py K=21 S=4 T=2 P=0.001 B=0.6
the bernoulli noise model is not currently supported

$ python3 $packg/simulate_unit_errors_thm5.py K=21 L=10000 T=1 P=0.001 B=-0.6
Traceback (most recent call last):
File "/home/pijush/Desktop/mutation-rate-intervals/simulate_unit_errors_thm5.py", line 583, in
if name == "main": main()
File "/home/pijush/Desktop/mutation-rate-intervals/simulate_unit_errors_thm5.py", line 114, in main
pSubstitution = parse_probability(argVal)
File "/home/pijush/Desktop/mutation-rate-intervals/simulate_unit_errors_thm5.py", line 558, in parse_probability
raise ValueError
ValueError

$ cat $refg | python3 $packg/simulate_nucleotide_errors_thm5.py K=21 T=1 P=0.001 B=0.6 --stats='Simulated2.fasta'
the bernoulli noise model is not currently supported

More verbose readme?

Currently, to figure out what each function does, you need to consult the --h help text or in the code comments for scripts without --h. Might be helpful to have a brief description of each file. Eg. what's the difference between simulate_unit_errors_v1.py and simulate_unit_errors.py

Support for fasta input

(Copied from a direct email to the authors)

I found that your code generates sequences conceptually; is there any way to obtain those sequences in a *.FASTA file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.