PCAngsdTutorial: Difference between revisions
Line 21: | Line 21: | ||
</code> | </code> | ||
===Create directories=== | |||
Create the directories that will be used for working: | |||
<code>mkdir Demo</code> | |||
<code>cd Demo</code> | |||
<code>mkdir Data</code> | |||
<code>mkdir Results</code> | |||
===Set the paths to your local directories=== | |||
<code>IN_DIR=Demo/Data</code> | |||
<code>OUT_DIR=Demo/Results</code> | |||
Test the links | |||
<code>ls $IN_DIR</code> | |||
<code>ls $OUT_DIR</code> | |||
====Download the beagle genotype likelihood input file==== | |||
PCAngsd uses Genotype Likelihoods (GLs) in .beagle format as input. The input file has been created for you. | |||
Download the files and move them to your input folder (for example, $IN_DIR): | |||
'''*ANDERS*''' | '''*ANDERS*''' | ||
<code>wget popgen.dk/software/download/NGSadmix/data/Demo1input.gz</code> | |||
wget popgen.dk/software/download/NGSadmix/data/ | |||
wget popgen.dk/software/download/ | <code>wget popgen.dk/software/download/NGSadmix/data/Demo1pop.info</code> | ||
<code>mv Demo1input.gz $IN_DIR</code> | |||
<code>mv Demo1pop.info $IN_DIR</code> | |||
'''*ANDERS*''' | '''*ANDERS*''' |
Revision as of 21:54, 29 July 2019
We will go through a simple and more complex example on how to use PCAngsd with visualization of the data.
PCA with admixture aware priors
This example will perform a PCA analysis on 1000 genotype likelihoods.
Set paths
Every time you open a new terminal window, set the paths to the program and the input file.
Set the path to PCAngsd
PCAngsd=~/Software/PCAngsd
Test the link
ls $PCAngsd
Create directories
Create the directories that will be used for working:
mkdir Demo
cd Demo
mkdir Data
mkdir Results
Set the paths to your local directories
IN_DIR=Demo/Data
OUT_DIR=Demo/Results
Test the links
ls $IN_DIR
ls $OUT_DIR
Download the beagle genotype likelihood input file
PCAngsd uses Genotype Likelihoods (GLs) in .beagle format as input. The input file has been created for you.
Download the files and move them to your input folder (for example, $IN_DIR):
*ANDERS*
wget popgen.dk/software/download/NGSadmix/data/Demo1input.gz
wget popgen.dk/software/download/NGSadmix/data/Demo1pop.info
mv Demo1input.gz $IN_DIR
mv Demo1pop.info $IN_DIR
*ANDERS*