Introduction
Ancestry components can be interesting to look at - ever wondered how they're calculated exactly? In this post - we'll look at one such tool called "qpAdm" which is the academic tool for making ancestry models. We'll be talking about it's installation and set up here mainly, testing models will come later.
Requirements
- A Linux based computer with 16 gigs of RAM
- Some knowledge of Unix commands
Walkthrough
- Boot up your PC and get on your terminal.
- Install git, base-devel, gsl and blas. The commands vary depending on what Linux distribution you're using.
- If you are on Arch Linux, there's a package available in the AUR which you can directly install by typing
yay -S admixtools-git - Even if you don't use Arch Linux, there's nothing to worry about, you can follow through the rest of the tutorial.
- Run
git clone https://github.com/DReichLab/AdmixTools.git - Once you're done with this run
cd AdmixTools/src - Now you're in the right place directory. All we have to do is proceed with the actual install.
- Next you run
make clobber - You need admin access for this obviously. Enable sudo for your user and - run
sudo make install - AdmixTools is installed now and you can run qpAdm, qpWave, convertf and other tools.
Post Install
- The necessary install files should be there in the bin folder. You should type
.cd .. - Now to test whether the instal worked or not,
cd bin - and
./qpAdm - Now we set it up to work from any directory you want it in.
- Type
sudo cp * /usr/bin/ - Test it by exiting the terminal and then opening a new one. And type:
qpAdm
A Brief Guide
- To test models, you need to build a parameter file. We'll post a detailed guide on this soon. For now check out the Harney et al 2021 supplementary.
- To run qpAdm, you should cd into the directory that has your parameter file and then run
qpAdm -p parfile.txt