aspera installation manual download page
wget https://download.asperasoft.com/download/sw/cli/3.7.7/aspera-cli-3.7.7.608.927cce8-linux-64-release.sh
update permissions of the installation executable and execute
chmod a+x ./aspera-cli-3.7.7.608.927cce8-linux-64-release.sh
./aspera-cli-3.7.7.608.927cce8-linux-64-release.sh
Optional but recommended: add aspera to the path
export PATH=~/.aspera/cli/bin:$PATH
make sure ascp is executable
ascp
#should produce the output
Usage: ascp [OPTION] SRC... DEST
SRC to DEST, or multiple SRC to DEST dir
SRC, DEST format: [[user@]host:]PATH
Display full usage: -h,--help
- Click Request Files on the page 'my requests' on dbGaP
- Select the files you want
- Click 'create download request' to produce a download key This key is only valid for a short time so its useful to prep the following commands ahead of time
- Using the ascp command download the data
#The download command follows the format
<PATH TO ASPERA INSTALL>/bin/ascp -QTr -l 300M -k 1 -i <PATH TO ASPERA INSTALL>etc/asperaweb_id_dsa.openssh -W <DOWNLOAD KEY> dbtest@gap-upload.ncbi.nlm.nih.gov:<SOURCE DIRECTORY> <OUTPUT DIRECTORY>
#Everything in <> should be replaced to match your case
#For example on my machine it looked like this
ascp -QTr -l 300M -k 1 -i ~/.aspera/cli/etc/asperaweb_id_dsa.openssh -W A51524DE6FF0540938BBEEF8C669EF669EFFF287D07234B7F90997D667C2021A4A4A0060A69EE49EDB66C48C3D3EAFFCED dbtest@gap-upload.ncbi.nlm.nih.gov:data/instant/rschubert/64117 /home/ryan
#Notice that the aspera install was in a hidden directory. ls -a will reveal these if you cant find them.