ANGSD: Analysis of next generation Sequencing Data

Latest tar.gz version is (0.938/0.939 on github), see Change_log for changes, and download it here.

Direct Ancestry: Difference between revisions

From angsd
Jump to navigation Jump to search
(Created page with "Based on the 2dsfs for two individuals it is possible to estimate the direct ancestry")
 
No edit summary
 
Line 1: Line 1:
Based on the 2dsfs for two individuals it is possible to estimate the direct ancestry
Based on the 2dsfs for two individuals it is possible to estimate the direct ancestry
<pre>
angsd -i ind1.bam -gl 1 -anc ancestral.fasta -dosaf 1 -out ind1
angsd -i ind2.bam -gl 1 -anc ancestral.fasta -dosaf 1 -out ind2
realSFS ind1.saf.idx ind2.saf.idx -P 32 >2dsfs
Rscript direct_ancestry.R sfsfile='2dsfs'
</pre>

Latest revision as of 21:33, 8 November 2016

Based on the 2dsfs for two individuals it is possible to estimate the direct ancestry


angsd -i ind1.bam -gl 1 -anc ancestral.fasta -dosaf 1 -out ind1
angsd -i ind2.bam -gl 1 -anc ancestral.fasta -dosaf 1 -out ind2
realSFS ind1.saf.idx ind2.saf.idx -P 32 >2dsfs
Rscript direct_ancestry.R sfsfile='2dsfs'