Schumer lab: Download data to Sherlock from Admera

From OpenWetWare
Jump to navigationJump to search

Download data with ftp

1) Make sure your computer or the lab computer is set to stay awake and running for ~4-16 hours (depends on amount of data to download and download speed (which you have absolutely no control of))

2) To download data to Sherlock with ftp, log on to sherlock and navigate to /oak/stanford/groups/schumer/data

3) Make a new folder

mkdir Admera_tmp_"quote #" Ex. Admera_tmp_72

cd Admera_tmp_"quote #"

4)Start an interactive job and wait for screen to say "resources allocated". this sometimes takes a minute. you can change the time after -t based on how long you think this data set will take to download

srun --pty -p hns,schumer -t 48:00:00 bash

5) Load the ftp module:

module load lftp

6) Login using sftp to the Admera host, using the user name they gave you. For example:

sftp -P 2222

7) Enter the password they gave you. It is included in the email about the data transfer.

8) Change directory into the project number they provided, for example:

cd 19176-01

9) Make sure you have all the files you expect (should be number of samples times two)

ls *gz | wc -l

10) Retrieve all the files you want. For example:

mget *.fastq.gz

11) Make sure there is no error message saying the job was killed! If the job was killed delete the last file that was downloaded and repeat steps 4-10. If there is no error message exit the lftp server then exit the interactive job.



12) confirm that you have the expected number of files again just to be sure

ls *gz | wc -l

13) Use the sample key provided by Admera to make a file called sample.key that contains a list of admera IDs and sample IDs separated by only at "@"




If the file is not named sample.key the following step will not work.

14) make sure there are no spaces or "/"s in the sample names! If there are "/"'s remove them manually! you can run this command to remove spaces.

sed 's/ //g' sample.key > sample.key

15) run the rename script to rename files. This may take a few minutes.

bash /home/groups/schumer/shared_bin/Lab_shared_scripts/

16) Make sure there are no error messages and that the numbers the script prints out are the total number of files you expect.

17) Change permissions to the files you downloaded so that only you (the owner) have write permission and such that all other users have read+execute permissions.

chmod a+rx *

18) Make sure that the permissions are correct (-rwxr-xr-x+) by using ls -lh

19)Make a file called library_names using the full names of the samples.






20) Check Negative read counts and note any extremes.

perl /home/groups/schumer/shared_bin/Lab_shared_scripts/ library_names

21) If necessary, run a read count script for all samples. Note any unexpected extremes.

perl /home/groups/schumer/shared_bin/Lab_shared_scripts/ library_names

22) Move reads to their appropriate folders. You can use Globus to do so. Let lab members know where the data is and enter the paths into the library inventory in DropBox as well as the Lab_shared_data_map google sheet.