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.

Plink: Difference between revisions

From angsd
Jump to navigation Jump to search
Line 30: Line 30:
==Output files==
==Output files==
The above commands will generate a '''.tfam/.tped''' files
The above commands will generate a '''.tfam/.tped''' files
<div class="toccolours mw-collapsible mw-collapsed">
output.tfam
<pre class="mw-collapsible-content">
1 1 0 0 0 -9
2 1 0 0 0 -9
3 1 0 0 0 -9
4 1 0 0 0 -9
5 1 0 0 0 -9
6 1 0 0 0 -9
7 1 0 0 0 -9
8 1 0 0 0 -9
9 1 0 0 0 -9
10 1 0 0 0 -9
11 1 0 0 0 -9
12 1 0 0 0 -9
13 1 0 0 0 -9
14 1 0 0 0 -9
15 1 0 0 0 -9
</pre>
</div>


==NB==
==NB==

Revision as of 18:58, 12 September 2013

From version 0.549 we now support plink output files. Currently we only support the transposed .tfam/.tped files. But we are working on a native .bed/.bim/.fam dumper.


This method is essentially a wrapper around the existing genotype caller, and all options for the genotype caller can therefore be used for the plink formated output file.

See Genotype calling for options relating to calling genotypes. For dumping the plink file you should supply:

-doPlink 2

Brief Overview

------------------------
writePlink.cpp:
	-doPlink	0
	1: binary fam/bim/bed format (still beta, not really working)
	2: tfam/tped format

	NB This is a wrapper around -doGeno see more information for that option

Example

A full example commandline is given below:

 ./angsd -bam smallBam.filelist -out outnames -doPlink 1 -doGeno -4 -doPost 1 -doMajorMinor 1 -GL 1 -nThreads 20 -doMaf 2 -postCutoff 0.9999  -minLRT 24 -doSNP 1

Notice the extra minus in the -dogeno -4 argument, this will suppress the -doGeno output.

Output files

The above commands will generate a .tfam/.tped files

output.tfam

1 1 0 0 0 -9
2 1 0 0 0 -9
3 1 0 0 0 -9
4 1 0 0 0 -9
5 1 0 0 0 -9
6 1 0 0 0 -9
7 1 0 0 0 -9
8 1 0 0 0 -9
9 1 0 0 0 -9
10 1 0 0 0 -9
11 1 0 0 0 -9
12 1 0 0 0 -9
13 1 0 0 0 -9
14 1 0 0 0 -9
15 1 0 0 0 -9

NB

We highly recommand that users, don't perform analysis on called genotypes, since calling genotypes is likely to cause bias in the downstream analysis.

References

[1]