<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://genome.sph.umich.edu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bingshan+Li</id>
	<title>Genome Analysis Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://genome.sph.umich.edu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bingshan+Li"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/wiki/Special:Contributions/Bingshan_Li"/>
	<updated>2026-09-24T11:59:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=File:Polymutt.tar.gz&amp;diff=3226</id>
		<title>File:Polymutt.tar.gz</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=File:Polymutt.tar.gz&amp;diff=3226"/>
		<updated>2011-06-01T19:50:46Z</updated>

		<summary type="html">&lt;p&gt;Bingshan Li: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bingshan Li</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Polymutt:_a_tool_for_calling_polymorphism_and_de_novo_mutations_in_families_for_sequencing_data&amp;diff=3225</id>
		<title>Polymutt: a tool for calling polymorphism and de novo mutations in families for sequencing data</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Polymutt:_a_tool_for_calling_polymorphism_and_de_novo_mutations_in_families_for_sequencing_data&amp;diff=3225"/>
		<updated>2011-06-01T19:47:00Z</updated>

		<summary type="html">&lt;p&gt;Bingshan Li: Created page with &amp;#039;== Introduction == * The program &amp;#039;&amp;#039;&amp;#039;polymutt&amp;#039;&amp;#039;&amp;#039; implemented a likelihood-based framework  for calling &amp;#039;&amp;#039;&amp;#039;single nucleotide variants&amp;#039;&amp;#039;&amp;#039; and detecting &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;de novo&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;point mu…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
* The program &#039;&#039;&#039;polymutt&#039;&#039;&#039; implemented a likelihood-based framework  for calling &#039;&#039;&#039;single nucleotide variants&#039;&#039;&#039; and detecting &#039;&#039;&#039;&#039;&#039;de novo&#039;&#039;&#039;&#039;&#039; &#039;&#039;&#039;point mutation&#039;&#039;&#039; events in families for next-generation sequencing data. The program takes as input genotype likelihood format (GLF) files which can be generated following the  [[#Creation of GLF files | Creation of GLF files]] instruction and outputs the result in the [[http://www.1000genomes.org/node/101 VCF]] format. The variant calling and &#039;&#039;de novo&#039;&#039; mutation detection are modelled jointly within families and can handle both nuclear and extended pedigrees without consanguinity loops. The input is a set of GLF files for each of family members and the relationships are specified through the .ped file.&lt;br /&gt;
&lt;br /&gt;
* The evidence of variants and &#039;&#039;de novo&#039;&#039; mutations are assessed probabilistically. For a variant, the QUAL value is calculated as -10*log10(1-posterior(Variant | Data)) and for &#039;&#039;de novo&#039;&#039; mutation events a &#039;&#039;de novo&#039;&#039; quality (DQ) value is defined as log10(lk_denovo / lk_no_denovo) where lk_denovo and lk_no_denovo are the likelihoods of data allowing and disallowing &#039;&#039;de novo&#039;&#039; mutations respectively. Similarly, for each genotype, a genotype quality (GQ) value is defined as -10*log10(1-posterior(Genotype | Data)).&lt;br /&gt;
&lt;br /&gt;
* Since unrelated individuals are kind of special case of families, unrelated individuals or a mixture of related and unrelated individuals can be handled. &lt;br /&gt;
&lt;br /&gt;
* If some individuals in a family are not sequenced, this can be handled by setting the corresponding GLF file indices to zero for those family members who are not sequenced.&lt;br /&gt;
&lt;br /&gt;
* See below for more details.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
A command without any input will display the basic usage&lt;br /&gt;
&lt;br /&gt;
 polymutt&lt;br /&gt;
&lt;br /&gt;
 The following parameters are in effect:&lt;br /&gt;
                       pedfile :                 (-pname)&lt;br /&gt;
                       datfile :                 (-dname)&lt;br /&gt;
                   glfIndexFile :                 (-gname)&lt;br /&gt;
                        cutoff :           0.500 (-c99.999)&lt;br /&gt;
&lt;br /&gt;
 Additional Options&lt;br /&gt;
       Map Quality Filter : --minMapQuality&lt;br /&gt;
             Depth Filter : --minDepth, --maxDepth,&lt;br /&gt;
                            --minPercSampleWithData [0.00]&lt;br /&gt;
     Scaled mutation rate : --theta [1.0e-03]&lt;br /&gt;
   Optimization precision : --prec [1.0e-04]&lt;br /&gt;
         de novo mutation : --denovo, --rate_denovo [0.00],&lt;br /&gt;
                            --tstv_denovo [0.50], --min_denovo_LLR [0.00]&lt;br /&gt;
                   Output : --vcf [variantCalls.vcf]&lt;br /&gt;
       Multiple threading : --nthreads [1]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example command for variant calling looks like the following:&lt;br /&gt;
 polymutt -p in.ped -d in.dat -g glfIndexFile --vcf out.vcf --nthreads 4&lt;br /&gt;
&lt;br /&gt;
An example command for &#039;&#039;de novo&#039;&#039; mutation detection is as follows:&lt;br /&gt;
 polymutt -p in.ped -d in.dat -g glfIndexFile --denovo --rate_denovo 1.5e-08 --min_denovo_LLR 1.0 --vcf out.denovo.vcf --nthreads 4&lt;br /&gt;
