caozhichongchong / arg_ranker

MIT License
23 stars 11 forks source link
antibiotic-resistance metagenomics risk-assessment

arg_ranker

arg_ranker evaluates the risk of ARGs in genomes and metagenomes

Install

experimental version using most updated ARG database (SARGv3)\ pip install arg_ranker\ Long term support version using the same ARG database in the publication (SARGv1)\ pip install arg-ranker==3.0.2

Please make sure to install arg_ranker >= v3

To all users,\ We have noticed an error of arg_ranker.v2 when reporting the total ARG abundance in metagenomes.\ If the total abundance is used in your research, please update arg_ranker to v3 and re-run your metagenomes (arg_ranker -i $INPUT -kkdb $KRAKENDB).\ Alternatively, you can fix arg_ranker.v2 by replacing its original ARG_table.sum.py with ARG_table.sum.py\ and re-run the last two commands in arg_ranker.sh python $PATH_to_arg_ranker/bin/ARG_table.sum.py -i ... and arg_ranker -i ....\ You can find the path to ARG_table.sum.py in arg_ranker.sh.\ Note that this ARG_table.sum.py is only meant for fixing arg_ranker.v2 and the results of arg_ranker.v2.\ Please do not replace ARG_table.sum.py in arg_ranker.v3 with this ARG_table.sum.py.\ We are really sorry about this inconvenience.\ Please feel free to reach out to anniz44@mit.edu if you have any questions.

To check installed version pip show arg_ranker\ To upgrade pip install arg_ranker --upgrade

Requirement

How to use it

Output

  1. Rank_I_per - Unassessed_per: percentage of ARGs of a risk Rank\ Total_abu: total abundance of all ARGs
  2. For genomes, we output the copy number of ARGs detected in each genome.
  3. For metagenomes, we compute the abundance of ARGs as the copy number of ARGs divided by the bacterial cell number or 16S copy number in the same metagenome.\ If you downloaded the kraken2 standard database, we compute the copy number of ARGs divided by the bacterial cell number.\ If you downloaded the kraken2 16S database, we compute the copy number of ARGs divided by the 16S copy number.\ The copy number of ARGs, 16S, and bacterial cells were computed as the number of reads mapped to them divided by their gene/genome length.
  4. We compute the contribution of each ARG risk Rank as the average abundance of ARGs of a risk Rank divided by the average abundance of all ARGs\ Rank_I_risk - Unassessed_risk: the contribution of ARGs of a risk Rank\ Rank_code: a code of contribution from Rank I to Unassessed

Test

run arg_ranker -i example -kkdb $KRAKENDB\ run sh arg_ranking/script_output/arg_ranker.sh\ The arg_ranking/Sample_ranking_results.txt should look like Table 1 (using kraken2 standard database)

Metadata for your samples (optional)

arg_ranker can merge your sample metadata into the results of ARG ranking (i.e. note1 in Table 1).\ Simply put all information you would like to include into a tab-delimited table\ Make sure that your sample names are listed as the first column (check example/metadata.txt).

Copyright

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

Citation

Zhang, AN., Gaston, J.M., Dai, C.L. et al. An omics-based framework for assessing the health risk of antimicrobial resistance genes. Nat Commun 12, 4765 (2021). https://doi.org/10.1038/s41467-021-25096-3 Correction: bacA is a bacitracin resistance gene, not a beta-lactamase (Fig 3).

Contact

anniz44@mit.edu or caozhichongchong@gmail.com

Acknowledgement

Special thanks to LeabaeL for their great help in testing various versions of arg_ranker and diamond!