MetroFlow automatically draws Nextflow workflows as interactive metro maps.
Each station is a step (process) of the workflow. Right-click on it to see its code.
The lines between stations are the paths the data takes from one step to the next.
The colour of a line shows under which condition that path is taken. Right-click on it to see the condition.
Everything you can do with the map, with the mouse, the keyboard and the toolbar.
| Right-click a station | Show the code of the step |
| Right-click a line | Show the condition to take this path |
| Double-click a subworkflow | Collapse it into a single station, or expand it back |
| F + click a subworkflow | View it in isolation, Esc to come back |
| Drag | Move a station or a subworkflow |
| Shift + click | Select several stations, then drag them together while still holding Shift |
| H + click a station | Hide it, Ctrl + Z to show it again |
| M + click a station | Minimise it, do it again to restore it |
| Scroll / drag the background | Zoom / move around the map |
| Fullscreen | |
| Export the map as SVG or PNG | |
| Collapse subworkflows, the deepest level first | |
| Highlight paths: click lines to highlight them | |
| Appearance: font, text size, colours, overlaps | |
| Download / upload the layout to share your arrangement of the map | |
| Reset the layout to the original map |
Your changes to the map are saved in your browser, and are still there when you come back.
Right-click on a station to see the code of the process, and the file it comes from. No need to look for it in the workflow code.
Lines of the same colour are taken under the same condition. Right-click on a line to see that condition.
Hold F and click on a subworkflow to only show it. Press Esc (or the cross in the top left corner) to come back to the whole map. Handy for exploring even the largest workflows.
Above the map, choose which subworkflows are shown:
Only the views which could be computed for the workflow are shown.
Double-click on a subworkflow to collapse it into a single station, and double-click on that station to expand it back. Right-click on a collapsed subworkflow to see its code, its condition and the steps it contains.
The Collapse subworkflows button in the toolbar collapses all the subworkflows of the deepest level, one level per click.
Drag a station or a subworkflow to move it. To move several stations at once, hold Shift and click on them, then, still holding Shift, drag one of them: they all move together. Releasing Shift clears the selection.
Hold H and click on a station to hide it along with its lines. Press Ctrl + Z to show the last hidden station again.
Rather than hiding a station, you can make it smaller and remove its name, so that its lines stay visible. Hold M and click on the station; do it again to restore it.
Click on the Highlight paths button in the toolbar, then click on the lines you want to follow: they stay in colour while the rest of the map is greyed out. Click on a line again to un-highlight it, and on the button again to leave this mode.
The Appearance button in the toolbar lets you choose the font, the text size, the colour palette of the lines (or your own colours) and the colours of the subworkflows. You can also prevent stations and names from overlapping.
Once you are happy with the map, export it as an SVG or PNG image, or download the layout to share your arrangement: anyone can upload it to the same map to get the same view.