GROOT
is a tool to type Antibiotic Resistance Genes (ARGs) in metagenomic samples. It combines variation graph representation of gene sets with an LSH indexing scheme to allow for fast classification of metagenomic reads. Subsequent hierarchical local alignment of classified reads against graph traversals facilitates accurate reconstruction of full-length gene sequences using a simple scoring scheme.
GROOT
will output an ARG alignment file (in BAM format) that contains the graph traversals possible for each query read; the alignment file is then used to generate a simple ARG typing report.
Check out the releases to download a binary. Alternatively, compile the software from source:
GROOT
is written in Go (v1.9) - to compile from source you will first need the Go tool chain. Once you have it, try something like this to compile:
# Clone this repository
git clone https://github.com/will-rowe/groot.git
# Go into the repository and get the package dependencies
cd groot
go get -d -t -v ./...
# Compile the program
go build ./
# Call the program
./groot --help
GROOT
is called by typing groot, followed by the command you wish to run. There are three main commands, index, align and report. This quick start will cover how to get things running but it is recommended to follow the documentation for more advanced use cases.
Indexing requires a clustered set of reference ARGs (some pre-clustered sets can be found in the paper/data
directory within this repo).
groot index -i paper/data/clustered-ARG-databases/arg-annot-90 -o groot-index
Indexing only needs to run once, unless you wish to alter the seeding parameters used during the alignment or the read length has changed.
Alignment uses the previously generated index files and requires a file of FASTQ reads as input.
groot align -i groot-index -f paper/data/test-reads/full-argannot-perfect-reads-small.fq.gz > out.bam
Reporting takes the alignment generated by groot align and creates an ARG typing report.
groot report -i out.bam > report.txt
Please read the gitbook for more extensive documentation.
The paper describing GROOT
is in preparation and will be pre-printed soon.