 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.popgen.dk/angsd/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Line</id>
	<title>angsd - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.popgen.dk/angsd/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Line"/>
	<link rel="alternate" type="text/html" href="https://www.popgen.dk/angsd/index.php/Special:Contributions/Line"/>
	<updated>2026-04-24T18:42:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://www.popgen.dk/angsd/index.php?title=Filters&amp;diff=234</id>
		<title>Filters</title>
		<link rel="alternate" type="text/html" href="https://www.popgen.dk/angsd/index.php?title=Filters&amp;diff=234"/>
		<updated>2012-09-24T11:15:26Z</updated>

		<summary type="html">&lt;p&gt;Line: /* Selected Sites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In most analysis you are only interested in a subset of sites and not all sites. Currently we have the following filter options.&lt;br /&gt;
&lt;br /&gt;
=Selected Sites=&lt;br /&gt;
&lt;br /&gt;
; -filter [bimfile.bim]: Return likelihoods for the positions in the .bim file. In addition the options -doMaf 2 -GL 1 must be provided. With -doMajorMinor 3 the major/minor alleles from the bim file is used.&lt;br /&gt;
&lt;br /&gt;
=Allele frequencies=&lt;br /&gt;
; -minMaf [float]: only work with sites with a maf above 'float'&lt;br /&gt;
&lt;br /&gt;
=polymorphic sites=&lt;br /&gt;
&lt;br /&gt;
; -minLRT [float]: only work with sits with an LRT&amp;gt;float&lt;br /&gt;
&lt;br /&gt;
=Major minor=&lt;br /&gt;
=Number of non missing individuals=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; -minKeepInd [int]: only work with sites with information from atleast int individiduals&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First we do a run with no filters&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./angsd  -doMaf 2 -doMajorMinor 1 -out TSK -bam bam.filelist -GL 1 -r 1:&lt;br /&gt;
...&lt;br /&gt;
head TSK.mafs &lt;br /&gt;
chromo	position	major	minor	knownEM	nInd&lt;br /&gt;
1	13999919	A	C	0.000008	1&lt;br /&gt;
1	13999920	G	A	0.000008	1&lt;br /&gt;
1	13999921	G	A	0.000008	1&lt;br /&gt;
1	13999922	C	A	0.000008	1&lt;br /&gt;
1	13999923	A	C	0.000008	1&lt;br /&gt;
1	13999924	G	A	0.000008	1&lt;br /&gt;
1	13999925	G	A	0.000008	1&lt;br /&gt;
1	13999926	A	C	0.000008	1&lt;br /&gt;
1	13999927	G	A	0.000008	1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we do a filter with MAF cutoff of 1\%&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
../angsd0.3/angsd -doMaf 2 -doMajorMinor 1 -out TSK -bam bam.filelist -GL 1 -r 1: -minMaf 0.01&lt;br /&gt;
head TSK.mafs &lt;br /&gt;
chromo	position	major	minor	knownEM	nInd&lt;br /&gt;
1	13999950	T	G	0.495291	2&lt;br /&gt;
1	14000019	G	T	0.047247	9&lt;br /&gt;
1	14000056	C	T	0.055851	10&lt;br /&gt;
1	14000127	G	T	0.060760	10&lt;br /&gt;
1	14000170	C	T	0.052388	9&lt;br /&gt;
1	14000176	G	A	0.047928	10&lt;br /&gt;
1	14000202	G	A	0.279722	9&lt;br /&gt;
1	14000262	C	T	0.058555	9&lt;br /&gt;
1	14000322	A	G	0.040471	8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similar if we only want sites with information for atleast 5 samples&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
../angsd0.3/angsd -doMaf 2 -doMajorMinor 1 -out TSK -bam bam.filelist -GL 1 -r 1: -minKeepInd 5&lt;br /&gt;
head TSK.mafs &lt;br /&gt;
chromo	position	major	minor	knownEM	nInd&lt;br /&gt;
1	13999971	T	A	0.000007	6&lt;br /&gt;
1	13999972	G	A	0.000007	6&lt;br /&gt;
1	13999973	C	A	0.000005	5&lt;br /&gt;
1	13999974	G	A	0.000006	6&lt;br /&gt;
1	13999975	C	A	0.000002	5&lt;br /&gt;
1	13999976	C	A	0.000004	7&lt;br /&gt;
1	13999977	A	C	0.000005	8&lt;br /&gt;
1	13999978	C	A	0.000005	8&lt;br /&gt;
1	13999979	T	A	0.000005	8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If we are interested in all sites with a p-value of 10^(-6) of being variable&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
../angsd0.3/angsd -doMaf 2 -doMajorMinor 1 -out TSK -bam bam.filelist -GL 1 -r 1: -minLRT 24 -doSNP 1 &lt;br /&gt;
head TSK.mafs &lt;br /&gt;
chromo	position	major	minor	knownEM	pK-EM	nInd&lt;br /&gt;
1	14000202	G	A	0.279722	42.623150	9&lt;br /&gt;
1	14000873	G	A	0.212120	79.118476	10&lt;br /&gt;
1	14001018	T	C	0.333736	89.040311	8&lt;br /&gt;
1	14001867	A	G	0.200232	47.195423	10&lt;br /&gt;
1	14002422	A	T	0.167692	43.196259	9&lt;br /&gt;
1	14003581	C	T	0.207404	58.593208	9&lt;br /&gt;
1	14004623	T	C	0.219838	102.856433	10&lt;br /&gt;
1	14007493	A	G	0.453217	28.398647	9&lt;br /&gt;
1	14007558	C	T	0.395670	80.236777	7&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Deprecated options==&lt;br /&gt;
These options should either be included (as is) or be discarded&lt;br /&gt;
&lt;br /&gt;
;-minDepth:&lt;br /&gt;
;-maxDepth:&lt;/div&gt;</summary>
		<author><name>Line</name></author>
	</entry>
	<entry>
		<id>https://www.popgen.dk/angsd/index.php?title=Filters&amp;diff=233</id>
		<title>Filters</title>
		<link rel="alternate" type="text/html" href="https://www.popgen.dk/angsd/index.php?title=Filters&amp;diff=233"/>
		<updated>2012-09-24T11:13:35Z</updated>

		<summary type="html">&lt;p&gt;Line: /* Selected Sites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In most analysis you are only interested in a subset of sites and not all sites. Currently we have the following filter options.&lt;br /&gt;
&lt;br /&gt;
=Selected Sites=&lt;br /&gt;
&lt;br /&gt;
-filter [bimfile.bim]&lt;br /&gt;
&lt;br /&gt;
In addition the options -doMaf 2 -GL 1 must be provided.&lt;br /&gt;
&lt;br /&gt;
With -doMajorMinor 3 the major/minor alleles from the bim file is used.&lt;br /&gt;
&lt;br /&gt;
=Allele frequencies=&lt;br /&gt;
; -minMaf [float]: only work with sites with a maf above 'float'&lt;br /&gt;
&lt;br /&gt;
=polymorphic sites=&lt;br /&gt;
&lt;br /&gt;
; -minLRT [float]: only work with sits with an LRT&amp;gt;float&lt;br /&gt;
&lt;br /&gt;
=Major minor=&lt;br /&gt;
=Number of non missing individuals=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; -minKeepInd [int]: only work with sites with information from atleast int individiduals&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First we do a run with no filters&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./angsd  -doMaf 2 -doMajorMinor 1 -out TSK -bam bam.filelist -GL 1 -r 1:&lt;br /&gt;
...&lt;br /&gt;
head TSK.mafs &lt;br /&gt;
chromo	position	major	minor	knownEM	nInd&lt;br /&gt;
1	13999919	A	C	0.000008	1&lt;br /&gt;
1	13999920	G	A	0.000008	1&lt;br /&gt;
1	13999921	G	A	0.000008	1&lt;br /&gt;
1	13999922	C	A	0.000008	1&lt;br /&gt;
1	13999923	A	C	0.000008	1&lt;br /&gt;
1	13999924	G	A	0.000008	1&lt;br /&gt;
1	13999925	G	A	0.000008	1&lt;br /&gt;
1	13999926	A	C	0.000008	1&lt;br /&gt;
1	13999927	G	A	0.000008	1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we do a filter with MAF cutoff of 1\%&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
../angsd0.3/angsd -doMaf 2 -doMajorMinor 1 -out TSK -bam bam.filelist -GL 1 -r 1: -minMaf 0.01&lt;br /&gt;
head TSK.mafs &lt;br /&gt;
chromo	position	major	minor	knownEM	nInd&lt;br /&gt;
1	13999950	T	G	0.495291	2&lt;br /&gt;
1	14000019	G	T	0.047247	9&lt;br /&gt;
1	14000056	C	T	0.055851	10&lt;br /&gt;
1	14000127	G	T	0.060760	10&lt;br /&gt;
1	14000170	C	T	0.052388	9&lt;br /&gt;
1	14000176	G	A	0.047928	10&lt;br /&gt;
1	14000202	G	A	0.279722	9&lt;br /&gt;
1	14000262	C	T	0.058555	9&lt;br /&gt;
1	14000322	A	G	0.040471	8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similar if we only want sites with information for atleast 5 samples&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
../angsd0.3/angsd -doMaf 2 -doMajorMinor 1 -out TSK -bam bam.filelist -GL 1 -r 1: -minKeepInd 5&lt;br /&gt;
head TSK.mafs &lt;br /&gt;
chromo	position	major	minor	knownEM	nInd&lt;br /&gt;
1	13999971	T	A	0.000007	6&lt;br /&gt;
1	13999972	G	A	0.000007	6&lt;br /&gt;
1	13999973	C	A	0.000005	5&lt;br /&gt;
1	13999974	G	A	0.000006	6&lt;br /&gt;
1	13999975	C	A	0.000002	5&lt;br /&gt;
1	13999976	C	A	0.000004	7&lt;br /&gt;
1	13999977	A	C	0.000005	8&lt;br /&gt;
1	13999978	C	A	0.000005	8&lt;br /&gt;
1	13999979	T	A	0.000005	8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If we are interested in all sites with a p-value of 10^(-6) of being variable&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
../angsd0.3/angsd -doMaf 2 -doMajorMinor 1 -out TSK -bam bam.filelist -GL 1 -r 1: -minLRT 24 -doSNP 1 &lt;br /&gt;
head TSK.mafs &lt;br /&gt;
chromo	position	major	minor	knownEM	pK-EM	nInd&lt;br /&gt;
1	14000202	G	A	0.279722	42.623150	9&lt;br /&gt;
1	14000873	G	A	0.212120	79.118476	10&lt;br /&gt;
1	14001018	T	C	0.333736	89.040311	8&lt;br /&gt;
1	14001867	A	G	0.200232	47.195423	10&lt;br /&gt;
1	14002422	A	T	0.167692	43.196259	9&lt;br /&gt;
1	14003581	C	T	0.207404	58.593208	9&lt;br /&gt;
1	14004623	T	C	0.219838	102.856433	10&lt;br /&gt;
1	14007493	A	G	0.453217	28.398647	9&lt;br /&gt;
1	14007558	C	T	0.395670	80.236777	7&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Deprecated options==&lt;br /&gt;
These options should either be included (as is) or be discarded&lt;br /&gt;
&lt;br /&gt;
;-minDepth:&lt;br /&gt;
;-maxDepth:&lt;/div&gt;</summary>
		<author><name>Line</name></author>
	</entry>
	<entry>
		<id>https://www.popgen.dk/angsd/index.php?title=Depth&amp;diff=224</id>
		<title>Depth</title>
		<link rel="alternate" type="text/html" href="https://www.popgen.dk/angsd/index.php?title=Depth&amp;diff=224"/>
		<updated>2012-09-21T14:24:59Z</updated>

		<summary type="html">&lt;p&gt;Line: Created page with &amp;quot;Depth  -doDepth 1 -doCount 1  Prints the frequencies of depths for each individual to .depth file.   Options  - maxDepth [int]  Defaults to 100. Sites with more than maxDepth ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Depth&lt;br /&gt;
&lt;br /&gt;
-doDepth 1 -doCount 1&lt;br /&gt;
&lt;br /&gt;
Prints the frequencies of depths for each individual to .depth file. &lt;br /&gt;
&lt;br /&gt;
Options&lt;br /&gt;
&lt;br /&gt;
- maxDepth [int]&lt;br /&gt;
&lt;br /&gt;
Defaults to 100.&lt;br /&gt;
Sites with more than maxDepth reads are counted as having 100 reads.&lt;br /&gt;
&lt;br /&gt;
Output&lt;br /&gt;
&lt;br /&gt;
The outputfile .depth has one line per individual, with maxDepth entries.&lt;/div&gt;</summary>
		<author><name>Line</name></author>
	</entry>
</feed>