Skip to content
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

Assessing the convergence of runs #32

Open
lpittet92 opened this issue May 23, 2024 · 6 comments
Open

Assessing the convergence of runs #32

lpittet92 opened this issue May 23, 2024 · 6 comments

Comments

@lpittet92
Copy link

Hello,

First of all, thank you for giving us the opportunity to run BGC so easily.

I am having some trouble understanding my results. I attached the log likelihood and hybrid index graphs that I obtained from two runs (100000 burn-in / 200000 MCMC iterations). I did it only as a test and want to add more runs and probably also more MCMC iterations.

Could you help me understand why my two runs give quite different log likelihood and hybrid index. It looks to me like the model found convergence inside each run but is not coherent between runs.

All the best,

Loïc
ABH_hi_convergence.pdf
ABH_LnL_convergence.pdf

@tkchafin
Copy link
Collaborator

I would suggest a longer run with a larger burn-in, and increase the thinning parameter (2nd MCMC in particular looks to have a lot of autocorrelation)

@lpittet92
Copy link
Author

That was fast !!

Thank you very much, I will give it a try and let you know how it goes :)

@lpittet92
Copy link
Author

Hello again,

I have been trying a lot of things since the last message... Now my runs converge. When I included all the populations of the hybrid zone, BGC identified only one population as hybrid (hybrid index of 0.5), and all the other populations as P1 (average 0.98 HI). So I ran it again with only the hybrid pop and I get the result attached.
FWH_FINAL_all_hiXphi_alphaAndBeta-2.pdf

I am not sure if everything ran normally. Do you have any idea what is happening here ?

Thanks

@lidanqi1990
Copy link

Hello again,

I have been trying a lot of things since the last message... Now my runs converge. When I included all the populations of the hybrid zone, BGC identified only one population as hybrid (hybrid index of 0.5), and all the other populations as P1 (average 0.98 HI). So I ran it again with only the hybrid pop and I get the result attached. FWH_FINAL_all_hiXphi_alphaAndBeta-2.pdf

I am not sure if everything ran normally. Do you have any idea what is happening here ?

Thanks

Hi,
I have already run BGC and plot BGC results. Do you know how to get the outlier SNP position in each chromosome?

all the best,
Danqi Li

@lpittet92
Copy link
Author

lpittet92 commented Sep 20, 2024

Hi,

Yes. The function "get_bgc_outliers()" generates a list of 3 data frames. You can display the data frames or export each data frame separately as csv or text files. Then you will be able to see the outliers.

Best,

Loïc

@lidanqi1990
Copy link

Hi, Loïc
Thanks for helping me out with this problem. I try to use "write.table" to export data frame, but it shows an error:

Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, :
arguments imply differing number of rows: 222076, 49, 19

Can you help me how to export each data frame separately? Regard.

Best

Danqi Li

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants