FredHutch/docker-diamond

Name: docker-diamond

Owner: Fred Hutchinson Cancer Research Center

Description: Docker image running DIAMOND

Created: 2017-09-18 22:07:11.0

Updated: 2017-12-19 01:06:01.0

Pushed: 2018-01-11 20:34:32.0

Homepage: null

Size: 38

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

docker-diamond

Docker image running DIAMOND

Docker Repository on Quay

This repository provides a Docker image for running DIAMOND that is compatible with automated analysis on AWS Batch. Specifically, this image includes a wrapper script that:

  1. Downloads reference databases

  2. Downloads input data

  3. Aligns reads with DIAMOND

  4. Calculates summary statistics for each reference (coverage and depth)

  5. Saves the outputs to stable file storage

In order to be compatible with AWS Batch, all of these steps are parameterizable and are run with a single command.

Wrapper script options
–input

Specifies the set of FASTQ reads that will be aligned. Supports files from SRA, S3, or FTP. Use the file prefix to specify the source (s3://, sra://, or ftp://). Note that for SRA, just provide the accession (e.g. sra://SRR123456).

–ref-db

Path to the DIAMOND reference database (file ending in .dmnd). Supports s3://, ftp://, or a local path.

–output-folder

Folder to place the output in, supporting either s3:// or a local path. Output files will take the form of <prefix>.json.gz, where <prefix> is the SRA accession (if specified), or otherwise the prefix of the input file from S3 or ftp.

–evalue

The evalue used to filter alignments. Defaults to 0.00001.

–blocks

Number of 'blocks' used by DIAMOND when loading the reference database in for alignment. According to the DIAMOND manual, the amount of memory used will be roughly 6X the number of blocks (in Gb). So setting --blocks to 5 would result in ~30Gb of memory being used during the alignment.

–query-gencode

Genetic code used for six-frame translation, defaults to 11 for microbial.

–threads

Number of threads used by DIAMOND during alignment, defaults to 16.

–temp-folder

The path to the folder used to create the temporary ramdisk in for storage. There is no obvious reason why a user would need to change this setting.

Output format

The output of this analysis will summarize the abundance of each individual protein in the reference database. The output is in JSON format, with the following fields:


nput_path": <PATH_TO_INPUT_DATA>,
nput": <INPUT_DATA_PREFIX>,
utput_folder": <OUTPUT_FOLDER_PATH>,
ogs": <ANALYSIS_LOGS>,
ef_db": <LOCAL_PATH_TO_REF_DB>,
ef_db_url": <URL_FOR_REF_DB>,
otal_reads": <INT>,
ligned_reads": <INT>,
ime_elapsed": <FLOAT_SECONDS>,
esults": [
{
  "id": "gene1",
  "length": 340,
  "total_depth": 1.5,
  "total_coverage": 0.8,
  "total_rpkm": 234.156,
  "unique_depth": 0.75,
  "unique_coverage": 0.3,
  "unique_rpkm": 24.561
},
{
  "id": "gene2",
  "length": 120,
  "total_depth": 4.6,
  "total_coverage": 0.98,
  "total_rpkm": 534.156,
  "unique_depth": 1.21,
  "unique_coverage": 0.36,
  "unique_rpkm": 55.751
},
...



This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.