Download steps

Data use application to NBDC

You may search JGA data at the list of researches at the NBDC Human Database. DDBJ Search is also available, however, regular indexing of new data will be implemented in November 2020. Until this implementation, new JGA data are not indexed.

Take notes of JGA Dataset accession number(s) you want to use. For example, JGAD000001 (or JGAD00000000001 in the previous accession number format)

Apply the data use application in the NBDC Application system. In the application, create a data user group, specify requesting Study (for example, JGAS999992) and Dataset (for example, JGAD999993) accessions and register a public key for the dataset encryption. After the application is approved by NBDC, datasets will be accessible in the JGA server.

To apply the application, a D-way account is required. If you do not have an account, please create your D-way account and register a public key for authentication.

It takes about 10 minutes for the created D-way account becoming active in the NBDC application system.

The JGA datasets download and access steps are described below.

Data user group

Before starting the application, create a data user group. In the following example group (usergrp1), an owner is researcher (account_b) who apply the application and download the data, and a member is PI (account_c).

Data user group
Data user group

Start the application and select the group.

Start data use application
Start data use application
Select the data user group
Select the data user group

Public key for dataset encryption

For security, the JGA datasets are encrypted by the public key for dataset encryption registered by the applicant in the data use application. The applicant needs to first decrypt the datasets downloaded by scp by using the private key.

The public key for dataset encryption is different from the public/private key pair for the D-way account authentication.

Generate a public and private key pair for dataset encryption

Generate a public/private key pair for encrypting datasets in each data use application. Please see "Generate public and private key pair" for details.

Register the public key for dataset encryption in the data use application system.

Registration of the public key for dataset encryption

Register the public key for dataset encryption in the NBDC data use application.

Registration of the public key for dataset encryption
Registration of the public key for dataset encryption

Data use application approval and download

Data use application approval

After the application is approved by NBDC, metadata, encrypted data files and decryption tools is created in the download directory in the JGA server.

Data use application approval
Data use application approval


To download files from the JGA server by scp, you need to register a center name and a public key to your D-way account. Access to the JGA server is restricted by IP addresses. Inform your IP address of your connecting source to NBDC in application form.

In the "/controlled-access/download/jga/" directory in the JGA file server (, the DU number directory is created. Download the directory by scp. Because the scp requires public/private key authentication, specify the private key registered to your D-way account for authentication (this is different from the private key for dataset decryption).


  • D-way account: account_b
  • Data use application number: J-DU999991
$ scp -P443 -i private-key-for-auth -r .

-P: specify the port number 443

-i: specify the private key paired with the public key registered to the D-way account for authentication

Login to the JGA file server by ssh.

$ ssh -p443 -i private-key-for-auth

-p: specify the port number 443 (use lowercase "p" for ssh)

-i: specify the private key paired with the public key registered to the D-way account for authentication

In the DU directory, there are Study directory and tools directory which contains the decryption tools. The Dataset directory under the Study directory contains metadata in tab-delimited text (tsv) and XML formats, and the Data and Analysis directories contain encrypted data files.

The data access is explained with the following example numbers.

  • JGA Study: JGAS999992
  • JGA Dataset: JGAD999993
  • JGA Data: JGAR999999994-JGAR999999995
  • Encrypted data files of Data: case1.fastq.gz.encrypt (JGAR999999994), case2.fastq.gz.encrypt (JGAR999999995)
  • JGA Analysis: JGAZ999999996-JGAZ999999997
  • Encrypted data files of Analysis: case1.vcf.gz.encrypt (JGAZ999999996), case2.vcf.gz.encrypt (JGAZ999999997)
$ ls J-DU999991/
$ ls J-DU999991/tools
$ ls J-DU999991/JGAS999992/JGAD999993
$ ls J-DU999991/JGAS999992/JGAD999993/**





Decrypt data files

Decrypt downloaded encrypted data files by using the decryption tools.

Use the decryption tools in Linux. Windows is not supported.

Move to the J-DU999991 directory and unzip the "" in the tools directory.

$ cd J-DU999991
$ unzip tools/

The scripts for decryption and encrypted common keys are extracted. "" decrypt all files in the DU directory is extracted under the J-DU999991 directory and "" decrypt individual data file is extracted in the Data/Analysis directories which contain encrypted data files.

$ ls
$ ls JGAS999992/JGAD999993/JGAR999999994/
$ ls JGAS999992/JGAD999993/JGAZ999999996/
  • scripts for decryption
  • .dat: encrypted common keys

Add execute permission to all decryption scripts.

$ chmod 754 
$ chmod 754 JGAS999992/JGAD999993/JGAR999999994/
$ chmod 754 JGAS999992/JGAD999993/JGAR999999995/
$ chmod 754 JGAS999992/JGAD999993/JGAZ999999996/ 
$ chmod 754 JGAS999992/JGAD999993/JGAZ999999997/ 

The permission may be added in batch by using the wild card (*).

$ chmod 754 
$ chmod 754 JGAS999992/**/**/*

Decrypt the data files by running "" with the private key paired with the public key for dataset encryption registered in the data use application.

Decryption is explained with the following examples.

  • -k: specify the private key paired with the public key for dataset encryption (for example, J-DU999991_private_key).
  • -p: specify the passphrase of the private key.
$ ./ -k J-DU999991_private_key -p ******
$ ls JGAS999992/JGAD999993/JGAR999999994/
case1.fastq.gz            # decrypted data file
$ ls JGAS999992/JGAD999993/JGAZ999999996/
case1.vcf.gz              # decrypted data file

Place a decrypting script for all files under the DU directory and decrypting scripts for each data file in each Data/Analysis directories which contain target encrypted data file.

$ J-DU999991/


The metadata directory contains following files. Metadata files are not encrypted.

Metadata in tsv

  • JGAD999993.sample.txt
  • JGAD999993.analysis.SEQUENCE_VARIATION.txt

For Sample and Analysis, metadata are provided in tsv with attribute names in the header and contents from the second line. The Analysis tsv filename contains Analysis type and the Analysis tsv files are created for each Analysis type. Please note that Study, Dataset and Policy metadata are also fully available in the DDBJ Search.

Metadata relation tsv

  • JGAD999993.study_sample_experiment_data.mapping.txt

The mapping table of "Data → Experiment → Sample → Study". For Experiment and Data, this mapping table also provides metadata contents.

  • JGAD999993.study_analysis_sample.mapping.txt

The mapping table of "Analysis → Sample → Study". For the analysis data summarizing multiple samples, the Analysis refers not sample accessions but numbers of samples.

  • JGAD999993.analysis_sample.mapping.txt

The mapping table of Analysis and Sample. If Analysis refers Samples, all refered Sample accessions are listed.

  • JGAD999993.dataset_policy_data_analysis.mapping.txt

The mapping table of Dataset, Data, Analysis and Policy.

Metadata in XML

  • JGAD999993.dataset.xml
  • JGAD999993.policy.xml
  • JGAD999993.sample.xml
  • JGAD999993.experiment.xml
  • JGAD999993.analysis.xml
  • JGAD999993.dac.xml

These XML files can be used for programmatic use.


  • JGAD999993.filelist.txt

The list summarizes filenames, sizes, MD5 hash values, and Data/Analysis accessions. By comparing MD5 values of downloaded files and those in the list, you can check corruption of the files.