Overview
Teaching: 0 min
Exercises: 0 minQuestions
Key question
Objectives
First objective.
Approximate time:
One way to download files to your remote instance from a webserver is to use the command line tool, wget. This command supports downloading files from FTP and HTTP(s). The tool wget also supports recursive download (with the parameter -r), allowing you to download content from a directory or folder. For your information, there are other command line tools that can also be used to download data (e.g., curl), but wget should serve you well for this lesson and bioinformatic analysis.
$ wget ftp://bacteria.ensemble....
If the data is not located on a webserver, wget will not work. Instead, you can use FileZilla to transfer a file from you local machine to a remote instance, or vice versa.
######Filezilla - Step 1
Open FileZilla, and click on the File tab. Choose ‘Site Manager’.
ADD IMAGE
######Filezilla - Step 2
Within the ‘Site Manager’ window, do the following:
ADD IMAGE
######Filezilla - Step 3
In FileZilla, on the left side of the screen navigate to the location you would like to save the file, and on the right side of the screen navigate through your remote directory to the file MODIFY FILE NAME /home/dcuser/dc_workshop/results/fastqc_untrimmed_reads/SRR097977_fastqc.html
. Double click on the .html file to transfer a copy, or click and drag over to the right hand panel.
Open the file on your local machine.
##Exercises
These directions are platform specific so please follow the instructions for your system
##Uploading Data to your Virtual Machine
Using PC, we recommend you use the PSCP program. This program is from the same suite of tools as the putty program we have been using to connect.
> cd Downloads
locate a file on your computer that you wish to upload (be sure you know the path). Then upload it to your remote machine (you will need to know your ip address, and login credentials). You will be prompted to enter a password, and then your upload will begin. (make sure you use substitute ‘your-pc-username’ for your actual pc username)
C:\User\your-pc-username\Downloads> pscp.exe local_file.txt dcuser@ip.address:/home/dcuser/
Open the terminal and use the scp command to upload a file (e.g. local_file.txt) to the dcuser home directory:
$ scp local_file.txt dcuser@ip.address:/home/dcuser/
##Downloading Data from your Virtual Machine
Let’s download a zipped file from our remote machine. You should have a fastqc report in ~/dc_workshop/results/fastqc_untrimmed_reads/SRR097977_fastqc.zip
Tip: If you are looking for another (or any really) zip file in your home directory to use instead try
$ find ~ -name *.zip
Key Points
First key point.