julibeg / who2tbp

A script to convert WHO MTB resistant variants to a format that can be ingested by TBProfiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

who2tbp: Convert WHO TB antimicrobial resistant variants to TBProfiler format

Installation

pip install git+https://github.com/MDU-PHL/who2tbp.git

Use

Get all the high confidence variants associated with resistance:

who2tbp WHO-UCN-GTB-PCI-2021.7-eng.xlsx > tbdb_who.py

Get all the variants only interim associated with resistance:

who2tbp --filter assoc_resistance_interim WHO-UCN-GTB-PCI-2021.7-eng.xlsx > tbdb_who_assoc_interim.py

Get help:

who2tbp -h 

Complete usage

usage: Convert WHO Excel sheet with MTB mutations to TBProfiler database format [-h] [-f {assoc_resistance,no_assoc,assoc_resistance_interim,no_assoc_interim,combo,uncert_signif,all}] [-o OUTFILE] INFILE

positional arguments:
  INFILE                The WHO Excel sheet

optional arguments:
  -h, --help            show this help message and exit
  -f {assoc_resistance,no_assoc,assoc_resistance_interim,no_assoc_interim,combo,uncert_signif,all}, --filter {assoc_resistance,no_assoc,assoc_resistance_interim,no_assoc_interim,combo,uncert_signif,all}
                        Limit to single category (default: assoc_resistance)
  -o OUTFILE, --outfile OUTFILE

Develop

  1. Fork the repository:
gh fork repo MDU-PHL/who2tbp
  1. Install all dependencies:
cd who2tbp
conda create -n who2tbp --file requirements.txt -c conda-forge -c bioconda
  1. Make changes

  2. Commit changes to your fork

  3. Create a pull request

Check out this guide on creating pull requests if you are unsure how to: https://www.thinkful.com/learn/github-pull-request-tutorial/#Time-to-Submit-Your-First-PR

About

A script to convert WHO MTB resistant variants to a format that can be ingested by TBProfiler


Languages

Language:Python 100.0%