Skip to main content

arg_ranker

Install

pip install arg_ranker

conda install -c caozhichongchong arg_ranker

Test (download examples and use any of these commands)

arg_ranker -i example/ARGprofile_example_1.txt -m example/metadata.txt
arg_ranker -i example/ARGprofile_example_2.txt -m example/metadata.txt
arg_ranker -i test

How to use it

Prepare your ARG profile

arg_ranker is suitable for the units of ppm, gene copy per 16S or gene copy per cell

Option 1: Use our pipeline

  1. Use my traits_finder to search ARGs in genomes and metagenomes (in preparation)
    Now we have both nucleotides and amino acids databases!
    https://github.com/caozhichongchong/traits_finder

  2. Run
    arg_ranker -i ARG.profile.txt -m metadata.txt
    arg_ranker -i ARG.profile.txt

Option 2: Run your own pipeline using our database

  1. Search ARGs-OAP v1.0 database (amino acids) in your data using diamond or blast
    https://github.com/caozhichongchong/arg_ranker/tree/master/arg_ranker/data/SARG.db.fasta*

  2. Format your results into example/ARGprofile_example_1.txt or example/ARGprofile_example_2.txt

  3. Run
    arg_ranker -i ARG.profile.txt -m metadata.txt
    arg_ranker -i ARG.profile.txt
    If you see a lot of errors saying: "ARGs in mothertable do not match with the ARGs in ARG_rank.txt.
    Please check something something in ARG.summary.cell.txt!"
    It means that the samples are placed as row names instead of colomn names (which arg_ranker expects).
    Don't worry, please try: arg_ranker -i ARG.profile.txt.t
    As we automatically transpose your table to make it work.

Option 3: Use results from ARGs-OAP v1.0 (not recommended)

  1. If you have already run the ARGs-OAP v1.0 pipeline
    https://github.com/biofuture/Ublastx_stageone/archive/Ublastx_stageone.tar.gz\ https://github.com/biofuture/Ublastx_stageone/archive/Ublastx_stageone.zip

  2. Check the "extracted.fa.blast6out.txt" and "meta_data_online.txt" in the output_dir

  3. Run
    arg_ranker -f True -fo output_dir
    arg_ranker -i formated_table.normalize_cellnumber.gene.tab -m metadata.txt

Prepare your metadata for your samples (optional)

Format your metadata of metagenomic samples into example/metadata.txt (not necessarily the same)
First column matches the sample ID in your ARG profile;
Other columns contain the metadata of your samples (such as habitat/eco-type, accession number, group...)

Introduction

ARG_ranker evaluates the risk of antibiotic resistance in metagenomes.
We designed a framework to rank the risk of ARGs based on three factors: “anthropogenic enrichment”, “mobility”, and “host pathogenicity”, informed by all available bacterial genomes, plasmids, integrons, and 850 metagenomes covering diverse global eco-habitats. The framework prioritizes 3% of ARGs in Rank I (the most at risk of dissemination among pathogens) and 0.3% of ARGs in Rank II (high potential emergence of new resistance in pathogens).

Requirement: python packages (pandas, argparse)

Requirement: a mothertable of the ARG abundance in all your samples annotated by ARGs-OAP v1.0
(see example/All_sample_cellnumber.txt).

Optimal: a table of the metadata of your samples
(see example/All_sample_metadata.txt).

Copyright

Dr. An-Ni Zhang (MIT), Prof. Eric Alm (MIT), Prof. Tong Zhang* (University of Hong Kong)

Citation

  1. Zhang AN, ..., Alm EJ, Zhang T: Choosing Your Battles: Which Resistance Genes Warrant Global Action? (bioRxiv coming soon)
  2. Yang Y, ..., Tiedje JM, Zhang T: ARGs-OAP: online analysis pipeline for antibiotic resistance genes detection from metagenomic data using an integrated structured ARG-database. Bioinformatics 2016.

Contact

anniz44@mit.edu or caozhichongchong@gmail.com

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arg_ranker-2.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arg_ranker-2.1-py3.6.egg (1.6 MB view details)

Uploaded Egg

File details

Details for the file arg_ranker-2.1.tar.gz.

File metadata

  • Download URL: arg_ranker-2.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for arg_ranker-2.1.tar.gz
Algorithm Hash digest
SHA256 63ad651a4b9acec3f033c3dd1e5bca5a8bcb888f31c7a3627c387b295d212859
MD5 812c5a45436b74a0acd247fe9a45af30
BLAKE2b-256 7aa22b5a502657d921188a3311877ef51ba7d013864bb81a55c63238455649ef

See more details on using hashes here.

File details

Details for the file arg_ranker-2.1-py3.6.egg.

File metadata

  • Download URL: arg_ranker-2.1-py3.6.egg
  • Upload date:
  • Size: 1.6 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for arg_ranker-2.1-py3.6.egg
Algorithm Hash digest
SHA256 a05773970f32d969292db8fff7fbe2cfcaa95bded689eeccf4c7edb47f65535f
MD5 de49777a6d25202e0fc1137a6e7dc75a
BLAKE2b-256 442bf3a64fef4e485e65ea338ca6da28496db34583e639ec31c91e7c7e482daf

See more details on using hashes here.

Release history Release notifications | RSS feed

3.7.2

2 files

3.7.1

2 files

3.7

2 files

3.6

2 files

3.5

2 files

3.4

2 files

3.3

2 files

3.2

2 files

3.1

2 files

3.0.2

2 files

3.0.1

2 files

3.0

2 files

2.8.8

2 files

2.8.7

2 files

2.8.6

2 files

2.8.5

2 files

2.8.4

2 files

2.8.3

2 files

2.8.2

2 files

2.8.1

2 files

2.8

2 files

2.7

2 files

2.6

2 files

2.5

2 files

2.4

2 files

2.3

2 files

2.2

2 files

This release

2.1 This release

2 files

2.0

1 file

1.0.5

2 files

1.0.4

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page