Usage Examples
DNAstack products can be accessed programmatically through the Command Line Interface (CLI) for Windows, Mac, and Linux environments.
For installation instructions, see Overview and installation
General
Set up a service registry
You can easily set up your environment by using the dnastack
use command. For example, we set up the CLI to work with the service endpoints available at viral.ai.
Download Files / Blobs
Arguments:
DRS-URL
: A DRS URL of the resource you would like to download
Example
Collections
List Collections
List Collection Items
You can list all items in a particular collection with dnastack collections list-items -c SLUG_NAME
where SLUG_NAME
is the slug name of the collection. Here is an example.
where items can be tables or blobs/files.
Query a Collection Table
Arguments:
SLUG-NAME
: The name of the collection to query against
COLLECTION-QUERY
: The SQL query to execute
Example
Alternatively, you can run the following query:
Additional Resources
Take a look at the GA4GH Data Connect Documentation for a detailed guide on using search commands.
Workbench
See the workbench reference for usage examples
Last updated