-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
May be some bugs in simulations. #4
Comments
Hello @RuBP17, thanks for testing the Regarding the first question,
This is correct. However, here we used Actually, these codes
are modified from the
As explained in the tutorial, this function finds
For the second question, the However, in this model, there are several introgressed populations. sstar-analysis/config/simulation/models/HumanNeanderthalDenisovan_PapuansOutOfAfrica_10J19.yaml Lines 85 to 91 in 1b5628d
Therefore, the truth tracts obtained from these codes:
not only contain the introgressed fragments in |
Maybe we can use the tree to find out where the segments go.
I tested this code under some simple models like HumanNeanderthal, It could find the same segments as the original code, because there is only one intro pop. And I also tested this code under the complexed model HumanDenisovanNeanderthal, the output segments are much fewer than origin codes and the proportion of introgression segments seems more reasonable. |
Could you please try the following codes and see whether you can get reasonable results?
|
yes, I followed your code and get reasonable results. The results were small intervals and I merged it.
the output is like
The results of origin code are
Total length is 10**7 bp. |
In this function, all the introgression segments from the "src" are recorded. In fact, not all the segments from the "src" are the introgression segments, some of them may not go into the target segments. And the "tgt_id" is not used. This bug may occur under complexed demographic models like 2 src models.
In 2src simulation (HumanNeanderthalDenisovan)
The src samples are NeaA and DenA. But in 'get_tracts', the
src
become "Nea1", "Den1" and "Den2". Maybe there is something wrong.The text was updated successfully, but these errors were encountered: