<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Filter</title><link>https://sourceforge.net/p/geneticthesaurus/wiki/Filter/</link><description>Recent changes to Filter</description><atom:link href="https://sourceforge.net/p/geneticthesaurus/wiki/Filter/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 19 Aug 2015 09:40:46 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/geneticthesaurus/wiki/Filter/feed" rel="self" type="application/rss+xml"/><item><title>Filter modified by Tomasz</title><link>https://sourceforge.net/p/geneticthesaurus/wiki/Filter/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -33,50 +33,6 @@

-####Evaluating thesaurus output####
-
-To evaluate the performance of thesaurus annotation, you can compare sets of variant calls,
-
-   java -jar GeneticThesaurus.jar compare
-       --genome your.genome.fa
-       --ref true.variants.vcf.gz
-       --vcf called.variants.vcf.gz
-       --synonyms called.variants.vtf.gz
-
-This program requires two vcf files, one of which is treated as a ground truth and the other as a set of called variants. The program also accepts a VTF file with alternate loci. The output consists of multiple files separating variants into groups:
-
-* True Positiives (TP) - sites in the VCF that match the ground truth; 
-* Thesaurus True Positives (TTP) - sites in the VCF that do not match the ground truth, but for which one of the annotated alternate sites matches the ground truth;
-* False Positives (FP) - sites in the VCF which do not match the ground truth and for which none of the alternate sites matches the ground truth;
-* False Negatives (FN) - sites in the ground truth set that are not recorded in the VCF or in the synonyms file.
-
-*Note:* Also check out the R package [RGeneticThesaurus](https://github.com/tkonopka/RGeneticThesaurus). This package can load variants and thesaurus annotations into R data frames and thus enables several types of variant analyses.
-
-####Network analysis####
-
-Thesaurus annotation creates conceptual links between multiple sites in the genome. Sometimes, annotation can link multiple sites in a VCF file together - this can arise if evidence for a true variant is distributed onto, say, two genomic sites which are identified separately during variant calling. To identify such clusters of variants, run the network program,
-
-   java -jar GeneticThesaurus.jar network
-       --genome your.genome.fa
-       --vcf variants.thesaurus.vcf.gz
-       --vtf variants.thesaurus.vtf.gz
-       --output variants.clusters
-
-Output will consist of a table with one entry per line in the VCF file. Each variant will also be labeled with a cluster number. Variants with identical cluster number are linked with a thesaurus annotation.
-
-
-
-####Using a variant database####
-
-Sometimes it is useful to know whether links point to previously known sites of variation. To integrate variant ids into a thesaurus analysis, run the vtf annotation tools,
-
-    java -jar GeneticThesaurus.jar annotatevtf
-        --vtf variants.thesaurus.vtf.gz
-        --database dbSNP.vcf.gz
-        --output variants.thesaurus.dbSNP.vtf.gz
-
-The output will consist of a new vtf file, but this new file will incorporate variant ids from the databse. 
-
 ####Tuning filtering####

 The thesaurus annotation program can be tuned in a number of ways. You can run the program without any other settings to see a listing of all the available options. 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz</dc:creator><pubDate>Wed, 19 Aug 2015 09:40:46 -0000</pubDate><guid>https://sourceforge.netc39b685798f1087d67f261d026d7a30e41e04ab5</guid></item><item><title>Filter modified by Tomasz</title><link>https://sourceforge.net/p/geneticthesaurus/wiki/Filter/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz</dc:creator><pubDate>Wed, 19 Aug 2015 09:40:00 -0000</pubDate><guid>https://sourceforge.netc87c09c4805adae8cb93e54cda7fc1a1e42ad582</guid></item><item><title>Annotate modified by Tomasz</title><link>https://sourceforge.net/p/geneticthesaurus/wiki/Annotate/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -50,7 +50,7 @@
 * False Positives (FP) - sites in the VCF which do not match the ground truth and for which none of the alternate sites matches the ground truth;
 * False Negatives (FN) - sites in the ground truth set that are not recorded in the VCF or in the synonyms file.

-
+*Note:* Also check out the R package [RGeneticThesaurus](https://github.com/tkonopka/RGeneticThesaurus). This package can load variants and thesaurus annotations into R data frames and thus enables several types of variant analyses.

 ####Network analysis####

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz</dc:creator><pubDate>Wed, 19 Aug 2015 09:37:28 -0000</pubDate><guid>https://sourceforge.netd412b82fd1c4538d1de221e1a83f8b2ae23c823f</guid></item><item><title>Annotate modified by Tomasz</title><link>https://sourceforge.net/p/geneticthesaurus/wiki/Annotate/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,6 +1,8 @@
 ##Annotating variants using a thesaurus##

 A thesaurus resource is meant to be used to detect and annotate single nucleotide variants in repetitive genomic regions. This process, here called variant filtering, requires access to a thesaurus table, a set of called variants, and a matching alignment file. 
+
+

 ####Filtering variants####

@@ -28,6 +30,7 @@
 The third output file will be labeled *baf* (B-allele frequencies). It will contain a table with one entry per variant. Next to the variant position, the file will convey the B-allele frequency as evaluate by naive read counting at the locus. For variants annotated with the thesaurus, there will also be another B-allele frequency estimate that is based on read counting on all alternate loci.

 The filtering procedure can take several hours and use considerable memory (allow say 10 hours and 24GB or RAM for processing a 30x whole genome dataset). 
+

 ####Evaluating thesaurus output####
@@ -60,8 +63,19 @@
        --output variants.clusters

 Output will consist of a table with one entry per line in the VCF file. Each variant will also be labeled with a cluster number. Variants with identical cluster number are linked with a thesaurus annotation.
-   

+
+
+####Using a variant database####
+
+Sometimes it is useful to know whether links point to previously known sites of variation. To integrate variant ids into a thesaurus analysis, run the vtf annotation tools,
+
+    java -jar GeneticThesaurus.jar annotatevtf
+        --vtf variants.thesaurus.vtf.gz
+        --database dbSNP.vcf.gz
+        --output variants.thesaurus.dbSNP.vtf.gz
+
+The output will consist of a new vtf file, but this new file will incorporate variant ids from the databse. 

 ####Tuning filtering####

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz</dc:creator><pubDate>Wed, 19 Aug 2015 09:33:28 -0000</pubDate><guid>https://sourceforge.netab081055f997ec67efa68716f82c15632832a422</guid></item><item><title>Annotate modified by Tomasz</title><link>https://sourceforge.net/p/geneticthesaurus/wiki/Annotate/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -78,4 +78,4 @@
 * --hitproportion &amp;lt;INT&amp;gt; - proportion of reads containing the variant that must be consistent with a thesaurus link. 
 * --many &amp;lt;INT&amp;gt; - number of thesaurus links proposed with the standard tolerance settings. When a variant is linked with more sites, then the tolerance parameters are automatically made more strict.
 * --toomany &amp;lt;INT&amp;gt; - maximum number of thesaurus links allowed in the output. Variants with more links are labeled as 'thesaurusmany'
-* --validate &amp;lt;STRING&amp;gt; - parameter passed on to 
+* --validate &amp;lt;STRING&amp;gt; - parameter passed on to parser of SAM records
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz</dc:creator><pubDate>Fri, 19 Jun 2015 13:51:41 -0000</pubDate><guid>https://sourceforge.neta822a8fd97236845b61187a4d93a724818e9ced7</guid></item><item><title>Annotate modified by Tomasz</title><link>https://sourceforge.net/p/geneticthesaurus/wiki/Annotate/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -63,3 +63,19 @@

+####Tuning filtering####
+
+The thesaurus annotation program can be tuned in a number of ways. You can run the program without any other settings to see a listing of all the available options. 
+
+In brief, they can be used as follows:
+
+* --insertsize &amp;lt;INT&amp;gt; - expected insert size length for paired reads. This is important because the position of pairing mates are used to eliminate thesaurus link candidates. 
+* --clip &amp;lt;INT&amp;gt; - number of base pairs at read ends that are temporarily clipped. Use this parameter to ignore errors near read extremities. 
+* --minmapqual &amp;lt;INT&amp;gt; - minimum mapping quality. Use this setting to set consistency with the variant calling workflow.
+* --readlen &amp;lt;INT&amp;gt; - length of reads.
+* --tolerance &amp;lt;INT&amp;gt; - number of tolerated mismatches between a read and the reference sequence. Use this parameter to increase/decrease the number of thesaurus links proposed in the output.
+* --maxtolerance &amp;lt;INT&amp;gt; - number of tolerated mismatches between a read and the reference sequence, including called variants. 
+* --hitproportion &amp;lt;INT&amp;gt; - proportion of reads containing the variant that must be consistent with a thesaurus link. 
+* --many &amp;lt;INT&amp;gt; - number of thesaurus links proposed with the standard tolerance settings. When a variant is linked with more sites, then the tolerance parameters are automatically made more strict.
+* --toomany &amp;lt;INT&amp;gt; - maximum number of thesaurus links allowed in the output. Variants with more links are labeled as 'thesaurusmany'
+* --validate &amp;lt;STRING&amp;gt; - parameter passed on to 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz</dc:creator><pubDate>Fri, 19 Jun 2015 13:37:47 -0000</pubDate><guid>https://sourceforge.net931c976d9ab864bd521841e59bf00517b237e1ff</guid></item><item><title>Annotate modified by Tomasz</title><link>https://sourceforge.net/p/geneticthesaurus/wiki/Annotate/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,7 +1,6 @@
 ##Annotating variants using a thesaurus##

-A thesaurus resource is meant to be used to detect and annotate single nucleotide variants in repetitive genomic regions. This process, here called
-variant filtering, requires access to a thesaurus table, a set of called variants, and a matching alignment file. 
+A thesaurus resource is meant to be used to detect and annotate single nucleotide variants in repetitive genomic regions. This process, here called variant filtering, requires access to a thesaurus table, a set of called variants, and a matching alignment file. 

 ####Filtering variants####

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz</dc:creator><pubDate>Mon, 12 Jan 2015 10:25:08 -0000</pubDate><guid>https://sourceforge.netedeea8dbb9c07728cadf1f957435e04e7b986abb</guid></item><item><title>Annotate modified by Tomasz</title><link>https://sourceforge.net/p/geneticthesaurus/wiki/Annotate/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="annotating-variants-using-a-thesaurus"&gt;Annotating variants using a thesaurus&lt;/h2&gt;
&lt;p&gt;A thesaurus resource is meant to be used to detect and annotate single nucleotide variants in repetitive genomic regions. This process, here called&lt;br /&gt;
variant filtering, requires access to a thesaurus table, a set of called variants, and a matching alignment file. &lt;/p&gt;
&lt;h4 id="filtering-variants"&gt;Filtering variants&lt;/h4&gt;
&lt;p&gt;To annotate an existing variant call file, use the command&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;java&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;jar&lt;/span&gt; &lt;span class="n"&gt;GeneticThesaurus&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jar&lt;/span&gt; &lt;span class="n"&gt;filter&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;genome&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;genome&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fa&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;bam&lt;/span&gt; &lt;span class="n"&gt;alignment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bam&lt;/span&gt; 
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;vcf&lt;/span&gt; &lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;vcf&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;thesaurus&lt;/span&gt; &lt;span class="n"&gt;thesaurus&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tsv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt; &lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;thesaurus&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This should produce three output files called &lt;em&gt;variants.thesaurus.vcf.gz&lt;/em&gt;, &lt;em&gt;variants.thesaurus.vtf.gz&lt;/em&gt;, and &lt;em&gt;variants.thesaurus.baf.tsv.gz&lt;/em&gt; (all files are automatically compressed)&lt;/p&gt;
&lt;p&gt;The first file will be in conventional VCF format. It will preserve all information from the original (including filter status), but will also  update each variant's status in the filter column. The new filter codes are&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;thesaurus - the variant can be linked with another locus;&lt;/li&gt;
&lt;li&gt;thesaurusmany - the variant can be linked to a large number of multiple loci;&lt;/li&gt;
&lt;li&gt;thesaurushard - the variant lies in a region present in the thesaurus, but the read structure is complex and the alternate loci could not be computed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In addition to the filter codes, each variant in the VCF file will be annotated with a new numeric tag TS (Thesaurus Synonyms) in the sample genotype column. The tag will show the number of alternate sites associated with the variant (0 for variants in non-repetitive regions, larger than 0 for annotated variants).&lt;/p&gt;
&lt;p&gt;The second file will be labelled VTF (Variant Thesaurus File). It will consist of one line per variant annotated with the &lt;em&gt;thesaurus&lt;/em&gt; filter. Each line will contain two or more tab-separated elements. The first will be the locus of a called variant, subsequent elements the alternate variant sites.&lt;/p&gt;
&lt;p&gt;The third output file will be labeled &lt;em&gt;baf&lt;/em&gt; (B-allele frequencies). It will contain a table with one entry per variant. Next to the variant position, the file will convey the B-allele frequency as evaluate by naive read counting at the locus. For variants annotated with the thesaurus, there will also be another B-allele frequency estimate that is based on read counting on all alternate loci.&lt;/p&gt;
&lt;p&gt;The filtering procedure can take several hours and use considerable memory (allow say 10 hours and 24GB or RAM for processing a 30x whole genome dataset). &lt;/p&gt;
&lt;h4 id="evaluating-thesaurus-output"&gt;Evaluating thesaurus output&lt;/h4&gt;
&lt;p&gt;To evaluate the performance of thesaurus annotation, you can compare sets of variant calls,&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;java&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;jar&lt;/span&gt; &lt;span class="n"&gt;GeneticThesaurus&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jar&lt;/span&gt; &lt;span class="n"&gt;compare&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;genome&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;genome&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fa&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;ref&lt;/span&gt; &lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;vcf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;vcf&lt;/span&gt; &lt;span class="n"&gt;called&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;vcf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;synonyms&lt;/span&gt; &lt;span class="n"&gt;called&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;vtf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This program requires two vcf files, one of which is treated as a ground truth and the other as a set of called variants. The program also accepts a VTF file with alternate loci. The output consists of multiple files separating variants into groups:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;True Positiives (TP) - sites in the VCF that match the ground truth; &lt;/li&gt;
&lt;li&gt;Thesaurus True Positives (TTP) - sites in the VCF that do not match the ground truth, but for which one of the annotated alternate sites matches the ground truth;&lt;/li&gt;
&lt;li&gt;False Positives (FP) - sites in the VCF which do not match the ground truth and for which none of the alternate sites matches the ground truth;&lt;/li&gt;
&lt;li&gt;False Negatives (FN) - sites in the ground truth set that are not recorded in the VCF or in the synonyms file.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="network-analysis"&gt;Network analysis&lt;/h4&gt;
&lt;p&gt;Thesaurus annotation creates conceptual links between multiple sites in the genome. Sometimes, annotation can link multiple sites in a VCF file together - this can arise if evidence for a true variant is distributed onto, say, two genomic sites which are identified separately during variant calling. To identify such clusters of variants, run the network program,&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;java&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;jar&lt;/span&gt; &lt;span class="n"&gt;GeneticThesaurus&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jar&lt;/span&gt; &lt;span class="n"&gt;network&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;genome&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;genome&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fa&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;vcf&lt;/span&gt; &lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;thesaurus&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;vcf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;vtf&lt;/span&gt; &lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;thesaurus&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;vtf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt; &lt;span class="n"&gt;variants&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clusters&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Output will consist of a table with one entry per line in the VCF file. Each variant will also be labeled with a cluster number. Variants with identical cluster number are linked with a thesaurus annotation.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz</dc:creator><pubDate>Sat, 03 May 2014 06:45:44 -0000</pubDate><guid>https://sourceforge.netb73da097ef8239069b41de7743554fef4dabc46a</guid></item></channel></rss>