Difference between revisions of "VcfRefGen"

From Genome Analysis Wiki
Jump to navigationJump to search
Line 28: Line 28:
 
| <code>--filterList <filename></code>
 
| <code>--filterList <filename></code>
 
| filename of file containing regions to include. <br>format: start end <br> start & end positions should be 1-based inclusive positions <br> for SNPs start=end position
 
| filename of file containing regions to include. <br>format: start end <br> start & end positions should be 1-based inclusive positions <br> for SNPs start=end position
 +
|-
 +
| <code>--keepGT <GTs to keep></code>
 +
| comma separated list of genotype fields to keep in addition to the GT field
 +
 
|-
 
|-
 
| <code>--params</code>
 
| <code>--params</code>

Revision as of 17:40, 29 January 2013

vcfRefGen is a tool for generating VCF reference panels for minimac imputation. It reduces VCF files by removing the info field, saving only the GT genotype field and removing any records where any kept sample is not phased or is missing a genotype.

Download

Source code can in: VcfRefGen.0.1.3.tgz‎ - Released 01/29/2013

Parameter

Parameter Description
--in <filename> Input VCF filename. The latest 1000 Genomes files can be found here.
--out <filename> Output VCF filename.
--uncompress write an uncompressed VCF output file.
--sampleSubset <filename> filename of file with samples IDs to keep (one sample ID per line).
--minAC minor allele count to keep.
--filterList <filename> filename of file containing regions to include.
format: start end
start & end positions should be 1-based inclusive positions
for SNPs start=end position
--keepGT <GTs to keep> comma separated list of genotype fields to keep in addition to the GT field
--params print the parameter settings

Example

Please find below the command we used for generating MetaboChip specific reference panels from 1000 Genomes data:

   foreach chr (`seq 1 22`)

     runon -m 1024 vcfRefGen --in ALL.chr$chr.phase1_release_v3.20101123.snps_indels_svs.genotypes.vcf.gz \
               --out chr$chr.metabo.phase1_release_v3.20101123.snps_indels_svs.genotypes.refpanel.ALL.vcf.gz \
               --minAC 2 --filterList chr$chr.filter.regions
   end

Questions and Comments

Please contact Christian Fuchsberger or Mary Kate Wing