Skip to content

Vault Providers

Vault Providers are in Beta

Please contact SolveBio for assistance using custom vault providers.

Vault Providers determine where and how the contents of a vault are stored. By default, vaults use SolveBio's built-in provider which stores files and datasets in SolveBio's Virtual Private Cloud (VPC) on Amazon Web Services. Files are encrypted and replicated on S3 and datasets are encrypted and replicated across EC2 instances in the same geographical region. Vaults can be created with different vault providers to access data from other services such as DNAnexus, S3, GCS, or any other data platform.

DNAnexus Provider

To create a vault using the DNAnexus Provider, you'll need the following information:

  • A valid DNAnexus authentication token
  • The ID of a DNAnexus project you have access to

NOTE: You can only link a single DNAnexus project with a DNAnexus-backed vault.

The following example creates a new vault and links it with your DNAnexus project:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import solvebio
from solvebio import Vault
from solvebio import VaultSyncTask
from solvebio.client import client

solvebio.login()

dx_token = '<your token here>'
dx_project_id = '<your project ID>'
vault_name = 'My DNAnexus Vault'

vault = Vault.create(name=vault_name, provider='DNAnexus')

client.post('/v2/vault_properties', data={
    'vault_id': vault.id,
    'name': 'api_token',
    'value': dx_token
})
client.post('/v2/vault_properties', data={
    'vault_id': vault.id,
    'name': 'project_id',
    'value': dx_project_id
})

# Synchronize the contents of the vault with the project
VaultSyncTask.create(vault_id=vault.id)

Other Providers

If you would like support for other vault providers, contact SolveBio for more information.