These examples illustrate configuring a custom web service to fetch features for a track.
-
(1) In the first example we configure a simple web service that fetches bed records defining cytobads. This service
-requires no parameter manipulation or result mapping. Track configuration:
+
(1) In the first example we configure a simple web service that fetches bed records defining cytobads. This service
+ requires no parameter manipulation or result mapping. Track configuration:
{
name: "Cytobands",
@@ -31,10 +29,11 @@
Custom Web Service Examples
-
(2) In the second example we configure configure a cBio web service to
- fetch copy number segments. This service uses a combination of query and POST parameters to specify the requested
- segments. The source url is a function which checks and modifies the input chr name to conform to the
- webservice requirements. The returned json properties must be mapped to conform to igv.js expectations. This
+
(2) In the second example we configure configure a cBio web
+ service to
+ fetch copy number segments. This service uses a combination of query and POST parameters to specify the requested
+ segments. The source url is a function which checks and modifies the input chr name to conform to the
+ webservice requirements. The returned json properties must be mapped to conform to igv.js expectations. This
is specified in the "mapping" object.
Track configuration:
@@ -66,79 +65,77 @@
This example configures a search object as described
here
- to use the Ensembl web service to provide annotation search capability for Macaca Fasciularis. To test search for 'OLIG3'
+ to use the Ensembl web service to provide annotation search capability for Macaca Fasciularis. To test search for
+ 'OLIG3'
Configuration object:
@@ -29,40 +28,39 @@
This example configures a search object as described
-
diff --git a/examples/events/custom-track-click.html b/examples/events/custom-track-click.html
index a86086657..d8a981cae 100644
--- a/examples/events/custom-track-click.html
+++ b/examples/events/custom-track-click.html
@@ -31,9 +31,6 @@
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous">
-
-
-
@@ -67,44 +64,44 @@
This example illustrates use of the igv.js API to dynamically add tracks from a dropdown
- menu. Selecting 'CopyNumber' in the menu above results in the following call.
-
-
+ menu. Selecting 'CopyNumber' in the menu above results in the following call.
+