Git Product home page Git Product logo

vpop-gen's Introduction

VPop-Gen

VPop-Gen is the MATLAB source code for Rieger et al. 2018. With this code, the user should be able to reproduce all the figures and results from the manuscript. This code is also a natural starting point for extending the methods described in the manuscript to other models, however, it has only been tested against the Van de Pas model to date.

Link to Manuscript

Rieger et al. Progress in Biophysics and Molecular Biology. 2018.

Latest Software Release

DOI

Required Software

MATLAB and several of its toolboxes are required to execute Vpop-Gen. Vpop-Gen was written and tested using MATLAB 2016b (9.1). Execution of the code requires these additional toolboxes:

For versions of MATLAB before 2016b there is a problem with generating the final plots.

Functions for Running Vpop-Gen

  • a_make_paper_figs.m - function that reads the contents of txtout/ and makes figures similar to the manuscript figures.
  • a_run_vpop_fit.m - function for generation of simulation results. Based on inputs, will cycle through methods and iterates to generate data for manuscript.

Included Packages

Vpop-Gen uses three packages from MATLAB Central:

All packages are included as subdirectories with this repository.

alt text

vpop-gen's People

Contributors

trieger1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vpop-gen's Issues

Problems with plotting in versions before R2016b

The read_out_to_table function uses a field that appears to not exist on the Linux version of the 'dir' function in Matlab. Specifically, if a = dir(output_directory), then a.folder does not exist. Need to workaround this issue somehow.

Carryover effect between GA runs

Because ga_interim.mat is just checked for existence in ga_output.m, there is the potential for a carry-over effect between runs of the GA. Solution: delete ga_interim between each call of the ga function.

Fix the proposal distribution of the MH algorithm to stop picking at the bounds.

The proposal distribution of the M-H algorithm is probably incorrect as-is. I suggest changing this line in mh_generate_pps:

q = max(p_bnds(:,1),min(p_bnds(:,2),p + (p_bnds(:,2)-p_bnds(:,1))/10.*(2*rand(num_p,1)-1)));

to:

for ii = 1:numel(q0)
    q(ii) = icdf(truncate(makedist('Normal', 'mu', p(ii), 'sigma', sigma_proposal), 0, 1), rand());
end

where sigma_proposal is some pre-defined width of the proposal distribution and we assume every parameter runs 0 --> 1 (LB & UB stored somewhere else).

Check compatibility with Windows machines

Hard-wiring of directory structures with "/" probably breaks the code on Windows machines. The fix is probably straightforward using the "isunix" function built into Matlab to switch the directory structuring from "/" --> "".

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.