<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://statgen.us/index.php?action=history&amp;feed=atom&amp;title=RV-TDT</id>
		<title>RV-TDT - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://statgen.us/index.php?action=history&amp;feed=atom&amp;title=RV-TDT"/>
		<link rel="alternate" type="text/html" href="http://statgen.us/index.php?title=RV-TDT&amp;action=history"/>
		<updated>2026-04-05T20:12:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://statgen.us/index.php?title=RV-TDT&amp;diff=669&amp;oldid=prev</id>
		<title>Serveradmin: /* RV-TDT */</title>
		<link rel="alternate" type="text/html" href="http://statgen.us/index.php?title=RV-TDT&amp;diff=669&amp;oldid=prev"/>
				<updated>2018-06-22T16:27:58Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;RV-TDT&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 16:27, 22 June 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot; &gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;### Phasing Trio&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;### Phasing Trio&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;plink --noweb --tfile vat_export --recode12 --me 1 1 --set-me-missing --out &amp;quot;recode12_noME&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;plink --noweb --tfile vat_export --recode12 --me 1 1 --set-me-missing --out &amp;quot;recode12_noME&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort -n -k1 -k6 -k2 recode12_noME.ped | sed 's/ /\t/g' | cut -f1,3,4,5 --complement &amp;amp;gt; linkage.ped cut -f2 recode12_noME.map | awk 'BEGIN{OFS=&amp;quot;\t&amp;quot;;} {print &amp;quot;M&amp;quot;,$0}' | sed '1i\I\tid\nA\tDisease' &amp;amp;gt; linkage.dat&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort -n -k1 -k6 -k2 recode12_noME.ped | sed 's/ /\t/g' | cut -f1,3,4,5 --complement &amp;amp;gt; linkage.ped&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;cut -f2 recode12_noME.map | awk 'BEGIN{OFS=&amp;quot;\t&amp;quot;;} {print &amp;quot;M&amp;quot;,$0}' | sed '1i\I\tid\nA\tDisease' &amp;amp;gt; linkage.dat&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;java -Xmx10000m -jar java/linkage2beagle.jar linkage.dat linkage.ped &amp;amp;gt; pre_beagle.bgl&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;java -Xmx10000m -jar java/linkage2beagle.jar linkage.dat linkage.ped &amp;amp;gt; pre_beagle.bgl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;python script/pre_phase.py -i pre_beagle.bgl -a pre_beagle_withMissing.bgl&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;python script/pre_phase.py -i pre_beagle.bgl -a pre_beagle_withMissing.bgl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Serveradmin</name></author>	</entry>

	<entry>
		<id>http://statgen.us/index.php?title=RV-TDT&amp;diff=625&amp;oldid=prev</id>
		<title>Zhihuiz at 15:38, 7 June 2018</title>
		<link rel="alternate" type="text/html" href="http://statgen.us/index.php?title=RV-TDT&amp;diff=625&amp;oldid=prev"/>
				<updated>2018-06-07T15:38:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:38, 7 June 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;__NOTITLE__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;### Variant Annotation&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==RV-TDT==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;### Variant Annotation&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools init rvtdt&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools init rvtdt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools import --format vcf data/data.vcf --build hg19&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools import --format vcf data/data.vcf --build hg19&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools export func_variant --format tped --samples 'phenotype is not null' &amp;amp;gt; vat_raw.tped&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools export func_variant --format tped --samples 'phenotype is not null' &amp;amp;gt; vat_raw.tped&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# set marker name as chr_pos, needs to avoid duplicate name&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# set marker name as chr_pos, needs to avoid duplicate name&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort -k4 -n vat_raw.tped | awk 'BEGIN{OFS&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;&amp;quot;\t&amp;quot;;prev&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;&amp;quot;None&amp;quot;;copy&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;1} {$2&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;$1&amp;quot;_&amp;quot;$4; $3&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;0; if($2&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&amp;amp;#61;&lt;/del&gt;prev) {$2&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;$2&amp;quot;_&amp;quot;copy; copy&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;copy+1} else {prev&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;$2; copy&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;1}; print $0}' &amp;amp;gt; vat_export.tped&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort -k4 -n vat_raw.tped | awk 'BEGIN{OFS&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;&amp;quot;\t&amp;quot;;prev&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;&amp;quot;None&amp;quot;;copy&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;1} {$2&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;$1&amp;quot;_&amp;quot;$4; $3&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;0; if($2&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;prev) {$2&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;$2&amp;quot;_&amp;quot;copy; copy&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;copy+1} else {prev&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;$2; copy&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;1}; print $0}' &amp;amp;gt; vat_export.tped&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools phenotype --out family sample_name pid mid sex phenotype &amp;amp;gt; vat_export.tfam&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools phenotype --out family sample_name pid mid sex phenotype &amp;amp;gt; vat_export.tfam&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools use refGene-hg19_20130904&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools use refGene-hg19_20130904&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools update func_variant --set 'maf&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;0.001' # set the maf to be 0.001&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools update func_variant --set 'maf&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;0.001' # set the maf to be 0.001&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools select func_variant -o chr pos refGene.name2 maf --header &amp;amp;gt; vat_export.anno&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;vtools select func_variant -o chr pos refGene.name2 maf --header &amp;amp;gt; vat_export.anno&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;### Phasing Trio&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;### Phasing Trio&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;plink --noweb --tfile vat_export --recode12 --me 1 1 --set-me-missing --out &amp;quot;recode12_noME&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;plink --noweb --tfile vat_export --recode12 --me 1 1 --set-me-missing --out &amp;quot;recode12_noME&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort -n -k1 -k6 -k2 recode12_noME.ped | sed 's/ /\t/g' | cut -f1,3,4,5 --complement &amp;amp;gt; linkage.ped cut -f2 recode12_noME.map | awk 'BEGIN{OFS&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;&amp;quot;\t&amp;quot;;} {print &amp;quot;M&amp;quot;,$0}' | sed '1i\I\tid\nA\tDisease' &amp;amp;gt; linkage.dat&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort -n -k1 -k6 -k2 recode12_noME.ped | sed 's/ /\t/g' | cut -f1,3,4,5 --complement &amp;amp;gt; linkage.ped cut -f2 recode12_noME.map | awk 'BEGIN{OFS&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;&amp;quot;\t&amp;quot;;} {print &amp;quot;M&amp;quot;,$0}' | sed '1i\I\tid\nA\tDisease' &amp;amp;gt; linkage.dat&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;java -Xmx10000m -jar java/linkage2beagle.jar linkage.dat linkage.ped &amp;amp;gt; pre_beagle.bgl&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;java -Xmx10000m -jar java/linkage2beagle.jar linkage.dat linkage.ped &amp;amp;gt; pre_beagle.bgl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;python script/pre_phase.py -i pre_beagle.bgl -a pre_beagle_withMissing.bgl&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;python script/pre_phase.py -i pre_beagle.bgl -a pre_beagle_withMissing.bgl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;java -Xmx10000m -jar java/beagle.jar missing&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;0 trios&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;pre_beagle.bgl out&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;bgl_phased verbose&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;false redundant&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;#61;&lt;/del&gt;true&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;java -Xmx10000m -jar java/beagle.jar missing&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;0 trios&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;pre_beagle.bgl out&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;bgl_phased verbose&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;false redundant&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;true&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gunzip bgl_phased.pre_beagle.bgl.phased.gz&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;gunzip bgl_phased.pre_beagle.bgl.phased.gz&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zhihuiz</name></author>	</entry>

	<entry>
		<id>http://statgen.us/index.php?title=RV-TDT&amp;diff=603&amp;oldid=prev</id>
		<title>Serveradmin: Created page with &quot;&lt;pre&gt; ### Variant Annotation vtools init rvtdt vtools import --format vcf data/data.vcf --build hg19 vtools phenotype --from_file data/phen.txt vtools execute ANNOVAR geneanno...&quot;</title>
		<link rel="alternate" type="text/html" href="http://statgen.us/index.php?title=RV-TDT&amp;diff=603&amp;oldid=prev"/>
				<updated>2018-06-07T02:55:05Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; ### Variant Annotation vtools init rvtdt vtools import --format vcf data/data.vcf --build hg19 vtools phenotype --from_file data/phen.txt vtools execute ANNOVAR geneanno...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
