rgi

Resistance Gene Identifier (RGI). Software to predict resistomes from protein or nucleotide data, including metagenomics data, based on homology and SNP models.

https://github.com/arpcard/rgi

Science Score: 64.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: ncbi.nlm.nih.gov
  • Committers with academic emails
    3 of 18 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.6%) to scientific vocabulary

Keywords from Contributors

bioinformatics genomics sequences interactive clade packages network-simulation hacking book embedded
Last synced: 7 months ago · JSON representation ·

Repository

Resistance Gene Identifier (RGI). Software to predict resistomes from protein or nucleotide data, including metagenomics data, based on homology and SNP models.

Basic Info
  • Host: GitHub
  • Owner: arpcard
  • License: other
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 137 MB
Statistics
  • Stars: 366
  • Watchers: 18
  • Forks: 81
  • Open Issues: 4
  • Releases: 20
Created about 9 years ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.rst

|build-status| |docs|

.. |build-status| image:: https://travis-ci.org/arpcard/rgi.svg?branch=master
    :alt: build status
    :scale: 100%
    :target: https://travis-ci.org/arpcard/rgi

.. |build-status| image:: https://github.com/arpcard/rgi/actions/workflows/build.yml/badge.svg?branch=master
		 :alt: Workflow status badge
		 :scale: 100%
		 :target: https://github.com/arpcard/rgi/actions/workflows/build.yml

.. |docs| image:: https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat
    :alt: Documentation
    :scale: 100%
    :target: http://bioconda.github.io/recipes/rgi/README.html

====================================
The Resistance Gene Identifier (RGI)
====================================

This application is used to predict antibiotic resistome(s) from protein or nucleotide data based on homology and SNP models. The application uses reference data from the `Comprehensive Antibiotic Resistance Database (CARD) `_.

RGI analyses can be performed via the CARD website `RGI portal `_, via use of a `Galaxy wrapper `_ for the `Galaxy `_ platform, or alternatively you can install RGI from Conda or run RGI from Docker (see below). The instructions below discuss use of RGI at the command line, following a general overview of how RGI works for genomes, genome assemblies, proteomes, and metagenomic sequencing.

May 2023: Chan Zuckerberg ID (CZ ID) has implemented a web-based platform for RGI analysis of assembled contigs (FASTA) or metagenomic sequencing reads (FASTQ): `CZ ID AMR Pipeline Workflow `_.

**CARD reference sequences and significance cut-offs are under constant curation - as CARD curation evolves, the results of RGI evolve.**

* `CARD Frequency Asked Questions `_
* `CBW 2024 Infectious Disease Genomic Epidemiology - Antimicrobial Resistant Gene (AMR) Analysis using CARD & RGI `_

Overview and Use of RGI
=======================

* `Help Menu and Usage `_
* `Loading CARD Reference Databases `_
* `Analyzing Genomes, Genome Assemblies, Metagenomic Contigs, or Proteomes `_ (a.k.a. RGI main)
* `Analyzing Metagenomic Reads `_ (a.k.a. RGI bwt)
* `K-mer Prediction of Pathogen-of-Origin for AMR Genes `_ (beta-testing)
* `Running RGI on Digital Alliance (formerly Compute Canada) Serial Farm `_

License
--------

Use or reproduction of these materials, in whole or in part, by any commercial organization whether or not for non-commercial (including research) or commercial purposes is prohibited, except with written permission of McMaster University. Commercial uses are offered only pursuant to a written license and user fee. To obtain permission and begin the licensing process, see the `CARD website `_.

Citation
--------

Alcock et al. 2023. CARD 2023: expanded curation, support for machine learning, and resistome prediction at the Comprehensive Antibiotic Resistance Database. Nucleic Acids Research, 51, D690-D699 [`PMID 36263822 `_]

Support & Bug Reports
----------------------

Please log an issue on `github issue `_.

You can email the CARD curators or developers directly at `card@mcmaster.ca `_.

---------------------

Installation
============

Recommended installation method for most users is via Conda or Docker.
This will handle dependency management and ensure installation of the
correct version of RGI's external dependencies e.g., BLAST, DIAMOND.

Install RGI from Conda
----------------------

Install `conda `_ on your system if not already available.

Install `mamba` from `mamba `_ on your system if not already available.

Search for RGI package and show available versions:

  .. code-block:: sh

        mamba search --channel conda-forge --channel bioconda --channel defaults rgi

Create a new Conda environment

  .. code-block:: sh

        mamba create --name rgi --channel conda-forge --channel bioconda --channel defaults rgi

Install RGI package:

  .. code-block:: sh

        mamba install --channel conda-forge --channel bioconda --channel defaults rgi

Install RGI specific version:

  .. code-block:: sh

        mamba install --channel conda-forge --channel bioconda --channel defaults rgi=5.1.1

