Skip to content

Commit

Permalink
[skip ci] Add GDC demo track to config_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 13, 2020
1 parent 4ed4015 commit 9b27355
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion test_data/config_demo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
{
"name": "Biothings",
"url": "https://ghcdn.rawgit.org/cmdcolin/jbrowse-plugin-biothings-api/master/dist/plugin.js"
},
{
"name": "GDC",
"url": "https://ghcdn.rawgit.org/GMOD/jbrowse-plugin-gdc/master/dist/plugin.js"
}
],
"assemblies": [
Expand Down Expand Up @@ -201,6 +205,29 @@
"type": "MyGeneV3Adapter"
}
},
{
"type": "GDCTrack",
"trackId": "gdc_plugin_track",
"name": "GDC cancer variants (GraphQL plugin)",
"assemblyNames": ["hg38"],
"category": ["Annotation"],
"adapter": {
"type": "GDCAdapter"
},
"displays": [
{
"type": "LinearGDCDisplay",
"displayId": "gdc_plugin_track_linear",
"renderer": {
"color1": "function(feature) { const filteredConsequences = feature.get('consequence').hits.edges.filter(cons => cons.node.transcript.is_canonical); const impact = filteredConsequences[0].node.transcript.annotation.vep_impact; switch(impact) {case 'LOW': return 'blue'; break;case 'MODIFIER': return 'goldenrod'; break;case 'MODERATE': return 'orange'; break;case 'HIGH': return 'red'; break;case '': return 'lightgrey'; break;}}",
"labels": {
"name": "function(feature) { return feature.get('genomicDnaChange') }"
},
"type": "SvgFeatureRenderer"
}
}
]
},
{
"type": "FeatureTrack",
"trackId": "clinvar_hg19",
Expand Down Expand Up @@ -370,7 +397,7 @@
{
"type": "FeatureTrack",
"trackId": "gdc_features",
"name": "GDC Cancer",
"name": "GDC cancer variants (UCSC BigBed)",
"assemblyNames": ["hg38"],
"category": ["Annotation"],
"adapter": {
Expand Down

0 comments on commit 9b27355

Please sign in to comment.