Hey there. I'm using Locuszoom.js to create a custom plot, but one of my data sources includes a static association file hosted on local. Here's how I'm specifying my data sources:
data_sources = new LocusZoom.DataSources()
.add("assoc", ["AssociationLZ", {url: assocFile, params: {analysis: true, id_field: "variant"}}])
.add("credset", ["CredibleSetLZ", { params: { fields: { log_pvalue: 'assoc:log_pvalue' }, threshold: 0.95, significance_threshold: 7.301 } }])
.add("gene", ["GeneLZ", {url: apiBase + "annotation/genes/", params: { build: 'GRCh37' }}])
.add("recomb", ["RecombLZ", {url: apiBase + "annotation/recomb/results/", params: { build: 'GRCh37' }}])
{
"data: [
{
"chromosome": 4,
"position": 173008175,
"log_pvalue": 0.187638213,
"variant": "4:173008175_C\\/G",
"ref_allele": "C",
"Alt": "G",
"rsID": "rs115276194",
"beta": 1.03918,
"se": 0.0844913,
"analysis": null
},
.
.
.
This yields the error "Failed to fetch" where the regional association plot should show up.