Remove RGI package:

  .. code-block:: sh

        mamba remove rgi


Install RGI using Docker/Singularity
------------------------------------

RGI is available via biocontainers full installed with all
databases appropriately loaded.

Install `docker `_ on your system if not already available

- Pull the Docker container from biocontainers (built from Conda package at https://quay.io/repository/biocontainers/rgi?tab=tags&tag=latest).

    .. code-block:: sh

        docker pull quay.io/biocontainers/rgi:6.0.3--pyha8f3691_0

- RGI can be executed from the container as follows:

    .. code-block:: sh

        docker run -v $PWD:/data quay.io/biocontainers/rgi:6.0.3--pyha8f3691_0 rgi -h


Install Development Version
---------------------------

Install Dependencies
````````````
The following conda command will install all RGI dependencies (listed below):

.. code-block:: sh

    git clone https://github.com/arpcard/rgi
    conda env create -f conda_env.yml
    conda activate rgi

- `Python 3.6+ `_
- `NCBI BLAST 2.16.0 `_
- `zlib `_
- `Prodigal 2.6.3 `_
- `DIAMOND 0.8.36 `_
- `Biopython 1.78 `_
- `filetype 1.0.0+ `_
- `pytest 3.0.0+ `_
- `pandas 0.15.0+ `_
- `Matplotlib 2.1.2+ `_
- `seaborn 0.8.1+ `_
- `pyfaidx 0.5.4.1+ `_
- `pyahocorasick 1.1.7+ `_
- `OligoArrayAux 3.8 `_
- `samtools 1.21 `_
- `bamtools 2.5.2 `_
- `bedtools 2.31.1 `_
- `Jellyfish 2.2.10 `_
- `Bowtie2 2.5.4 `_
- `BWA 0.7.18 `_
- `KMA 1.4.17 `_


Install RGI
```````````

.. code-block:: sh

   pip install git+https://github.com/arpcard/rgi.git

or

.. code-block:: sh

   python setup.py build
   python setup.py test
   python setup.py install

Running RGI Tests
`````````````````
.. code-block:: sh

   cd tests
   pytest -v -rxs

-------------------

Owner

  • Name: Comprehensive Antibiotic Resistance Database
  • Login: arpcard
  • Kind: user

A bioinformatic database of resistance genes, their products and associated phenotypes.

Citation (CITATION.cff)

cff-version: 1.1.0
date-released: 2020-01-01
version: 6.0.3
message: "If you use RGI or CARD in your research please cite:"
repository-code: "https://github.com/arpcard/rgi"
title: "CARD 2023: expanded curation, support for machine learning, and resistome prediction at the Comprehensive Antibiotic Resistance Database"
journal: "Nucleic Acids Research"
doi: "10.1093/nar/gkac920"
authors:
  -
    family-names: "Alcock"
    given-names: "BP"
  -
    family-names: "Huynh"
    given-names: "W"
  -
    family-names: "Chalil"
    given-names: "R"
  -
    family-names: "Smith"
    given-names: "KW"
  -
    family-names: "Raphenya"
    given-names: "AR"
  -
    family-names: "Wlodarski"
    given-names: "MA"
  -
    family-names: "Edalatmand"
    given-names: "A"
  -
    family-names: "Petkau"
    given-names: "A"
  -
    family-names: "Syed"
    given-names: "SA"
  -
    family-names: "Tsang"
    given-names: "KK"
  -
    family-names: "Baker"
    given-names: "SJC"
  -
    family-names: "Dave"
    given-names: "M"
  -
    family-names: "McCarthy"
    given-names: "MC"
  -
    family-names: "Mukiri"
    given-names: "KM"
  -
    family-names: "Nasir"
    given-names: "JA"
  -
    family-names: "Golbon"
    given-names: "B"
  -
    family-names: "Imtiaz"
    given-names: "H"
  -
    family-names: "Jiang"
    given-names: "X"
  -
    family-names: "Kaur"
    given-names: "K"
  -
    family-names: "Kwong"
    given-names: "M"
  -
    family-names: "Liang"
    given-names: "ZC"
  -
    family-names: "Niu"
    given-names: "KC"
  -
    family-names: "Shan"
    given-names: "P"
  -
    family-names: "Yang"
    given-names: "JYJ"
  -
    family-names: "Gray"
    given-names: "KL"
  -
    family-names: "Hoad"
    given-names: "GR"
  -
    family-names: "Jia"
    given-names: "B"
  -
    family-names: "Bhando"
    given-names: "T"
  -
    family-names: "Carfrae"
    given-names: "LA"
  -
    family-names: "Farha"
    given-names: "MA"
  -
    family-names: "French"
    given-names: "S"
  -
    family-names: "Gordzevich"
    given-names: "R"
  -
    family-names: "Rachwalski"
    given-names: "K"
  -
    family-names: "Tu"
    given-names: "MM"
  -
    family-names: "Bordeleau"
    given-names: "E"
  -
    family-names: "Dooley"
    given-names: "D"
  -
    family-names: "Griffiths"
    given-names: "E"
  -
    family-names: "Zubyk"
    given-names: "HL"
  -
    family-names: "Brown"
    given-names: "ED"
  -
    family-names: "Maguire"
    given-names: "F"
  -
    family-names: "Beiko"
    given-names: "RG"
  -
    family-names: "Hsiao"
    given-names: "WWL"
  -
    family-names: "Brinkman"
    given-names: "FSL"
  -
    family-names: "Van"
    given-names: "Domselaar"
    given-names: "G"
  -
    family-names: "McArthur"
    given-names: "AG"

GitHub Events

Total
  • Create event: 2
  • Release event: 2
  • Issues event: 51
  • Watch event: 36
  • Delete event: 1
  • Issue comment event: 73
  • Push event: 24
  • Pull request event: 3
  • Fork event: 5
Last Year
  • Create event: 2
  • Release event: 2
  • Issues event: 51
  • Watch event: 36
  • Delete event: 1
  • Issue comment event: 73
  • Push event: 24
  • Pull request event: 3
  • Fork event: 5

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 567
  • Total Committers: 18
  • Avg Commits per committer: 31.5
  • Development Distribution Score (DDS): 0.427
Past Year
  • Commits: 75
  • Committers: 7
  • Avg Commits per committer: 10.714
  • Development Distribution Score (DDS): 0.333
Top Committers
Name Email Commits
Amos Raphenya r****r@m****a 325
amcarthur a****r@m****m 93
Andrew G. McArthur m****a@m****a 49
Finlay Maguire f****e@g****m 39
lautty l****y@m****a 24
Ryan Lim r****m@c****m 9
dependabot[bot] 4****] 5
Brian Alcock B****n@S****l 5
Martin Larralde m****e@e****e 5
Nolan Woods n****w@s****a 2
zak z****n@g****m 2
Comprehensive Antibiotic Resistance Database c****d@m****a 2
Hung-Lin, Chen h****8@g****m 2
Rintze M. Zelle r****e@g****m 1
Huo Linhe l****o@g****m 1
Benjamin Wingfield b****d@u****k 1
Mary Jo Ramos m****s@p****a 1
Jordan Gumm g****m@u****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 23
  • Total pull requests: 2
  • Average time to close issues: about 2 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 22
  • Total pull request authors: 2
  • Average comments per issue: 2.22
  • Average comments per pull request: 0.5
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 20
  • Pull requests: 2
  • Average time to close issues: about 1 month
  • Average time to close pull requests: about 1 month
  • Issue authors: 20
  • Pull request authors: 2
  • Average comments per issue: 1.2
  • Average comments per pull request: 0.5
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • agmcarthur (3)
  • VinzentRisch (2)
  • jihen-lau (2)
  • alex-trist (2)
  • mainakbioinfo (2)
  • pratibha-kadam (1)
  • AlePetroni (1)
  • rvincenzi (1)
  • gilmahu (1)
  • ZYX593889540 (1)
  • feihongloveworld (1)
  • juanvargas0304 (1)
  • Lucy0309 (1)
  • ellyyuyang (1)
  • mradz19 (1)
