Skip to content

Commit

Permalink
Add genehancer tracks on hg19 and hg38
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 13, 2020
1 parent 5f7753d commit 408ea60
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
22 changes: 22 additions & 0 deletions test_data/config_demo.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,28 @@
"type": "MyGeneV3Adapter"
}
},
{
"type": "FeatureTrack",
"trackId": "genehancer_ucsc_hg38",
"name": "UCSC GeneHancer",
"category": ["Annotation"],
"assemblyNames": ["hg38"],
"adapter": {
"type": "UCSCAdapter",
"track": "geneHancerInteractionsDoubleElite"
}
},
{
"type": "FeatureTrack",
"trackId": "genehancer_ucsc_hg19",
"name": "UCSC GeneHancer",
"category": ["Annotation"],
"assemblyNames": ["hg19"],
"adapter": {
"type": "UCSCAdapter",
"track": "geneHancerInteractionsDoubleElite"
}
},
{
"type": "GDCTrack",
"trackId": "gdc_plugin_track",
Expand Down
20 changes: 14 additions & 6 deletions website/docs/developer_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -884,20 +884,28 @@ instead of manually cleaning up resources
We have a couple plugin examples here
- https://github.com/GMOD/jbrowse-plugin-gdc
- https://github.com/cmdcolin/jbrowse-plugin-biothings-api
- https://github.com/GMOD/jbrowse-plugin-gdc - demonstrates accessing GDC
cancer data GraphQL API, plus a custom drawer and track type for coloring
variants by impact score
- https://github.com/cmdcolin/jbrowse-plugin-biothings-api - demonstrates
accessing data from mygene.info, part of the "biothings API" family
- https://github.com/cmdcolin/jbrowse-plugin-ucsc-api - demonstrates accessing
data from UCSC
We will go over in detail how to implement your own
We will go over in detail some of these steps. Note that the best practices
may be found by looking at the above plugins source code directly, and you can
copy these plugins as a template for your own.
### Intro to plugins
JBrowse 2 plugins can be used to add new pluggable elements (views, tracks,
data adapters, etc), and to modify behavior of the application by adding code
that watches the application's state. For the full list of what kinds of
pluggable element types plugins can add, see the [pluggable
elements](developer_guide#pluggable-elements) page.
We will go over creating an example plugin. The first thing that we have is a
`src/index.js` which exports a default class containing the plugin registration
code
The first thing that we have is a `src/index.js` which exports a default class
containing the plugin registration code
src/index.js
Expand Down
2 changes: 1 addition & 1 deletion website/docusaurus.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"to": "blog",
"label": "Releases",
"label": "Blog",
"position": "left"
},
{
Expand Down

0 comments on commit 408ea60

Please sign in to comment.