UNPKG

@gmod/jbrowse

Version:

JBrowse - client-side genome browser

22 lines (18 loc) 1.06 kB
blamblam = 422 [ tracks . volvox_vcf_test ] storeClass = JBrowse/Store/SeqFeature/VCFTabix urlTemplate = volvox.test.vcf.gz category = VCF type = JBrowse/View/Track/CanvasVariants key = VCF - additional test data [ tracks . volvox-sorted-vcf ] hooks.modify = function( track, feature, div ) { div.style.backgroundColor = track.config.variantIsHeterozygous(feature) ? 'red' : 'blue'; } key = VCF - volvox-sorted variants variantIsHeterozygous = function( feature ) { var genotypes = feature.get('genotypes'); for( var sampleName in genotypes ) { try { var gtString = genotypes[sampleName].GT.values[0]; if( ! /^1([\|\/]1)*$/.test( gtString) && ! /^0([\|\/]0)*$/.test( gtString ) ) return true; } catch(e) {} } return false; } storeClass = JBrowse/Store/SeqFeature/VCFTabix urlTemplate = volvox.filtered.vcf.gz type = JBrowse/View/Track/HTMLVariants metadata.category = VCF metadata.Description = Variants called from volvox-sorted.bam using samtools and bcftools. Heterozygous variants are shown in red, homozygous variants in blue. [GENERAL] noooj = 1