Pull Request Authors
  • dependabot[bot] (2)
  • lvreynoso (1)
  • althonos (1)
  • agmcarthur (1)
  • mahimsafa (1)
  • mukirikm (1)
  • VinzentRisch (1)
  • stitam (1)
Top Labels
Issue Labels
stale (20) bug (19) help wanted (2) enhancement (1)
Pull Request Labels
stale (4) dependencies (2) bug (2) python (1)

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 13
proxy.golang.org: github.com/arpcard/rgi
  • Versions: 13
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.7%
Dependent repos count: 5.8%
Last synced: 7 months ago

Dependencies

.github/workflows/dockerpublish.yml actions
  • docker/build-push-action v2 composite
  • docker/login-action v1 composite
  • docker/setup-buildx-action v1 composite
  • docker/setup-qemu-action v1 composite
Dockerfile docker
  • continuumio/miniconda3 latest build
requirements.txt pypi
  • beautifulsoup4 >=4.9.3
  • biopython ==1.78
  • dask *
  • filetype >=1.0.0
  • lxml >=4.9.1
  • matplotlib >=2.1.2
  • pandas >=0.15.0
  • pyahocorasick ==1.4.0
  • pyfaidx >=0.5.4.1
  • pyrodigal >=2.0.0
  • pysam >=0.16.0.1
  • pytest >=3.0.0
  • requests ==2.24.0
  • seaborn >=0.8.1
.github/workflows/build.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/stale.yml actions
  • actions/stale v8 composite
setup.py pypi