dportik / dadi_pipeline

An accessible and flexible tool for fitting demographic models with dadi using custom or published models (available here), conducting goodness of fit tests, and plotting.
GNU Lesser General Public License v3.0
62 stars 30 forks source link

about plotting #1

Closed XuexueLiu closed 6 years ago

XuexueLiu commented 6 years ago

Dear dportik I used the example data of two populations, with the command "python dadi_2D_04_plotting_functions.py", and got the result: Traceback (most recent call last): File "dadi_2D_04_plotting_functions.py", line 373, in vic_no_mig = Optimize_Functions.Optimize_Single(pts, fs, "vic_no_mig", vic_no_mig_params) File "/home/data/dadi_new/dadi_pipeline-master/Two_Populations/Optimize_Functions.py", line 6906, in Optimize_Single sim_model = func_exec(params, fs.sample_sizes, pts) File "/home/share/software/anaconda2/lib/python2.7/site-packages/dadi-1.6.3-py2.7-linux-x86_64.egg/dadi/Numerics.py", line 261, in extrap_func result_l = map(partial_func, pts_l) File "/home/data/dadi_new/dadi_pipeline-master/Two_Populations/Models_2D.py", line 564, in vic_no_mig nuA, nu1, nu2, T, s = params ValueError: need more than 0 values to unpack I donot know what's wrong with this software. thankyou!

dportik commented 6 years ago

Hello, This error is because no parameter values have been supplied for that model. Look at line 235, this is where the values should be. Notice the list is empty (compare to parameter sets above). In the example data I provided I did not run these models. You will supply your own values for your data if you run the island model set. It will work if values are written in.

Daniel Portik, PhD Postdoctoral Researcher Department of Ecology and Evolution University of Arizona P.O. Box 210088 Tucson, AZ 85721 danielportik@email.arizona.edu daniel.portik@uta.edu

On Tue, Jan 30, 2018 at 2:17 AM, XuexueLiu notifications@github.com wrote:

Dear dportik I used the example data of two populations, with the command "python dadi_2D_04_plotting_functions.py", and got the result: Traceback (most recent call last): File "dadi_2D_04_plotting_functions.py", line 373, in vic_no_mig = Optimize_Functions.Optimize_Single(pts, fs, "vic_no_mig", vic_no_mig_params) File "/home/data/dadi_new/dadi_pipeline-master/Two_Populations/Optimize_Functions.py", line 6906, in Optimize_Single sim_model = func_exec(params, fs.sample_sizes, pts) File "/home/share/software/anaconda2/lib/python2.7/site- packages/dadi-1.6.3-py2.7-linux-x86_64.egg/dadi/Numerics.py", line 261, in extrap_func result_l = map(partial_func, pts_l) File "/home/data/dadi_new/dadi_pipeline-master/Two_Populations/Models_2D.py", line 564, in vic_no_mig nuA, nu1, nu2, T, s = params ValueError: need more than 0 values to unpack I donot know what's wrong with this software. thankyou!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dportik/dadi_pipeline/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ANaLXhZRgcOTVYm4Yg7cyz-mLsvHNS9sks5tPt4WgaJpZM4Rx_kg .

XuexueLiu commented 6 years ago

Dear Daniel Portik Thankyou for your reply, I use my own data and add all the parameters, while I got the result: QXcbConnection: Could not connect to display Aborted (core dumped) is there something wrong with the software, I used. thankyou !

dportik commented 6 years ago

Hello, This sounds like an issue with the python package matplotlib. I would ensure that all the dependencies are installed, updated, and try again. If the issue persists I suggest you look at the support material for matplotlib.

Daniel Portik, PhD Postdoctoral Researcher Department of Ecology and Evolution University of Arizona P.O. Box 210088 Tucson, AZ 85721 danielportik@email.arizona.edu daniel.portik@uta.edu

On Tue, Jan 30, 2018 at 7:00 PM, XuexueLiu notifications@github.com wrote:

Dear Daniel Portik Thankyou for your reply, I use my own data and add all the parameters, while I got the result: QXcbConnection: Could not connect to display Aborted (core dumped) is there something wrong with the software, I used. thankyou !

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dportik/dadi_pipeline/issues/1#issuecomment-361798851, or mute the thread https://github.com/notifications/unsubscribe-auth/ANaLXjt1s4Zz73VaECedRSsJlanWrVadks5tP8lXgaJpZM4Rx_kg .