Giter VIP home page Giter VIP logo

shmmodels's Introduction

SHMModels

This repo contains functions for simulating from mechanistically-informed models of somatic hypermutation. The package can be installed using

pip install .

The primary function is simulate_sequences_abc, so for example,

from SHMModels.simulate_mutations import simulate_sequences_abc
simulate_sequences_abc("/Users/julia/GitHub/shmr/inst/extdata/gpt.fasta",
    "data/aid_logistic_3mer.csv",
    context_model_length = 3,
    context_model_pos_mutating = 2,
    n_seqs = 1,
    n_mutation_rounds = 3,
    ss_file = "for_nnet_ss.csv",
    param_file = "for_nnet_params.csv",
    sequence_file = "for_nnet_sequences.csv",
    n_sims = 100000,
    write_ss=False,
    write_sequences=True)

will simulate sequences from a 3-mer model, second position mutating, one sequence per parameter setting, with three rounds of mutation. The sequences will be written to the file for_nnet_sequences.csv and the parameters used to generate those sequences will written to for_nnet_params.csv. Summary statistics are a bit deprecated at this point.

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.