Skip to content

3. Work on your dashboard, together

Owner of the project In the browser Your nf-core/viralrecon dashboard Hands-on 3 · 15 min

Overview

Questions

  • How do I talk about a figure with a colleague?
  • How do I keep a safe copy of my work, share it, or send it to someone with no server?

Objectives

  • Comment on a figure and annotate it.
  • Save a version, then compare a component with the previous one.
  • Share the project with a colleague.
  • Export the dashboard as one HTML file.

You own the nf-core/viralrecon dashboard that episode 2 created: you can edit it, share it and export it. Work through the four steps in order. Open your project from the Projects page, and the dashboard from the project.

Hands-on 3 · Step 1: comment and annotate

Open the Sample QC tab and find Genome covered per sample, at 1x and at 10x, a bar chart.

  1. Comment. Hover the figure and click the comments icon in its action bar. Type your remark, for example SAMPLE2_PE covers only 90 % of the genome at 10x. Keep it, or sequence it again?, and click Post.
  2. Annotate. Hover the figure again and click Annotate. In the tool palette, pick Note, and click the bar of the sample you mean. Type a label, for example Lowest breadth at 10x, and click Save. Click Leave annotate mode.

The bar chart with its note on SAMPLE2_PE, and the Comments panel with the comment

Use a bar chart for the note. On a figure with a log axis, the note is saved but not drawn.

Step 2: edit a component, save, compare

You cannot break anything for good: every save records a version, and each component keeps its own history.

  1. Click Edit in the dock. If a Not now button appears, click it.
  2. On the Sample QC tab, hover the same bar chart and open its Component actions menu, then click Edit. Open Card header & style and change the title, for example to Genome covered per sample, at 1x and at 10x. Click Save changes.
  3. Click Save in the dock. Your dashboard now has a new version.
  4. Open the Component actions menu of the chart again and click History. Use the left arrow to go to the previous version, then switch on Compare: the previous version is on the left, the component as it is now (Current) on the right. The titles differ.

Component history in Compare mode: the version saved before on the left, the current component on the right

Restore this component brings the old one back. The rest of the dashboard stays as it is.

Step 3: share the project

A dashboard belongs to a project, and the project decides who sees it.

  1. Go back to your project and click Permissions.
  2. Read the page. The switch at the top says Public (any signed-in user can open the project) or Private (Only listed members can view this project). Members lists people one by one, with a role: Owner, Editor or Viewer. Groups works the same way for a group, and Everyone with access adds both up.
  3. Type the e-mail address of the person next to you in Search by name or email, pick them, and click Add member. They are listed as Viewer: viewers can only look.

The Permissions page of the project: the Private switch, two members with their roles, the Groups list, and Everyone with access

Leave the Public switch as it is.

Step 4: export it for offline use

A dashboard does not have to stay on the server.

  1. Click the gear in the header (Settings), then Export. Under Dashboard only (serverless), click Export dashboard…. Every export uses the filters you have right now.
  2. A dialog lists what the file will carry: the tables, with their rows and columns, and every tile of the dashboard with its tier. Live tiles are redrawn in the browser. Frozen tiles ship as a picture of the current view. Omitted tiles are left out. Read it before you go on.

Dashboard settings, Export: the four formats, and the Export dashboard… button of Dashboard only (serverless)

  1. Click Export and save the file.
  2. Turn the network off, and open the .html file from your disk. Pick a sample in the filters: the cards and the figures change.

Anyone you send the file to can read this data

The dialog says it: Anyone you send it to can read this data, with no sign-in. Check the tables it lists before you send it.

Check your understanding

You added the person next to you as a Viewer in step 3. Can they read your comment? Can they change the title you edited in step 2?

Answer

They can read the comment, and answer it: this server lets readers comment. They cannot change the title: a viewer can only look, editing needs the Editor role. Your note from step 1 shows to them only once Visible to viewers is on.

Challenge: what stays interactive

Open Export dashboard… again, and read the dialog without exporting. How many tiles stay interactive, how many do not, and how large can the file be at most?

Solution

On the nf-core/viralrecon dashboard, 122 of 126 tiles stay interactive (Live). Four do not: 3 are Frozen, 1 is Omitted. The file is up to about 55 MB: the dialog says it is an upper bound, because the data is sized before it is compressed.

The export dialog: 122 of 126 tiles stay interactive, Live 122, Frozen 3, Omitted 1, and the list of tables the file carries

Key points

  • A comment and a note stay on the figure they were written on.
  • Every save is a version. The history of a component compares it with an earlier one, and restores just that component.
  • Permissions lists who sees the project, and with which role: owner, editor or viewer.
  • Dashboard only (serverless) exports one HTML file with the filters you have at that moment. Anyone who gets it can read its data.
Bonus · Label samples in Metadata mode, on your ampliseq copy

nf-core/ampliseq publishes its sample metadata in input/, so your project has a sample table you can label; viralrecon publishes none. Here you label four samples, then colour the ampliseq figures by your labels.

  1. On your nf-core/ampliseq (copy) dashboard, click Metadata in the dock at the bottom. A panel opens on the right. It shows the table metadata, with key: ID: one row per sample.
  2. Next to Columns, click the green +. Type my_group and click Add. A new teal column appears.
  3. Double-click the my_group cell of a row, type a label, and press Enter. Do it for four samples: water for SRR10070130 (Riverwater) and SRR10070132 (Groundwater), solid for SRR10070149 (Sediment) and SRR10102392 (Soil).
  4. In the header of my_group, click the chart icon. The Analysis button in the dock now shows 2 (your two groups, solid and water).
  5. Click Analysis. Under Color figures by, click A column, then Pick a column…, and choose my_group (it is at the end of the list). The panel switches to My groups. On the Overview tab it says that no component can receive the groups: that is expected.
  6. In the icon bar on the left, click the scatter-plot icon, the fourth from the top. This is the Ordination & Clustering tab. In Sample ordination (PCoA, Bray-Curtis) the legend now reads solid, water, Other: the grey Other is every sample you did not label. The heatmap beside it shows the same groups.

The Metadata panel of the ampliseq copy: the table metadata, key ID, and the new my_group column with water on two rows and solid on two rows

The Ordination and Clustering tab after the colouring: the PCoA legend shows solid, water and Other, and the Bray-Curtis heatmap has a Group legend with solid and water

The labels stay on your dashboard. The colouring is a temporary view: the Analysis panel says it stays in this browser and nobody else sees it. The Alpha Diversity tab also takes the groups (in Rarefaction curves); the taxon bar charts of Community & Diversity do not.

Bonus · Fix your comment

Open the comments of the bar chart again. Hover your comment and click the pencil. Change the text so that it also quotes the depth of the sample, and save it.

Solution

The text is replaced, and the comment stays on the figure. Example: SAMPLE2_PE has the lowest depth (181) and only 90 % of the genome at 10x. Keep it, or sequence it again?