Giter Site home page Giter Site logo

Dominance about tstrait HOT 7 OPEN

daikitag avatar daikitag commented on September 23, 2024
Dominance

from tstrait.

Comments (7)

daikitag avatar daikitag commented on September 23, 2024

Suggestions in #45

from tstrait.

daikitag avatar daikitag commented on September 23, 2024

The dominance model in AlphaSim https://acsess.onlinelibrary.wiley.com/doi/10.3835/plantgenome2016.02.0013 would be a good starting point of the model

from tstrait.

gregorgorjanc avatar gregorgorjanc commented on September 23, 2024

@daikitag we have completely rehauled dominance approach - happy to talk more - this is current implementation https://cran.r-project.org/web/packages/AlphaSimR/vignettes/traits.pdf but that doc doesn't show all the details

from tstrait.

gregorgorjanc avatar gregorgorjanc commented on September 23, 2024

But the basic logic from your initial post is correct. The challenge is how to sample domEffect compared to addEffect - there are some subtle points there with respect to inbreeding depression and heterosis.

from tstrait.

gregorgorjanc avatar gregorgorjanc commented on September 23, 2024

To add - this is similar to other posts - one thing is sampling effects, another is applying them. If you focus on the application of some dominance effects then a user can provide the values or you can provide functionality to sample such effects.

from tstrait.

daikitag avatar daikitag commented on September 23, 2024

@gregorgorjanc Thank you very much for your prompt reply. I actually thoroughly read through the codes and architectures of AlphaSimR to learn about quantitative trait simulation before I began this research project, and I tried creating tstrait, such that it can do a similar thing as AlphaSimR to tree sequences.

I found "AlphaSimR uses a digenic dominance model for all ploidy levels due to its use of scaled dominance genotype dosages. This model was chosen because it provides consistency in user interface and internal coding regardless of ploidy level and it provides as a reasonable approximation for partial dominance in highly polygenic traits." to be very interesting to read, as the current codes only support dominance in diploid setting. If you do not mind, would it be possible for you to let me know how you have implemented it, or point out to the codes in AlphaSimR that does it? I'm not sure about how we can implement dominance for polyploids, and I really appreciate your help.

from tstrait.

gregorgorjanc avatar gregorgorjanc commented on September 23, 2024

@daikitag happy to share

In https://cran.r-project.org/web/packages/AlphaSimR/vignettes/traits.pdf you will see section on Genotype dosage scaling and then Additive Effects and Dominance effects

For Genotype dosage scaling the table 1 in that PDF and eq 2 and 3 should be clear I think - let me know if not.

Then we apply the additive and dominance effects to scaled dosages eq 4 and 5, see table 2 example

Codewise see https://github.com/gaynorr/AlphaSimR/blob/695aef000a50061fcef36aad2d85f92b3db2aab5/src/getGv.cpp#L150C24-L150C29

from tstrait.

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.