3. Work on your dashboard, together¶
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.
- 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. - 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.
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.
- Click Edit in the dock. If a Not now button appears, click it.
- 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. - Click Save in the dock. Your dashboard now has a new version.
- 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.
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.
- Go back to your project and click Permissions.
- 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.
- 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.
Leave the Public switch as it is.
Step 4: export it for offline use¶
A dashboard does not have to stay on the server.
- 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.
- 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.
- Click Export and save the file.
- Turn the network off, and open the
.htmlfile 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?
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.
- 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.
- Next to Columns, click the green +. Type
my_groupand click Add. A new teal column appears. - Double-click the
my_groupcell of a row, type a label, and press Enter. Do it for four samples:waterforSRR10070130(Riverwater) andSRR10070132(Groundwater),solidforSRR10070149(Sediment) andSRR10102392(Soil). - In the header of
my_group, click the chart icon. The Analysis button in the dock now shows 2 (your two groups,solidandwater). - 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. - 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 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?






