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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Docker image running DIAMOND
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:
Downloads reference databases
Downloads input data
Aligns reads with DIAMOND
Calculates summary statistics for each reference (coverage and depth)
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.
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
).
Path to the DIAMOND reference database (file ending in .dmnd). Supports s3://
, ftp://
, or a local path.
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.
The evalue used to filter alignments. Defaults to 0.00001.
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.
Genetic code used for six-frame translation, defaults to 11 for microbial.
Number of threads used by DIAMOND during alignment, defaults to 16.
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.
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
},
...