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

Plotting SFS #54

Open
clorenzo1 opened this issue Dec 1, 2022 · 1 comment
Open

Plotting SFS #54

clorenzo1 opened this issue Dec 1, 2022 · 1 comment

Comments

@clorenzo1
Copy link

Hi Issac,

I want to produce some plots from the 2D sfs as this important when comparing the models to the empirical data. I also want to view the Fst values calculated by dadi for each pair of populations. I added the following code under line 108:

    a=dadi.Plotting.plot_single_2d_sfs(fs,vmin=1) 
    pyplot.savefig('Plot_FS_dadi_.png')
    pyplot.savefig('Plot_FS_dadi_.svg')
    print("FST_measure_by_dadi",fs.Fst())

The Fst values print fine, but I only manage to produce two plots that are very strange and distorted as follows:

Plot_FS_dadi_

Is there a way to produce plots for each 1D sfs and also for each 2D sfs?

Best wishes,

Coral

@isaacovercast
Copy link
Owner

Hi Coral,
That is a great question that I do not know the answer to! If you figure it out please submit a pull request and I'll merge it into the main branch. :)
-isaac

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

2 participants