Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

GitHub release Gitter

IRIDA AMR Detection Pipeline

This project contains an IRIDA plugin for a pipeline to perform AMR detection using RGI and staramr.


Installing to IRIDA

Please download the provided amr-detection-[version].jar from the releases page and copy to your /etc/irida/plugins directory. Now you may start IRIDA and you should see the pipeline appear in your list of pipelines.

Note: This plugin requires you to be running IRIDA version >= 21.01. Please see the IRIDA documentation for more details.

Installing Galaxy Dependencies

In order to use this pipeline, you will also have to install the RGI, staramr, and shovill (for assembly) Galaxy tools within your Galaxy instance. These can be found at:

Name Version Galaxy Tool
RGI 5.1.1
staramr 0.7.2+galaxy0
shovill 1.1.0+galaxy0


This tutorial shows how to run the AMR Detection pipeline in IRIDA.

Tutorial Data

The pipeline requires as input paired-end sequence reads in FASTQ format. We will be using Illumina MiSeq data from a sample of Campylobacter jejuni for this tutorial with run ID SRR8914694. Paired-end fastq files can be downloaded from (the FASTQ files (FTP) links). A collection of additional example data can be found in the IRIDA Sample Data package.

Adding Samples to the Cart

Once samples are created for the data and the files are uploaded, you can select the samples you wish to run and add them to the cart by clicking the Add to Cart button.


Once you have selected your samples, you can click on the Cart button to move to selecting a pipeline.


Selecting a Pipeline

Once inside the cart, you should see a card for the AMR Detection pipeline.


Please click the Select button to proceed with the pipeline.

Selecting Parameters

Once the pipeline is selected, the next page provides an overview of all the input files, as well as the option to modify parameters.


Please make sure the Save AMR detection results to Project Line List Metadata is selected so that results get saved to the Line List. Also, please click the Customize button so that we can modify the PointFinder parameters.


In particular, you may want to modify the Scan for point mutations using the selected PointFinder database parameter, changing the value to campylobacter. If you which to completely disable searching the PointFinder database, you can instead set this to disabled (the default value).

If you know the organism you may also want to set the lower/upper bounds for the genome length. This only impacts the output of the quality module (which checks if the assembled genome is within these bounds). In this case the organism is Campylobacter jejuni so let's set the lower bound to 1400000 and upper bound to 1900000.



Once all your parameters are set, you can click the Ready to Launch? button to launch the pipeline.


Monitoring Pipeline Status

To monitor the status of the launched pipeline, please select the Analyses > Your Analyses menu.


From here, you can monitor the status of your pipeline.


Analysis Results

Once the analysis pipeline is finished, you can view the analysis results in your browser or download the files to your machine.


These results show you both the staramr and RGI AMR results on the data, assembled with shovill. The staramr results are all contained within a single Excel file shown here, which lists the detected antimicrobial resistance genes, MLST sequence type, plasmid incompatibility factors among other information. For details on how to interpret these, please see the documentation of the respective projects.

Metadata Table

If you selected the Save AMR detection results to Project Line List Metadata option when launching the pipeline, then both the predicted AMR genes and drug resistances will be integrated into the IRIDA Line List/Metadata table as shown below.



Installing IRIDA Libraries

To build this plugin yourself, you must first install IRIDA to your local Maven repository. Please make sure you are installing the IRIDA version defined in the irida.version.compiletime property in the pom.xml file (e.g., 21.01). Or, alternatively, please update the IRIDA dependency version in the pom.xml file.

To install the IRIDA libraries to a local Maven repository, please run the following from within the IRIDA project (the irida/ directory):

mvn clean install -DskipTests

Building AMR Detection Plugin

Once IRIDA is installed, you may build the pipeline plugin by running the following in this project's directory (the irida-plugin-amr-detection/ directory):

mvn clean package

This should produce a target/*.jar file, which can be copied into /etc/irida/plugins/.


Copyright 2019 Government of Canada

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License at:

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


IRIDA Plugin for AMR Detection




No packages published

Contributors 4