&lt;br /&gt;
== Input files ==&lt;br /&gt;
&lt;br /&gt;
Required input files are -p input.ped -d input.dat -g glfIndex files&lt;br /&gt;
&lt;br /&gt;
* An example in.ped file looks like the following:&lt;br /&gt;
 fam1 p1  0  0   1  1&lt;br /&gt;
 fam1 p2  0  0   2  2&lt;br /&gt;
 fam1 p3  p1 p2  1  3&lt;br /&gt;
 fam2 p4  0  0   1  4&lt;br /&gt;
 fam2 p5  0  0   2  5&lt;br /&gt;
 fam2 p6  p4 p5  1  6&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
* An example in.dat file is like the following (for the 6th column above and in addition other traits/markers can be specified but will be ignored):&lt;br /&gt;
 T GLF_Index&lt;br /&gt;
&lt;br /&gt;
* An example glfIndex file is like the following and the numbers (except zeros) in the 6th column in the above in.ped file have to be present in the first column.&lt;br /&gt;
 1  /home/me/sample1.glf&lt;br /&gt;
 2  /home/me/sample2.glf&lt;br /&gt;
 3  /home/me/sample3.glf&lt;br /&gt;
 4  /home/me/sample4.glf&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
* If some of the members are not sequenced but are in the pedigree because of the relatedness with other members, the GLF_Index column (6th column) in the ped file should be set to zero&lt;br /&gt;
* For unrelated individuals, you can either (1) create a family for each unrelated individual as a founder or (2) put all unrelated individuals as founders in a single family.&lt;br /&gt;
&lt;br /&gt;
== Other options ==&lt;br /&gt;
&lt;br /&gt;
Some of command line options are explained below and others are self-explanatory.&lt;br /&gt;
 &lt;br /&gt;
 -c : minimum cutoff of posterior probability to output a variant&lt;br /&gt;
 --theta : scaled mutation rate per site&lt;br /&gt;
 --nthreads : number of threads to run and it is recommended to use 4 threads for small number of input files.&lt;br /&gt;
&lt;br /&gt;
 --de_novo : a boolean flag to turn on &#039;&#039;de novo&#039;&#039; mutation detection. The following options take effect only when this flag is ON&lt;br /&gt;
 --rate_denovo : mutation rate per haplotype per generation. Usually it is on the order of 1e-08&lt;br /&gt;
 --tstv_denovo : the prior ts/tv ratio of &#039;&#039;de novo&#039;&#039; mutations&lt;br /&gt;
 --min_denovo_LLR : minimum value of log10 likelihood ratio of allowing vs. disallowing &#039;&#039;de novo&#039;&#039; mutations in the data to output&lt;br /&gt;
&lt;br /&gt;
== Output files ==&lt;br /&gt;
* The output file is a VCF file and the specification can be found [[http://www.1000genomes.org/node/101 here]]&lt;br /&gt;
* Since there is no standard to represent &#039;&#039;de novo&#039;&#039; mutations in the current VCF specification, actual genotypes (e.g. [ACGT]/[ACGT]) are output in the VCF file for &#039;&#039;de novo&#039;&#039; mutations.&lt;br /&gt;
* A summary about variant calling statistics is output to STDOUT and it may be redirected to a file for a record.&lt;br /&gt;
&lt;br /&gt;
 Summary of reference -- 9&lt;br /&gt;
 Total Entry Count: 141213431 &lt;br /&gt;
 Total Base Cout: 120124735&lt;br /&gt;
 Total &#039;0&#039; Base Count:       137&lt;br /&gt;
 Non-Polymorphic Count:   655457&lt;br /&gt;
 Transition Count:      6556&lt;br /&gt;
 Transversion Count:      3127&lt;br /&gt;
 Other Polymorphism Count:         0&lt;br /&gt;
 Filter counts:&lt;br /&gt;
        minMapQual 4550&lt;br /&gt;
        minTotalDepth 1089&lt;br /&gt;
        maxTotalDepth 736&lt;br /&gt;
 Hard to call:         0&lt;br /&gt;
 Skipped bases: 134&lt;br /&gt;
&lt;br /&gt;
== Creation of GLF files ==&lt;br /&gt;
&lt;br /&gt;
* The current version performs variant calling and &#039;&#039;de novo&#039;&#039; mutation detection from files in the genotype likelihood format (GLF). In future versions we plan to take [[http://samtools.sourceforge.net/ SAM/BAM]] files as input. See the following for instructions on how to create GLF files.&lt;br /&gt;
** Download a modified version of samtools ( [[https://github.com/statgen/samtools-0.1.7a-hybrid samtools-hybrid]] )&lt;br /&gt;
** Prepare the reference genome in fasta format and sequence alignments in [[http://samtools.sourceforge.net/ SAM/BAM]] format&lt;br /&gt;
** Generate BAQ adjusted GLF files using the following command&lt;br /&gt;
 samtools view -bh chr1.bam 1:0 | samtools calmd -Abr - human.v37.fa 2&amp;gt; /dev/null | samtools pileup - -g -f human.v37.fa &amp;gt; chr1.bam.glf&lt;br /&gt;
* For other functionalities please refer to the  [[http://samtools.sourceforge.net/ samtools]] website.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
The pre-compiled 64-bit binary executable for linux with test files can be [[Media:polymutt.tar.gz | downloaded]] here . Source code will be available to download soon.&lt;br /&gt;
&lt;br /&gt;
== Contact ==&lt;br /&gt;
For questions please contact the authors (Bingshan Li:  [mailto:bingshan@umich.edu bingshan@umich.edu] or Goncalo Abecasis: [mailto:goncalo@umich.edu goncalo@umich.edu])&lt;/div&gt;</summary>
		<author><name>Bingshan Li</name></author>
	</entry>
</feed>