Downloading files from dbGAP
Recently I had to download some files from dbGAP, I’m posting the procedure here before I forget.
-
I had to install the Aspera client extension, this doesn’t work on Chrome anymore so I had to use Safari.
-
I had to get a “.ngc” file from my PI. This is the key that is used to decrypt the files from SRA. There is one file for every project under the PI’s account.
-
Download sra-toolkit from here, other architecture downloads links are listed here.
-
Import the key with
vdb-config -iThis will import the key and put it in the~/.ncbi/folder. Leave the other settings as they are. cdto the folder that was listed undervdb-configas your project directory, in my case it wascd ~/ncbi/dbGaP-10794/. If you don’t cd here before decrypting you will get weird errors like:2016-05-16T22:05:40 vdb-decrypt.2.6.2 err: path not found while opening directory within file system module - unable to obtain a password 2016-05-16T22:05:40 vdb-decrypt.2.6.2: exiting: RC(rcFS,rcDirectory,rcOpening,rcPath,rcNotFound) (834996504)- Run the decrypt command as
bin/vdb-decrypt ./path_to_aspera_download