##VCF in UCSC
Note, documentation is now available here: http://genome.ucsc.edu/goldenPath/help/vcf.html
It's possible to display a vcf in the UCSC genome browser
First grab tabix from sourceforge:
svn co https://samtools.svn.sourceforge.net/svnroot/samtools/trunk/tabix
cd tabix && make
Then add that directory to your PATH.
bgzip the vcf and index with tabix
bgzip t.vcf
tabix -p vcf t.vcf.gz
Put t.vcf.gz
and t.vcf.gz.tbi
in a web directory. Along with a bed
file, t.bed
with contents:
track type=vcfTabix name="$NAME" visibility=full bigDataUrl="http://example.com/path.to/t.vcf.gz"
Adjusting the paths to match your server.
Note the type is vcfTabix
Finally, point your web-browser to: http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg19&position=chr11:1240203-1247497&hgt.customText=http://example.com/path.to/t.bed
and the variant track will be visible.
Thanks for noticing, Brent! We haven't officially announced VCF support as of 9/28/11, but I'm tying up loose ends like documentation and hope it's ready to announce with our next tri-weekly software release. Most of my testing has been done with VCF from 1000 Genomes project (also some dbSNP b134 VCF), so I anticipate some hiccups with VCF from completely different sources and tools.
I would greatly appreciate sample URLs or files if anyone encounters any errors.
Also, I have been spending a lot of time on a haplotype-clustering display suggested by David Haussler for VCF with genotypes from multiple samples. I'm curious whether most VCF out there (beyond huge projects like 1000 Genomes) contains genotypes for multiple samples, or just calls. ?