<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=Vcf2geno</id>
	<title>Vcf2geno - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://genome.sph.umich.edu/w/index.php?action=history&amp;feed=atom&amp;title=Vcf2geno"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Vcf2geno&amp;action=history"/>
	<updated>2026-09-28T08:14:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Vcf2geno&amp;diff=6472&amp;oldid=prev</id>
		<title>Zhanxw: Created page with &#039;= vcf2geno =  Convert VCF files to genotype file and site file.  == Input File ==  Vcf2geno takes VCF files. They can be in plain text or GZIP/BGZIP compressed formats.  == Outpu…&#039;</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Vcf2geno&amp;diff=6472&amp;oldid=prev"/>
		<updated>2013-02-19T21:01:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;= vcf2geno =  Convert VCF files to genotype file and site file.  == Input File ==  Vcf2geno takes VCF files. They can be in plain text or GZIP/BGZIP compressed formats.  == Outpu…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= vcf2geno =&lt;br /&gt;
&lt;br /&gt;
Convert VCF files to genotype file and site file.&lt;br /&gt;
&lt;br /&gt;
== Input File ==&lt;br /&gt;
&lt;br /&gt;
Vcf2geno takes VCF files. They can be in plain text or GZIP/BGZIP compressed formats.&lt;br /&gt;
&lt;br /&gt;
== Outputs ==&lt;br /&gt;
&lt;br /&gt;
Vcf2geno generates two sets of first: prefix.geno and preifx.site where &amp;#039;&amp;#039;prefix&amp;#039;&amp;#039; is the given parameter to &amp;#039;&amp;#039;--out&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
A .geno file is shown below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;X1  X1  0   -9  0   0   0   2   2   2   2   2   2&lt;br /&gt;
X2  X2  -9  -9  0   0   0   2   2   2   2   2   2&lt;br /&gt;
X3  X3  0   -9  0   0   0   2   2   2   2   2   2&lt;br /&gt;
X4  X4  0   -9  0   0   0   2   2   2   2   2   2&lt;br /&gt;
X5  X5  0   -9  0   0   0   2   2   1   2   2   2&lt;br /&gt;
X6  X6  0   -9  0   0   0   2   2   2   2   2   -9&amp;lt;/pre&amp;gt;&lt;br /&gt;
The first and second columns are sample IDs copied from the header of VCF files. From column 3 till the last the column, they are individual level genotype converted from VCF files.&lt;br /&gt;
&lt;br /&gt;
A .site file is shwon below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;CHROM   POS ID  REF ALT&lt;br /&gt;
1   10  1:10    A   T&lt;br /&gt;
1   20  1:20    G   C&lt;br /&gt;
1   30  1:30    C   A&lt;br /&gt;
1   40  1:40    A   C&lt;br /&gt;
1   10000   1:10000 G   C&lt;br /&gt;
1   20000   1:20000 T   A&lt;br /&gt;
4   5000    4:5000  A   T&lt;br /&gt;
4   6000    4:6000  C   T&lt;br /&gt;
X   800 X:800   A   C&lt;br /&gt;
X   900 X:900   A   T&lt;br /&gt;
X   1000    X:1000  T   G&amp;lt;/pre&amp;gt;&lt;br /&gt;
The content of .site file begins with a header line, and thus the content part from the second line is chromosome, positions, reference alleles and alternative alleles.&lt;br /&gt;
&lt;br /&gt;
== Options ==&lt;br /&gt;
&lt;br /&gt;
Vcf2geno provides samplexs selection options and range selection options.&lt;br /&gt;
&lt;br /&gt;
There are four options to include/exclude samples: --peopleIncludeID, --peopleExcludeID: specify which samples are included/excluded in conversion, e.g. --peopleIncludeID X1,X2,X3 will convert only 3 people during conversion if input VCF file contains these three samples. --peopleIncludeFile, --peopleExcludeFile: speicify a file to include/exclude samples. Each line of the file should be a sample ID.&lt;br /&gt;
&lt;br /&gt;
There are two options to specify regions. You can convert part of the VCF file using this option, however, your input file must be indexed by TABIX. --rangeList: this options enable you to speicify a range by hand. e.g. --rangeList 1:100-200. Note your chromosome name in the command line should be consistent to the content of the VCF file (e.g. both do not have &amp;#039;chr&amp;#039; prefix). --rangeFile: this optinos speicify range by a given file. Each line of the file should specify a range, e.g. &amp;#039;1:100-200&amp;#039; or alternatively three columns &amp;#039;1 100 200&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Under the &amp;amp;quot;exampleVCF&amp;amp;quot; folder, you can file example.vcf.gz. This is an indexed VCF file. Basica usage of extracting all samples across all regions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;../vcf2geno --inVcf example.vcf.gz --out test&amp;lt;/pre&amp;gt;&lt;br /&gt;
Convert sample X1 from range 1:20-30: ../vcf2geno --inVcf example.vcf.gz --rangeList 1:20-30 --peopleIncludeID X1 --out test&lt;/div&gt;</summary>
		<author><name>Zhanxw</name></author>
	</entry>
</feed>