Skip to content

Download pre-built reference genome assets

Use the refgenie command-line interface to download and organize genome assets. You do this by simply running refgenie from the command line.

The listr command lists remote assets to see what’s available:

Terminal window
refgenie listr

The pull downloads the specific asset of your choice:

Terminal window
refgenie pull GENOME/ASSET

Where GENOME refers to a genome key (e.g. hg38) and ASSET refers to one or more specific asset keys (e.g. bowtie2_index). For example:

Terminal window
refgenie pull hg38/bowtie2_index

You can pull several assets in one command by listing them as positional arguments:

Terminal window
refgenie pull hg38/bowtie2_index hg38/bwa_index mm10/fasta

To pull all available assets for a specific genome, use the --genome flag combined with --all:

Terminal window
refgenie pull --genome hg38 --all

This downloads every asset available on the server for the hg38 genome. You can also pull all assets across all genomes:

Terminal window
refgenie pull --all --all-genomes

Some assets are very large. Refgenie provides flags to control how large assets are handled:

FlagDescription
--skip-largeSkip assets larger than the size cutoff without prompting
--largeDownload large assets without prompting
--size-cutoffSize threshold in bytes (assets above this are “large”)
--batchNon-interactive mode: apply the large/skip-large policy without prompting

For example, to pull all assets but skip anything over 1 GB:

Terminal window
refgenie pull --genome hg38 --all --skip-large --size-cutoff 1073741824 --batch

If you are pulling an asset for a genome that has not been initialized locally, use the --init flag to automatically initialize the genome:

Terminal window
refgenie pull hg38/fasta --init

To re-download an asset that already exists locally, use the --force flag:

Terminal window
refgenie pull hg38/fasta --force

Skipping specific asset classes or recipes

Section titled “Skipping specific asset classes or recipes”

You can exclude certain asset classes or recipes from batch pulls:

Terminal window
refgenie pull --genome hg38 --all --skip-asset-class star_index
refgenie pull --genome hg38 --all --skip-recipe star_index

If a pull fails (e.g., network error, asset not found on server), refgenie logs a warning and continues with the remaining assets. Check the log output for details about any failures.

Common issues:

  • “No local digest for genome alias”: The genome alias is not yet known locally. Refgenie will attempt to resolve it with the server automatically, or you can use --init.
  • Server unreachable: Verify your server subscription with refgenie config get and check your network connection.
  • Asset not found: Use refgenie listr to verify the asset exists on the server.

To see more details, consult the usage docs by running refgenie pull --help.

You can also browse and download pre-built refgenie assemblies manually at refgenomes.databio.org.