This example illustrates use of a web service for loading bed and vcf tracks. Tracks are defined as follows
{
sourceType: "service",
format: "bed",
name: "Bed features",
url: "http://localhost:8080/basic_feature_3_columns.bed?chr=$CHR&start=$STARTend=$END",
headerURL: "http://localhost:8080/basic_feature_3_columns.bed?class=header",
seqnamesURL: "http://localhost:8080/basic_feature_3_columns.bed?class=seqnames"
},
{
sourceType: "service",
format: "vcf",
name: "VCF variants",
url: "http://localhost:8080/SKBR3_Sniffles_variants_tra.vcf?chr=$CHR&start=$STARTend=$END",
headerURL: "http://localhost:8080/SKBR3_Sniffles_variants_tra.vcf?class=header",
seqnamesURL: "http://localhost:8080/SKBR3_Sniffles_variants_tra.vcf?class=seqnames"
}
Properties
To run this example first start the node webservice "featureService.js" in "test/service"