diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json
index a724f24..b320f25 100644
--- a/.agents/plugins/marketplace.json
+++ b/.agents/plugins/marketplace.json
@@ -23,7 +23,7 @@
"authentication": "ON_INSTALL"
},
"description": "Drive Geenee, the Aiden Lab's genome workspace (igv genome browser, Juicebox Hi-C contact maps, Spacewalk 3D chromatin), by chatting: search ENCODE/4DN, load maps, tracks and ensembles, navigate loci, and share views.",
- "version": "1.0.1",
+ "version": "1.1.0",
"category": "science",
"keywords": [
"geenee",
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index d338335..ed80641 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -13,7 +13,7 @@
"name": "geenee",
"source": "./plugins/geenee",
"description": "Drive Geenee, the Aiden Lab's genome workspace (igv genome browser, Juicebox Hi-C contact maps, Spacewalk 3D chromatin), by chatting: search ENCODE/4DN, load maps, tracks and ensembles, navigate loci, and share views.",
- "version": "1.0.1",
+ "version": "1.1.0",
"category": "science",
"keywords": [
"geenee",
diff --git a/INSTALL-PROMPT.md b/INSTALL-PROMPT.md
index 9954f21..955e587 100644
--- a/INSTALL-PROMPT.md
+++ b/INSTALL-PROMPT.md
@@ -2,7 +2,7 @@
## In claude.ai, the Claude desktop app or Cowork: send the block below, exactly
-If you are running in claude.ai on the web, the Claude desktop app's Chat tab, or a Cowork task, and the Geenee tools (`open_geenee`, `igv_*`, `juicebox_*`, `spacewalk_*`) are not already callable here:
+If you are running in claude.ai on the web, the Claude desktop app's Chat tab, or a Cowork task, and the Geenee tools (`open_geenee`, `share_geenee`, `igv_*`, `juicebox_*`, `spacewalk_*`) are not already callable here:
**Your entire reply is the block between the markers below, copied character for character as Markdown, without the marker comments.** Nothing before it and nothing after it. Do not summarize, shorten, reword, reorder, renumber, merge or add steps. Do not add notes, options, sources, a checklist, or an explanation of why you cannot install it yourself. Do not search for the plugin first. Then wait for the user.
@@ -45,7 +45,7 @@ Start by telling them, in one or two sentences: Geenee lets them drive three gen
- Marketplace: `aidenlab/plugins` on GitHub (marketplace name `aidenlab`). Plugin: `geenee`, so `geenee@aidenlab`. Display name **Geenee**.
- MCP server: `https://geenee.3dg.io/mcp`, Streamable HTTP, no authentication. It sends workflow instructions to every client on connect; the plugin adds a fuller skill on top. The server name is **Geenee**.
-- A server connection supplies tools (`open_geenee`, `igv_*`, `juicebox_*`, `spacewalk_*`). The plugin supplies the skill. Both is best; tools alone are enough to work.
+- A server connection supplies tools (`open_geenee`, `share_geenee`, `igv_*`, `juicebox_*`, `spacewalk_*`). The plugin supplies the skill. Both is best; tools alone are enough to work.
- **Marketplace only.** Geenee is installed only from the `aidenlab` marketplace, in every app, because only a marketplace install receives updates. Never offer, suggest or fall back to adding the server address by hand (a "custom connector" or "custom MCP server"), not even when a step fails. When a step fails, send the user to https://github.com/aidenlab/plugins/issues.
- Reuse anything already installed or connected. Never add a second connection to the same server.
- Retired: an older plugin with the id `juicebot` (shown as JuiceBot or Geenee), and connections to `juicebot-mcp.3dg.io` or `geenee-dev.3dg.io`. If you find one, help the user remove or turn it off so two tool sets do not both appear.
@@ -106,8 +106,8 @@ Do not put the message inside a bullet or a paragraph, do not add alternatives a
## Verification and first use (every application)
-1. Call `open_geenee` once. It returns the Geenee link and a **Room id**; pass that Room id as `room` on every later tool call in this conversation. Open the link yourself only if you have a browser pane inside this app (never drive the user's own browser). If the app shows a Geenee card with an **Open geenee** button, point the user to it; otherwise show the link as a clickable URL. Ask the user to confirm the page is open: it has **IGV**, **Juicebox** and **Spacewalk** tabs.
-2. Do not send viewer commands until the page is connected. If a tool reports "no page is connected" or "no Viewer is in Room", re-send the link.
+1. Call `open_geenee` first, before any other Geenee tool. It returns the Geenee link and a **Room id**; pass that Room id as `room` on every later tool call in this conversation. Open the link yourself only if you have a browser pane inside this app (never drive the user's own browser). If the app shows a Geenee card with an **Open geenee** button, point the user to it; otherwise show the link as a clickable URL. Ask the user to confirm the page is open: it has **IGV**, **Juicebox** and **Spacewalk** tabs.
+2. Do not send viewer commands until the page is connected. If a tool reports "no page is connected" or "no Viewer is in Room", show the link again (`share_geenee`).
3. Juicebox: find the ENCODE GM12878 in situ Hi-C map (`juicebox_search_map_catalogs`), load it at the HOXA cluster (`juicebox_load_map` with `locus`), and add the gene track (`juicebox_load_track` with `"url": "genes"`). IGV: `igv_go_to_gene` HOXA1, then `igv_search_catalogues` for GM12878 CTCF ChIP-seq and `igv_load_tracks` with the first bigWig result.
4. Tell the user what they should see: on the Juicebox tab a contact map with the HOXA region and gene annotations under it; on the IGV tab the HOXA1 locus with a CTCF signal track above the genes. Say which of installed / server connected / viewer working you have confirmed.
5. If a viewer disconnects, help them reopen the current Geenee link; if the Room has expired, open a new one.
diff --git a/plugins/geenee/.claude-plugin/plugin.json b/plugins/geenee/.claude-plugin/plugin.json
index 0cd1ab1..3faa125 100644
--- a/plugins/geenee/.claude-plugin/plugin.json
+++ b/plugins/geenee/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "geenee",
"displayName": "Geenee",
- "version": "1.0.1",
+ "version": "1.1.0",
"description": "Geenee: drive a genome workspace by chatting. One page beside the conversation holds the igv genome browser, the Juicebox Hi-C contact-map viewer and the Spacewalk 3D chromatin viewer. Search ENCODE/4DN, load maps, tracks and 3D ensembles, navigate genes and loci, compare, share. Connects to the Aiden Lab's hosted MCP server; nothing runs locally.",
"author": {
"name": "The Aiden Lab",
diff --git a/plugins/geenee/plugin.json b/plugins/geenee/plugin.json
index eba1f17..67404b5 100644
--- a/plugins/geenee/plugin.json
+++ b/plugins/geenee/plugin.json
@@ -1,7 +1,7 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "geenee",
- "version": "1.0.1",
+ "version": "1.1.0",
"description": "Geenee: drive a genome workspace by chatting. One page beside the conversation holds the igv genome browser, the Juicebox Hi-C contact-map viewer and the Spacewalk 3D chromatin viewer. Search ENCODE/4DN, load maps, tracks and 3D ensembles, navigate genes and loci, compare, share. Connects to the Aiden Lab's hosted MCP server; nothing runs locally.",
"author": {
"name": "The Aiden Lab",
diff --git a/plugins/geenee/skills/geenee/SKILL.md b/plugins/geenee/skills/geenee/SKILL.md
index 67588fc..69b0047 100644
--- a/plugins/geenee/skills/geenee/SKILL.md
+++ b/plugins/geenee/skills/geenee/SKILL.md
@@ -1,6 +1,6 @@
---
name: geenee
-description: Drives Geenee, the Aiden Lab's genome workspace holding the igv genome browser, the Juicebox Hi-C contact-map viewer and the Spacewalk 3D chromatin viewer, through the Geenee MCP tools (open_geenee, igv_*, juicebox_*, spacewalk_*), or through the bundled geenee CLI when the MCP connector is not available. Use whenever the user mentions Geenee, IGV, Juicebox, Spacewalk, a genome browser, Hi-C or contact maps, .hic or .sw files, loops, TADs, compartments, 3D chromatin structure or ensembles, ENCODE or 4DN data, bigWig/BED/peak tracks, or asks to open, load, navigate, compare, track, or share a genome view.
+description: Drives Geenee, the Aiden Lab's genome workspace holding the igv genome browser, the Juicebox Hi-C contact-map viewer and the Spacewalk 3D chromatin viewer, through the Geenee MCP tools (open_geenee, share_geenee, igv_*, juicebox_*, spacewalk_*), or through the bundled geenee CLI when the MCP connector is not available. Use whenever the user mentions Geenee, IGV, Juicebox, Spacewalk, a genome browser, Hi-C or contact maps, .hic or .sw files, loops, TADs, compartments, 3D chromatin structure or ensembles, ENCODE or 4DN data, bigWig/BED/peak tracks, or asks to open, load, navigate, compare, track, or share a genome view.
---
# Geenee: IGV, Juicebox and Spacewalk from the conversation
@@ -24,16 +24,18 @@ $G call juicebox_load_map '{"url":"...hic","locus":"HOXA1"}' juicebox_load_track
If `${CLAUDE_PLUGIN_ROOT}` is unset, find the script with `find ~/.claude ~/.codex -path '*geenee/scripts/geenee.py' | head -1`, or download it: `curl -fsSL https://geenee-install.3dg.io/geenee.py -o geenee.py`. No dependencies. Exit code 2 means a tool reported an error (its message is printed); 1 means the server was unreachable. Details, options and troubleshooting: `references/cli.md`.
-Chain calls that do not depend on each other into one `call`, so the user waits for one shell command rather than three. Do not retry a call that said no page or no viewer is connected; re-send the Workspace link instead.
+Chain calls that do not depend on each other into one `call`, so the user waits for one shell command rather than three. Do not retry a call that said no page or no viewer is connected; give the Workspace link again instead (`$G open`).
## Session start: one Room per conversation
-1. Call `open_geenee` once (or `$G open`). Its reply gives the Workspace link and the **Room id**. Keep the Room id for the whole conversation and pass it as `room` on every later tool call, for all three viewers (the CLI does this itself). Never call `open_geenee` again just to get a link: call it with the same `room` to get the same Workspace back.
+1. Call `open_geenee` first (or `$G open`), before any other geenee tool and before replying, even when the user only greets geenee or one of its viewers ("hello geenee", "hi igv"). Its reply gives the Workspace link and the **Room id**. Keep the Room id for the whole conversation and pass it as `room` on every later tool call, for all three viewers (the CLI does this itself). Call it first again, without `room`, when a tool replies that the Room has expired; call it when a tool replies that there is no Room, then repeat the refused call.
+ - To show the Card again so others can join ("show the QR code again", "share geenee", "how do others join", "someone just arrived"): call `share_geenee` with the `room`. It opens no new Room; everyone keeps their link.
+ - To get the Workspace back beside the conversation: call `open_geenee` with the same `room`.
2. If a browser pane inside this app is available (Claude's built-in browser), open the link in it right away so Geenee sits beside the conversation. Do not drive the user's own browser with it.
3. Through the MCP tools, the host shows the user a Card with an **Open geenee** button, the link and a QR code; do not repeat the link in your reply. Through the CLI there is no Card: give the user the link as a plain clickable URL, not in a code block, and ask them to open it.
4. Do not send viewer commands until the page is connected: the user confirms, or `$G status` (or `juicebox_get_server_status` showing `Browser Connected: Yes`, `igv_read_session_summary` answering without error, `spacewalk_read_viewer_state` showing `Viewers connected:` above 0) says so.
-5. If the user pastes a Workspace link they already have (`…?room=ID` or `…/r/ID`, theirs or a colleague's), use that Room id instead of opening a new one (`$G room `). Everyone in a Room sees the same Workspace, which is also how a group looks at one view together.
-6. "No page is connected" / "no Viewer is in Room" means the tab is closed, still loading, or on another Room: re-send the Workspace link. A Room that has expired stays expired: open a new one and tell the user the link changed.
+5. If the user pastes a Workspace link they already have (`…?room=ID` or `…/r/ID`, theirs or a colleague's), call `open_geenee` with that `room` instead of opening a new one (`$G room `). Everyone in a Room sees the same Workspace, which is also how a group looks at one view together.
+6. "No page is connected" / "no Viewer is in Room" means the tab is closed, still loading, or on another Room: show the Workspace link again (`share_geenee`, or `$G open`). A Room that has expired stays expired: open a new one and tell the user the link changed.
## Which viewer
@@ -73,7 +75,7 @@ Report only what is verified, and keep three states apart: *installed* (the plug
## Links
-The **Workspace link** (from `open_geenee`) is live and shared: whoever opens it joins the Room and follows along. A **shareable link** (`juicebox_create_shareable_url`, or IGV's Shareable URL strip via `igv_set_controls`) is a snapshot of one viewer's current view. Never give one in place of the other.
+The **Workspace link** (from `open_geenee`, shown again by `share_geenee`) is live and shared: whoever opens it joins the Room and follows along. A **shareable link** (`juicebox_create_shareable_url`, or IGV's Shareable URL strip via `igv_set_controls`) is a snapshot of one viewer's current view. Never give one in place of the other.
## Conventions
diff --git a/plugins/geenee/skills/geenee/references/tools.md b/plugins/geenee/skills/geenee/references/tools.md
index 8760d9a..75d3b5c 100644
--- a/plugins/geenee/skills/geenee/references/tools.md
+++ b/plugins/geenee/skills/geenee/references/tools.md
@@ -1,12 +1,13 @@
# Geenee tool reference
-Generated from the live server's `tools/list` (56 tools) by `scripts/gen-tools-md.py`. Call them as MCP tools when the connector is present, or as `geenee.py call ''` otherwise; names and arguments are identical. Every tool except `open_geenee` also takes `room` (string, required): the Room id from the reply of `open_geenee`. It is left out of the argument lists below; the CLI fills it in.
+Generated from the live server's `tools/list` (67 tools) by `scripts/gen-tools-md.py`. Call them as MCP tools when the connector is present, or as `geenee.py call ''` otherwise; names and arguments are identical. Every tool except `open_geenee` also takes `room` (string, required): the Room id from the reply of `open_geenee`. It is left out of the argument lists below; the CLI fills it in.
## Contents
-- Opening the Workspace: `open_geenee`
+- Opening and sharing the Workspace: `open_geenee`, `share_geenee`
- IGV: navigation: `igv_go_to_gene`, `igv_go_to_locus`, `igv_zoom_in`, `igv_zoom_out`, `igv_change_genome`
- IGV: tracks and data: `igv_search_catalogues`, `igv_load_tracks`, `igv_remove_track`, `igv_set_track_height`
+- IGV: track appearance: `igv_rename_track`, `igv_set_track_color`, `igv_set_data_range`, `igv_set_signal_style`, `igv_set_display_mode`, `igv_set_color_by`, `igv_group_reads`, `igv_show_track_parts`, `igv_set_visibility_window`, `igv_set_arcs`
- IGV: view, state and sharing: `igv_set_crosshairs`, `igv_set_centre_line`, `igv_set_controls`, `igv_read_session_summary`
- Juicebox: status and help: `juicebox_get_server_status`, `juicebox_help`
- Juicebox: finding data: `juicebox_search_map_catalogs`, `juicebox_get_map_details`, `juicebox_search_encode_hic`, `juicebox_search_encode`, `juicebox_list_data_sources`, `juicebox_get_data_source_statistics`
@@ -17,13 +18,19 @@ Generated from the live server's `tools/list` (56 tools) by `scripts/gen-tools-m
- Spacewalk: ensembles and state: `spacewalk_list_example_ensembles`, `spacewalk_load_ensemble`, `spacewalk_select_ensemble_group`, `spacewalk_load_session`, `spacewalk_read_viewer_state`
- Spacewalk: appearance and camera: `spacewalk_set_render_style`, `spacewalk_step_ball_radius`, `spacewalk_step_stick_radius`, `spacewalk_set_background_color`, `spacewalk_adjust_background`, `spacewalk_reset_camera`
-## Opening the Workspace
+## Opening and sharing the Workspace
### `open_geenee`
-Get the link that opens geenee: one page beside the conversation holding the igv genome browser, the Juicebox contact-map viewer and the Spacewalk 3D chromatin viewer. Use this before any other geenee tool, and when the user asks to open geenee, IGV, a genome browser, Juicebox, a contact map, Spacewalk or 3D chromatin, or greets any of them ("hello geenee", "hi igv", "hello juicebox", "hello spacewalk"): call this tool straight away instead of only greeting back. One call opens all three viewers; there is no separate tool to open any one of them. If you have a browser that shows pages inside this app, beside the conversation, open the link in it right away: all three viewers connect there and later tool calls redraw them. Use only such an in-app browser; a tool that drives the user's own web browser is not one, and if there is no in-app browser do not try anything else. The user is shown a Card with an Open geenee button, for when the link is not opened beside the conversation. Do not repeat the link or the Room id in your reply. The result of this tool names the Room id: pass it as room on every later geenee tool call in this conversation.
+Call this first in a conversation, before any other geenee tool, so the user is shown geenee's Card before any viewer acts; and first again whenever a geenee tool replies that the Room has expired. Call it even when the user only greets geenee or one of its viewers ("hello geenee", "launch geenee", "hi igv", "hello juicebox", "hello spacewalk"), straight away instead of only greeting back, and when the user asks to open geenee, IGV, a genome browser, Juicebox, a contact map, Spacewalk or 3D chromatin. It gets the link that opens geenee: one page beside the conversation holding the igv genome browser, the Juicebox contact-map viewer and the Spacewalk 3D chromatin viewer. One call opens all three viewers; there is no separate tool to open any one of them. If you have a browser that shows pages inside this app, beside the conversation, open the link in it right away: all three viewers connect there and later tool calls redraw them. Use only such an in-app browser; a tool that drives the user's own web browser is not one, and if there is no in-app browser do not try anything else. The user is shown a Card with an Open geenee button, for when the link is not opened beside the conversation. Do not repeat the link or the Room id in your reply. The result of this tool names the Room id: pass it as room on every later geenee tool call in this conversation.
-- `room` (string, optional): reopen an existing Room instead of minting a new one
+- `room` (string, optional): Only to get geenee back beside the conversation, with all three viewers showing what they last showed, once it was opened in this conversation: the Room id from that reply of open_geenee. Leave it out the first time: geenee then opens in a new Room.
+
+### `share_geenee`
+
+Shows the user geenee's Card again, with its Room link and QR code, so that others can join the same Room. Call it when the user asks to "show the QR code again", to "share geenee", "how do others join" or says "someone just arrived". It opens no new Room: the people already in the Room keep their link. Do not repeat the link, the Room id or a QR code in your reply.
+
+- no arguments besides `room`
## IGV: navigation
@@ -87,13 +94,123 @@ Remove one track from igv-bot, addressed by its name or by its position in the t
### `igv_set_track_height`
-Set the height of one, several or all tracks of igv-bot: to a number of pixels, or "taller" (half as high again) or "shorter" (two thirds as high), so that one undoes the other. A height runs from 1 to 1000 pixels: a number outside that is an error, and taller and shorter stop there. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every track. Change every track a request means in one call. The user also reorders, resizes and removes tracks by hand, so take positions and heights from the Session summary of the reply just before, or call igv_read_session_summary first. A name or position that matches no track is reported as an error listing the tracks, and a name that several tracks share as an error giving their positions; either way no height is changed. The sequence track keeps its height: all leaves it as it is, and addressing it is an error. The Session summary gives heights in whole pixels. The reply is the resulting Session summary: genome, loci, and tracks in display order.
+Set the height of one, several or all tracks of igv-bot: to a number of pixels, or "taller" (half as high again) or "shorter" (two thirds as high), so that one undoes the other. A height runs from 1 to 1000 pixels: a number outside that is an error, and taller and shorter stop there. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every track. Change every track a request means in one call. The user also reorders, resizes and removes tracks by hand, so take positions and heights from the Session summary of the reply just before, or call igv_read_session_summary first. A name or position that matches no track is reported as an error listing the tracks, and a name that several tracks share as an error giving their positions; either way no height is changed. The sequence track keeps its height: all leaves it as it is, and addressing it is an error. The Session summary gives heights in whole pixels. A reply begins with a note when taller or shorter stopped at a limit, or when every track already had the height asked for, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
- `height` (number/one of `taller`, `shorter`, required): The height in pixels, from 1 to 1000, or "taller" for 1.5 times the height each track has now, or "shorter" for two thirds of it
- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
- `all` (boolean, optional): True for every track, in place of names and positions
+## IGV: track appearance
+
+### `igv_rename_track`
+
+Give one track of igv-bot a new name, the name it is shown under. Address the track by its name or by its position in the tracks of the Session summary, counted from 1 at the top; give name or position, not both, and the new name as newName. The user also reorders and renames tracks by hand, so take a position from the Session summary of the reply just before, or call igv_read_session_summary first. A name or position that matches no track is reported as an error listing the tracks, and a name that several tracks share as an error giving their positions; either way nothing is renamed. The sequence track cannot be renamed. A reply begins with a note when the track already had the new name, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `name` (string, optional): The name of the track as the Session summary gives it now. Case does not matter.
+- `position` (number, optional): The position of the track in the tracks of the Session summary: 1 is the top track
+- `newName` (string, required): The name to show the track under from now on
+
+### `igv_set_track_color`
+
+Set the color of one, several or all tracks of igv-bot, as igv.js's own "Set track color" and "Set alt color" do. color is the color a track is drawn in; altColor is a second color, for the negative values of a wig (signal) track and the minus-strand features of an annotation track. Give either or both, each as "#RRGGBB" or "rgb(R, G, B)": turn a color's name, such as "dark blue", into one of these. "unset" gives a track back the color it was loaded with. Annotation, alignment, variant, wig, interact and shoebox tracks take a color; only wig and annotation tracks take an altColor. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every track that takes the colors given. Change every track a request means in one call. The user also reorders, recolors and removes tracks by hand, so take positions from the Session summary of the reply just before, or call igv_read_session_summary first. A call is all or nothing: a track named or placed that does not take a color given is an error saying why, and so is a wig track drawn as a heatmap, whose colors are igv_set_signal_style's colorScale; a color that is not one of the forms above is an error too; either way no color is changed. The Session summary gives the colors a track has been given as its options' color and altColor. A reply begins with a note when all passed over tracks that do not take the colors, when a variant track colored by an attribute such as AF is drawn in the one color from then on, or when every track already had the colors, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `color` (string, optional): The color to draw the tracks in, as "#RRGGBB" or "rgb(R, G, B)", or "unset" for the color each was loaded with
+- `altColor` (string, optional): The color of a wig track's negative values or an annotation track's minus-strand features, as "#RRGGBB" or "rgb(R, G, B)", or "unset"
+- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
+- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
+- `all` (boolean, optional): True for every track that takes the colors given, in place of names and positions
+
+### `igv_set_data_range`
+
+Set the data range of one, several or all tracks of igv-bot, as igv.js's own "Set data range", "Autoscale" and "Log scale" do: the values the track's height spans. Give a fixed min and max, or one of them to keep the other as the track has it; or autoscale true for a range that follows what is in view, or false to fix the range the track has now; and logScale, on or off. Give several of these at once, but not a fixed range with autoscale true. Wig (signal), alignment (its coverage), qtl, gwas and gcnv tracks, and interact tracks drawn with proportional arcs, have a data range; only wig and interact tracks have a log scale. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every track that takes what is given. Change every track a request means in one call. The user also reorders and changes tracks by hand, so take positions from the Session summary of the reply just before, or call igv_read_session_summary first. A call is all or nothing: a track named or placed that has no data range, or no log scale when logScale is given, is an error saying why, and so is a wig track drawn as a heatmap, whose range is igv_set_signal_style's colorScale; a min not below the max is an error too; either way nothing is changed. A fixed range, or autoscale turned off, takes a track out of an autoscale group the user made by hand. The Session summary gives a track's range as its options' min, max, autoscale and logScale. A reply begins with a note when tracks were taken out of an autoscale group, when all passed over tracks that do not take what is given, or when every track already had it, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `min` (number, optional): The value at the bottom of the tracks
+- `max` (number, optional): The value at the top of the tracks
+- `autoscale` (boolean, optional): True for a range that follows what is in view; false to fix the range each track has now
+- `logScale` (boolean, optional): True to draw the values on a log scale, false for a linear one
+- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
+- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
+- `all` (boolean, optional): True for every track that takes what is given, in place of names and positions
+
+### `igv_set_signal_style`
+
+Set how one, several or all wig (signal) tracks of igv-bot are drawn, as igv.js's own "Graph type", "Windowing function", "Flip y-axis" and "Set color scale" do. graphType draws the values as bar, line, points, heatmap or dynseq: dynseq draws the bases of the sequence at the height of the values, and shows them only below 2 bp per pixel, zoomed in far enough to read the sequence; further out it draws bars. windowFunction is how the values under one pixel are summed up: mean, min, max, or none to draw every value; a track offers those its file does. flipAxis true draws a track upside down, false the right way up. colorScale gives a heatmap its colors: from minColor at min to maxColor at max, or, with a mid, diverging through midColor at the mid; give only what changes, the rest kept as the track has it, and type gradient to drop the mid. Colors are "#RRGGBB" or "rgb(R, G, B)". Give several of these at once. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every track that takes what is given. Change every track a request means in one call. The user also reorders and changes tracks by hand, so take positions from the Session summary of the reply just before, or call igv_read_session_summary first. A call is all or nothing: a track named or placed that is not a wig track, a colorScale for a track that is not drawn as a heatmap unless graphType heatmap is given with it, a flipAxis for one that is, unless another graphType is given with it, or a windowFunction its file does not offer, is an error saying why; so is a colorScale whose min is not below its max or whose mid is not between them; either way nothing is changed. The color and data range of a heatmap are its colorScale: igv_set_track_color and igv_set_data_range do not apply to it. The Session summary gives a track's style as its options' graphType, windowFunction, flipAxis and colorScale. A reply begins with a note when dynseq will not show at the current zoom, when all passed over tracks that do not take what is given, or when every track already had it, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `graphType` (one of `bar`, `line`, `points`, `heatmap`, `dynseq`, optional): How the values are drawn
+- `windowFunction` (one of `mean`, `min`, `max`, `none`, optional): How the values under one pixel are summed up; none draws every value
+- `flipAxis` (boolean, optional): True to draw the tracks upside down, false the right way up
+- `colorScale` (object, optional): The colors of tracks drawn as a heatmap: give only what changes
+- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
+- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
+- `all` (boolean, optional): True for every track that takes what is given, in place of names and positions
+
+### `igv_set_display_mode`
+
+Set how the rows of one, several or all tracks of igv-bot are laid out, as igv.js's own display mode menu does. collapsed draws every feature on one row; squished on rows packed thin; expanded on full-height rows, with labels; full, for an alignment track, gives every read a row of its own, unpacked; fill, for a seg track, stretches its samples to fill the track's height. Annotation and variant tracks offer collapsed, squished and expanded; alignment tracks expanded, squished and full; seg tracks squished, expanded and fill, though a seg track of mutations offers no fill. A wig (signal) track has no display mode: how it is drawn is igv_set_signal_style's graphType. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every track that offers the mode. Change every track a request means in one call. The user also reorders and changes tracks by hand, so take positions from the Session summary of the reply just before, or call igv_read_session_summary first. A call is all or nothing: a track named or placed that does not offer the mode is an error naming the modes it does, and nothing is changed. The Session summary gives a track's display mode as its options' displayMode; a track without one is expanded, igv.js's default. A reply begins with a note when all passed over tracks that do not offer the mode, or when every track already had it, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `mode` (one of `collapsed`, `squished`, `expanded`, `full`, `fill`, required): How the rows are laid out: collapsed, squished and expanded for annotation and variant tracks; expanded, squished and full for alignment tracks; squished, expanded and fill for seg tracks
+- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
+- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
+- `all` (boolean, optional): True for every track that offers the mode, in place of names and positions
+
+### `igv_set_color_by`
+
+Set what the features of one, several or all tracks of igv-bot are colored by, as igv.js's own "Color by" menus do. An alignment track colors its reads by none, strand (read strand), firstOfPairStrand, pairOrientation, tlen (insert size), unexpectedPair (pair orientation and insert size) or tag, a read tag given as tag, such as HP; the four of paired reads only where its reads are paired. A variant track colors by none or info, an INFO field of its file given as tag, such as AF (allele frequency), VT or SVTYPE. An annotation track of SNPs colors by function or class. Other tracks have no color-by: their color is igv_set_track_color's. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every track that offers it. Change every track a request means in one call. The user also reorders and changes tracks by hand, so take positions from the Session summary of the reply just before, or call igv_read_session_summary first. A call is all or nothing: a track named or placed that does not offer it is an error naming what it does offer, and nothing is changed. The Session summary gives a track's color-by as its options' colorBy, and a tag or INFO field as colorByTag; an SNP track's is not kept in the Session, and igv.js colors it by function again when it is reloaded. A reply begins with a note when all passed over tracks that do not offer it, or when every track already had it, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `by` (one of `none`, `strand`, `firstOfPairStrand`, `pairOrientation`, `tlen`, `unexpectedPair`, `tag`, `info`, `function`, `class`, required): What to color by: none, strand, firstOfPairStrand, pairOrientation, tlen, unexpectedPair or tag for alignment tracks; none or info for variant tracks; function or class for annotation tracks of SNPs
+- `tag` (string, optional): With by tag, the read tag to color by, such as HP; with by info, the INFO field, such as AF. Left out otherwise.
+- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
+- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
+- `all` (boolean, optional): True for every track that offers it, in place of names and positions
+
+### `igv_group_reads`
+
+Group the reads of one, several or all alignment tracks of igv-bot, as igv.js's own "Group by" menu does: each group is drawn apart, under its label. Group by none (no grouping), strand (read strand), firstOfPairStrand, pairOrientation, mateChr (chromosome of the mate), chimeric, supplementary (supplementary flag), readOrder or tag, a read tag given as tag, such as RG or HP; the three of paired reads only where the reads are paired. Only alignment tracks have reads to group. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every alignment track. Change every track a request means in one call. The user also reorders and changes tracks by hand, so take positions from the Session summary of the reply just before, or call igv_read_session_summary first. A call is all or nothing: a track named or placed that is not an alignment track, or whose reads do not offer the grouping, is an error, and nothing is changed. The Session summary gives a track's grouping as its options' groupBy, and a tag as groupByTag; a track without one is not grouped. A reply begins with a note when all passed over tracks that are not alignment tracks, or when every track already had the grouping, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `by` (one of `none`, `strand`, `firstOfPairStrand`, `pairOrientation`, `mateChr`, `chimeric`, `supplementary`, `readOrder`, `tag`, required): What to group the reads by: none, strand, firstOfPairStrand, pairOrientation, mateChr, chimeric, supplementary, readOrder or tag
+- `tag` (string, optional): With by tag, the read tag to group by, such as RG. Left out otherwise.
+- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
+- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
+- `all` (boolean, optional): True for every alignment track, in place of names and positions
+
+### `igv_show_track_parts`
+
+Show or hide the parts of one, several or all tracks of igv-bot, as igv.js's own menus do: true shows a part, false hides it, and a part left out is left as it is. An alignment track's parts are showCoverage, the coverage above its reads, and showAlignments, the reads themselves, never both hidden; viewAsPairs, drawing the two reads of a pair joined on one row, only where its reads are paired and not grouped other than by firstOfPairStrand; and showMismatches, showSoftClips and showInsertions, how its reads are drawn. The alignment track is the one to address for its coverage: the coverage is no track of its own. A variant track's one part is showGenotypes, its samples' rows, where its file has samples. Other tracks have no parts. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every track that has the parts. Change every track a request means in one call; parts of alignment tracks and genotypes take two calls. The user also reorders and changes tracks by hand, so take positions from the Session summary of the reply just before, or call igv_read_session_summary first. A call is all or nothing: a track named or placed that does not have every part given is an error, and nothing is changed. The Session summary gives a part shown or hidden in the track's options as the tool takes it, where igv.js saves it: a track without one has it as igv.js does unless told, every part shown but viewAsPairs and showSoftClips. A reply begins with a note when all passed over tracks that do not have the parts, or when every track already had them as asked, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `showCoverage` (boolean, optional): An alignment track's coverage: true shows it, false hides it
+- `showAlignments` (boolean, optional): An alignment track's reads: true shows them, false hides them, leaving the coverage
+- `viewAsPairs` (boolean, optional): True draws an alignment track's paired reads joined, each pair on one row; false draws each read apart
+- `showMismatches` (boolean, optional): An alignment track's bases that differ from the reference: true colors them, false hides them
+- `showSoftClips` (boolean, optional): An alignment track's soft-clipped bases, at the ends of reads: true shows them, false hides them
+- `showInsertions` (boolean, optional): An alignment track's insertions: true marks them, false hides them
+- `showGenotypes` (boolean, optional): A variant track's genotypes, a row for each sample: true shows them, false hides them
+- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
+- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
+- `all` (boolean, optional): True for every track that has the parts, in place of names and positions
+
+### `igv_set_visibility_window`
+
+Set the visibility window of one, several or all tracks of igv-bot, as igv.js's own "Set visibility window" does: the widest view, in base pairs, in which a track's features are loaded and drawn. In a wider view the track shows nothing until the view is zoomed in. A larger window shows features further out but loads more; 0 is no window: an annotation or variant track loads its whole chromosome, an alignment track every read in view however wide, either of which can be slow. Annotation, variant and alignment tracks have one; other tracks are an error. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every annotation, variant and alignment track. Change every track a request means in one call. The user also reorders and changes tracks by hand, so take positions from the Session summary of the reply just before, or call igv_read_session_summary first. A call is all or nothing: a track named or placed that has no visibility window is an error, and nothing is changed. The Session summary gives a track's window as its options' visibilityWindow, where igv.js saves one, 0 or less meaning no window; an alignment track without one has igv.js's default, 30,000 bp. A reply begins with a note when the window is smaller than the view, so the track shows nothing until it is zoomed in, when all passed over tracks that have no window, or when every track already had it, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `window` (number, required): The widest view, in base pairs, in which the tracks show their features: a whole number, or 0 for no window
+- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
+- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
+- `all` (boolean, optional): True for every annotation, variant and alignment track, in place of names and positions
+
+### `igv_set_arcs`
+
+Set how one, several or all interact tracks of igv-bot draw their arcs, as igv.js's own interact track menu does. arcType is nested, each arc as high as it is wide, or proportional, each as high as its score: proportional draws every arc, inView only those with both ends in view, partialInView those with one or both. arcOrientation draws the arcs up or down. thickness is the width of each arc in pixels. alpha, from 0 to 1, is how opaque a proportional arc is filled, and, unless shaded by score, how a nested arc reaching out of view is faded. useScore true shades each arc by its score. Give any of these, or several; one left out is left as it is. Only interact tracks have arcs. An interact track read from a .hic file takes only arcOrientation and thickness: igv.js shades its arcs by their scores itself. A track whose features have no scores takes no arcType but nested and no useScore true. Address the tracks by their names, by their positions in the tracks of the Session summary, counted from 1 at the top, or pass all for every interact track. Change every track a request means in one call. The user also reorders and changes tracks by hand, so take positions from the Session summary of the reply just before, or call igv_read_session_summary first. A call is all or nothing: a track named or placed that does not take every option given is an error saying why, and so is a value none takes; either way nothing is changed. The data range of proportional arcs is igv_set_data_range's. The Session summary gives the arcs as the track's options' arcType, arcOrientation, thickness, alpha and useScore, where igv.js saves them: a track without one has igv.js's default, nested arcs drawn up, thickness 1, alpha 0.02 and no shading by score. A reply begins with a note when all passed over tracks that have no arcs, or when every track already had the arcs as asked, so nothing changed. The reply is the resulting Session summary: genome, loci, and tracks in display order. When the reply begins with "Note:", the request was carried out other than as asked: tell the person in one sentence of your own what was done and why; otherwise just confirm the change in a few words.
+
+- `arcType` (one of `nested`, `proportional`, `inView`, `partialInView`, optional): nested, each arc as high as it is wide; or proportional, inView or partialInView, each as high as its score, drawing every arc, those with both ends in view, or those with one or both
+- `arcOrientation` (one of `up`, `down`, optional): up or down: which way the arcs are drawn
+- `thickness` (number, optional): The width of each arc, in pixels: above 0
+- `alpha` (number, optional): From 0, clear, to 1, opaque: how a proportional arc is filled, and, unless shaded by score, how a nested arc reaching out of view is faded
+- `useScore` (boolean, optional): True shades each arc by its score; false does not
+- `names` (array of string, optional): The names of the tracks as the Session summary gives them. Case does not matter.
+- `positions` (array of number, optional): The positions of the tracks in the tracks of the Session summary: 1 is the top track
+- `all` (boolean, optional): True for every interact track, in place of names and positions
+
## IGV: view, state and sharing
### `igv_set_crosshairs`
diff --git a/scripts/gen-tools-md.py b/scripts/gen-tools-md.py
index 725be8a..79b4a50 100755
--- a/scripts/gen-tools-md.py
+++ b/scripts/gen-tools-md.py
@@ -13,9 +13,12 @@
OUT = os.path.join(os.path.dirname(__file__), "..", "plugins", "geenee", "skills", "geenee", "references", "tools.md")
GROUPS = [
- ("Opening the Workspace", ["open_geenee"]),
+ ("Opening and sharing the Workspace", ["open_geenee", "share_geenee"]),
("IGV: navigation", ["igv_go_to_gene", "igv_go_to_locus", "igv_zoom_in", "igv_zoom_out", "igv_change_genome"]),
("IGV: tracks and data", ["igv_search_catalogues", "igv_load_tracks", "igv_remove_track", "igv_set_track_height"]),
+ ("IGV: track appearance", ["igv_rename_track", "igv_set_track_color", "igv_set_data_range", "igv_set_signal_style",
+ "igv_set_display_mode", "igv_set_color_by", "igv_group_reads", "igv_show_track_parts",
+ "igv_set_visibility_window", "igv_set_arcs"]),
("IGV: view, state and sharing", ["igv_set_crosshairs", "igv_set_centre_line", "igv_set_controls", "igv_read_session_summary",
"igv_get_shareable_url"]),
("Juicebox: status and help", ["juicebox_get_server_status", "juicebox_help"]),
@@ -64,7 +67,7 @@ def arg_lines(schema, indent=""):
required = set(schema.get("required") or [])
lines = []
for name, s in props.items():
- if name == "room":
+ if name == "room" and name in required:
continue
desc = (s.get("description") or "").strip().replace("\n", " ")
flag = "required" if name in required else "optional"
@@ -103,7 +106,7 @@ def main():
t = tools[n]
out += ["### `%s`" % n, "", (t.get("description") or "").strip(), ""]
args = arg_lines(t.get("inputSchema") or {})
- out += args if args else ["- no arguments besides `room`" if n != "open_geenee" else "- `room` (string, optional): reopen an existing Room instead of minting a new one"]
+ out += args if args else ["- no arguments besides `room`"]
out.append("")
with open(OUT, "w") as f:
f.write("\n".join(out).rstrip() + "\n")