Table of Contents
Our daily workflow with anvi’o usually requires us to use some server-side computing for profiling metagenomic samples, followed by the visualization of merged profiles through the interactive interface on our laptops. The second step requires us to download large amounts of data, which can be far from what is feasible in certain situations.
Fortunately, you can connect to a server by creating an SSH tunnel with local and remote port forwarding, and run the interactive interface on the server to access it from your laptop.
For this, you should connect to your server in a specific way:
If you care, the translation of this line is this: “forward any connection request goes to my local port
8080, to the port
localhost of the server
server.university.edu”. Of course nothing is listening to the port
8080 on the server at this moment, but we will tell anvi’o to serve from there. For this, go to your data directory:
-P 8080 flags. If port
8080 is not available, you can re-connect to the server with a differnt forwarding request via SSH, and try that port number for anvi’o to serve.
All good on the server side. Now you can start a browser on your laptop computer, and type the address
http://localhost:8080 to stream your results from the server to your browser like a pro: