Giter Club home page Giter Club logo

Comments (1)

qmarcou avatar qmarcou commented on August 29, 2024

Hi @zacmontague ,

What exactly do you mean in the last sentence? It's unclear. Do you mean, perhaps, that the commands I've written below would allow for model_parms.txt and the like to be produced for a new species?

This is indeed what I mean: provided you want to create for new species (e.g a platypus) a recombination model with the same topology than an existing model (say e.g human heavy chain), the commands you have used will create the correct model_parms and marginals files with the custom (platypus) genomic templates you have provided

As for your second question about inference parameters:

  • N_iter controls the number of iterations in the Expectation Maximization algorithm, each new iteration will increase the final likelihood of the model. From my experience this likelihood quickly plateaus after a few iterations. Again from my personal experience (which you should take with agrain of salt and check by yourself the evolution of the likelihood and model parameters) 10 iterations is more than enough to obtain robust results. This is most likely not the parameter you should tune to solve your situation with many NaN in your Pgen (or sequence likelihood?)

  • L_thresh is indeed a better candidate for your problem, especially if your are dealing with highly mutated sequences (e.g ones that underwent somatic hypermutations). This parameter exists because you might want to rule out some bad quality sequences (e.g ones with many errors introduced during PCR). You should set it such that most of your sequences are assigned a likelihood starting from the first iteration (which you can monitor looking at the inference_logs.txt file)

However in as explained in #28 the most likely reason for your NaNs come from alignment quality and I strongly encourage you to read my answer for that issue.

from igor.

Related Issues (20)

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.