### Variant Annotation&lt;br /&gt;
vtools init rvtdt&lt;br /&gt;
vtools import --format vcf data/data.vcf --build hg19&lt;br /&gt;
vtools phenotype --from_file data/phen.txt&lt;br /&gt;
vtools execute ANNOVAR geneanno&lt;br /&gt;
vtools select variant &amp;quot;variant.region_type like '%splicing%'or variant.mut_type like 'nonsynonymous%' or variant.mut_type like 'frameshift%' or variant.mut_type like 'stop%'&amp;quot; -t func_variant&lt;br /&gt;
vtools export func_variant --format tped --samples 'phenotype is not null' &amp;amp;gt; vat_raw.tped&lt;br /&gt;
# set marker name as chr_pos, needs to avoid duplicate name&lt;br /&gt;
sort -k4 -n vat_raw.tped | awk 'BEGIN{OFS&amp;amp;#61;&amp;quot;\t&amp;quot;;prev&amp;amp;#61;&amp;quot;None&amp;quot;;copy&amp;amp;#61;1} {$2&amp;amp;#61;$1&amp;quot;_&amp;quot;$4; $3&amp;amp;#61;0; if($2&amp;amp;#61;&amp;amp;#61;prev) {$2&amp;amp;#61;$2&amp;quot;_&amp;quot;copy; copy&amp;amp;#61;copy+1} else {prev&amp;amp;#61;$2; copy&amp;amp;#61;1}; print $0}' &amp;amp;gt; vat_export.tped&lt;br /&gt;
vtools phenotype --out family sample_name pid mid sex phenotype &amp;amp;gt; vat_export.tfam&lt;br /&gt;
vtools use refGene-hg19_20130904&lt;br /&gt;
vtools update func_variant --set 'maf&amp;amp;#61;0.001' # set the maf to be 0.001&lt;br /&gt;
vtools select func_variant -o chr pos refGene.name2 maf --header &amp;amp;gt; vat_export.anno&lt;br /&gt;
&lt;br /&gt;
### Phasing Trio&lt;br /&gt;
plink --noweb --tfile vat_export --recode12 --me 1 1 --set-me-missing --out &amp;quot;recode12_noME&amp;quot;&lt;br /&gt;
sort -n -k1 -k6 -k2 recode12_noME.ped | sed 's/ /\t/g' | cut -f1,3,4,5 --complement &amp;amp;gt; linkage.ped cut -f2 recode12_noME.map | awk 'BEGIN{OFS&amp;amp;#61;&amp;quot;\t&amp;quot;;} {print &amp;quot;M&amp;quot;,$0}' | sed '1i\I\tid\nA\tDisease' &amp;amp;gt; linkage.dat&lt;br /&gt;
java -Xmx10000m -jar java/linkage2beagle.jar linkage.dat linkage.ped &amp;amp;gt; pre_beagle.bgl&lt;br /&gt;
python script/pre_phase.py -i pre_beagle.bgl -a pre_beagle_withMissing.bgl&lt;br /&gt;
java -Xmx10000m -jar java/beagle.jar missing&amp;amp;#61;0 trios&amp;amp;#61;pre_beagle.bgl out&amp;amp;#61;bgl_phased verbose&amp;amp;#61;false redundant&amp;amp;#61;true&lt;br /&gt;
gunzip bgl_phased.pre_beagle.bgl.phased.gz&lt;br /&gt;
&lt;br /&gt;
### RV-TDT Analysis&lt;br /&gt;
python script/post_phase.py -a vat_export.anno -b bgl_phased.pre_beagle.bgl.phased -o genes/&lt;br /&gt;
for g in `ls genes | grep tped | cut -d&amp;quot;.&amp;quot; -f1 | head -20`&lt;br /&gt;
do&lt;br /&gt;
    echo &amp;quot;running rvTDT on gene &amp;quot;${g}&lt;br /&gt;
    rvTDT exercise_proj -G ./genes/${g}.tped -P ./data/rvtdt.phen -M ./genes/${g}.map --adapt 500 --alpha 0.00001 --permut 2000 --lower_cutoff 0 --upper_cutoff 100 --minVariants 3 --maxMissRatio 1 done&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Serveradmin</name></author>	</entry>

	</feed>