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

plot pdf blank/empty #90

Open
chapinkj opened this issue Oct 26, 2023 · 4 comments
Open

plot pdf blank/empty #90

chapinkj opened this issue Oct 26, 2023 · 4 comments

Comments

@chapinkj
Copy link

chapinkj commented Oct 26, 2023

dadi-cli GenerateFs --vcf ../file.vcf --pop-info popmap.txt --projections 10 10 10 --output file.fs --pop-ids pop1 pop2 pop3

dadi-cli Plot --fs ./folded_fs.fs --output ./output.pdf

results in a blank, 2kb pdf file.

.fs file looks fine, and no errors are produced at any point

using python 3.11.1 and dadi-cli 0.9.3

@chapinkj
Copy link
Author

I might have figured it out: need to include --demo-pop1, which is not indicated in the manual: https://dadi-cli.readthedocs.io/en/latest/userguide/plot/

@tjstruck
Copy link
Collaborator

tjstruck commented Oct 26, 2023

Hi @chapinkj, you should not need to use --demo-pop1.

Some questions:

  1. Are you trying to plot a site-frequency spectrum with three populations? Currently, plotting three populations is unsupported.
  2. Are you getting any errors when you run your dadi-cli Plot command without the --demo-pop1?

@chapinkj
Copy link
Author

chapinkj commented Oct 27, 2023

Yep, 1 is the issue - I'm working with three populations. Is there any workaround for 3 pop plotting with dadi-cli?

@tjstruck
Copy link
Collaborator

tjstruck commented Dec 5, 2023

Hi @chapinkj, sorry for taking so long to get back to you. I've updated dadi-cli to 0.9.5, which supports plotting pairwise comparisons for three populations to a model (ex. Figure 2C). If you update dadi to 2.3.3, the previous command you were using (dadi-cli Plot --fs ./folded_fs.fs --output ./output.pdf) will give the first row of spectra from Figure 2C, so you can compare the populations in your data pairwise.

However, the 3D plots like Figure 2A can be overly complex to interpret, so plotting a 3D spectrum probably won't be added to dadi-cli.

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