GADMA Installation¶
During the workshop you will learn how to use GADMA for demographic inference. We kindly ask you to install GADMA on your system using the instructions below.
Platform¶
Choose your platform to get recommendations and installation instructions:
GADMA is available for Linux system.
GADMA is available for Windows, but we recommend using the Windows Subsystem for Linux (WSL) for the best experience. If you are using WSL, please follow the instructions for Linux.
GADMA is available for MacOS system.
Activate Conda Environment¶
We will install GADMA in the same environment as bcftools:
conda activate gadma_workshop_env
Installation¶
Install specified version of
moments(unfortunately, GADMA is not yet compatible with the most recent version):pip install moments-popgen==1.3.1
Install GADMA using
pip:pip install gadma
Install GADMA using
pip:pip install gadma
Install
dadiandscikit-allelusingcondafirst:conda install dadi scikit-allel
Install GADMA using
pip:pip install gadma
Check the version of matplotlib¶
In order to successfully draw models, GADMA requires matploltib package no higher than 3.7.5. Check that the correct varsion is installed:
pip install "matplotlib<=3.7.5"
Verify Installation¶
To verify installation first run:
gadma --testYou should see the following output:
--Finish pipeline-- --Test passed correctly-- Thank you for using GADMA! In case of any questions or problems, please contact: ekaterina.e.noskova@gmail.com
Download example data
example_input_for_gadma.sfsand input filegadma_params.sfs:wget https://github.com/noscode/GADMA_workshops/raw/refs/heads/main/docs/source/2024_18_11/files/example_input_for_gadma.sfs wget https://github.com/noscode/GADMA_workshops/raw/refs/heads/main/docs/source/2024_18_11/files/gadma_params
And run:
gadma -p gadma_params
You should see the following output:
--Finish pipeline--
Let Us Know You Were Successful¶
In order for us to understand how many participants are ready for the workshop, we ask you to send us some results of your run.
Print the following line of the file
gadma_output/GADMA.log:tail -25 gadma_output/GADMA.log | head -1 | xargs
Please send us this line via the following form: Send Your Result
Troubleshooting¶
If you have any problems with installation:
You can install GADMA using
condaconda install gadma
Take a look at the official installation documentation
If you still face issues, please write to ekaterina.e.noskova@gmail.com.
You can install GADMA using
condaconda install gadma
Take a look at the official installation documentation
If you still face issues, please write to ekaterina.e.noskova@gmail.com.
You can install GADMA using
condaconda install gadma
If you faced an issue for
moments(moments-popgen) package, try installing it independently using:pip install Cython pip install "setuptools_scm>=8" pip install --no-build-isolation moments-popgen
Run GADMA installation after.
Take a look at the official installation documentation
If you still face issues, please write to ekaterina.e.noskova@gmail.com.