##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.
It isn't that i don't know how to display my own data in UCSC, but what is the best way to present SNP, insertion and deletions relative to the reference sequence. SNPs are simple as they are just simple coordinates, but INDELS are a bit more of a challenge. Thanks anyway.
Why not use an use an interval or wiggle file: chromosome, start, stop and value, where value = the size of the indel, negative for deletion, positive for insertion
Interesting! The samtools pileup format does anchor insertions and deletions to coordinates of the reference genome. If there isn't an existing method, then i will certainly pursue this.