Skip to content

CLI Reference

This document provides a comprehensive reference for all command-line options available in the Varvis Download CLI.

Usage

bash
varvis-download [options]

Options

OptionTypeDefaultDescription
--config, cstring.config.jsonPath to the configuration file
--username, ustring-Varvis API username
--password, pstring-Varvis API password
--target, tstring-Target for the Varvis API
--analysisIds, astring-Analysis IDs to download files for (comma-separated)
--sampleIds, sstring-Sample IDs to filter analyses (comma-separated)
--limsIds, lstring-LIMS IDs to filter analyses (comma-separated)
--list, LbooleanfalseList available files for the specified analysis IDs
--destination, dstring.Destination folder for the downloaded files
--proxy, xstring-Proxy URL
--proxyUsername, pxustring-Proxy username
--proxyPassword, pxpstring-Proxy password
--overwrite, obooleanfalseOverwrite existing files
--filetypes, fstringbam,bam.baiFile types to download (comma-separated)
--loglevel, llstringinfoLogging level (info, warn, error, debug)
--logfile, lfstring-Path to the log file
--reportfile, rstring-Path to the report file
--filter, Farray[]Filter expressions (e.g., "analysisType=SNV", "sampleId>LB24-0001")
--range, gstring-Genomic range for ranged download (e.g., chr1:1-100000)
--bed, bstring-Path to BED file containing multiple regions
--restoreArchived, rastringaskRestore archived files. Accepts "no", "ask" (default), "all", or "force".
--restorationFile, rfstringawaiting-restoration.jsonPath and name for the awaiting-restoration JSON file
--resumeArchivedDownloads, radbooleanfalseResume downloads for archived files from the awaiting-restoration JSON file if restoreEstimation has passed.
--version, vbooleanfalseShow version information
--help, hbooleanfalseShow help

Examples

Basic Usage

bash
# Download BAM files for specific analysis IDs
varvis-download -u username -p password -t target -a "analysis1,analysis2"

# List available files without downloading
varvis-download -u username -p password -t target -a "analysis1" --list

# Download with custom destination
varvis-download -u username -p password -t target -a "analysis1" -d "/path/to/download"

Advanced Usage

bash
# Download with filters
varvis-download -u username -p password -t target -s "sample1,sample2" --filter "analysisType=SNV"

# Ranged download for specific genomic region
varvis-download -u username -p password -t target -a "analysis1" --range "chr1:1-100000"

# Download with BED file for multiple regions
varvis-download -u username -p password -t target -a "analysis1" --bed "/path/to/regions.bed"

# Resume archived downloads
varvis-download --resumeArchivedDownloads

Configuration File

You can use a configuration file to store commonly used options:

bash
varvis-download --config /path/to/config.json

Example configuration file:

json
{
  "username": "your-username",
  "target": "https://your-varvis-instance.com",
  "destination": "/path/to/downloads",
  "filetypes": "bam,bam.bai,vcf",
  "loglevel": "info"
}

Released under the GPL-3.0 License.