Giter Site home page Giter Site logo

What does the weight file mean? about 3p-clr HOT 3 OPEN

melop avatar melop commented on August 29, 2024
What does the weight file mean?

from 3p-clr.

Comments (3)

FerRacimo avatar FerRacimo commented on August 29, 2024

Hi Ray,

Using the outgroup map would be best, as recombination rate changes would be equally biased to be wrong in either of the two daughter populations. That said, if you only have a recombination map for one of the daughter populations and it's not very distantly related from the other two, then it should be fine.

The weight file should be a 3-column file with a header (like the input file header). The first column is the chr, the second column is the position and the third column is the LD weight. The number of positions should be equal to the number of positions in your input file. I would first try running things without the weight file. If the selection signals are strong enough, it won't make much difference to use it or not.

Hope that helps!
Fernando

from 3p-clr.

melop avatar melop commented on August 29, 2024

Dear Fernando,

Thank you for the detailed reply.

What if I use the average rec map for the two ingroups? I ran ldhat separately on the two ingroups, and simply averaged the normalized maps. The outgroup rec map is quite different from both ingroups, while the two ingroups have more similar maps.

Perhaps it would help if you can post an example of the weight file in the README file? For now I will try running without.

After I obtained the normalized CLR scores by dividing the raw scores with the chromosome average and standard deviation, what would be a reasonable cutoff to use as the significant threshold?

Thanks a lot!
Best
Ray

from 3p-clr.

FerRacimo avatar FerRacimo commented on August 29, 2024

Re: recombination maps - yeah, that sounds reasonable if the outgroup map is very different.

Re: cutoffs - the most appropriate (but cumbersome) thing to do would be to generate a set of replicate simulated windows under whatever neutral demographic model you fit your data to, compute a 99% or 99.9% quantile from the distribution of simulations, and then use that quantile as a cutoff for the real data; a quicker and more practical (but less statistically sound) route would be to use an empirical quantile cutoff on the data itself, which in general gives very similar results to the first method. As to the exact cutoff number, that's up to you. People use 99% of 99.9% as a rule of thumb. You could also just rank your results, and look at the top X regions, without specifying a particular quantile.

from 3p-clr.

Related Issues (4)

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.