Skip to main content

iqKM (Identification and Quantification of KEGG Modules)

iqKM is an easy to use pipeline to assign and/or quantify KEGG Orthology (KO) and KEGG modules (KMs) in metagenome/genome.

iqKM -i genome.fna -o out_dir --help_dir help_dir
iqKM -i metagenome.fna -o out_dir --help_dir help_dir --fq raw_reads.fastq(.gz) --meta --quantify
iqKM -h

Detailed pipeline walkthrough

iqKM workflow

Installation

iqKM is a command line tool developed for Linux and macOS and is available to install from github, bioconda or pypi.

Install via conda (recommended)

Installing iqKM via conda will automatically install all dependencies.

  • Step 1: Create the iqKM environment
conda create -n iqkm -c bioconda iqKM
  • Step 2: Download Kofam HMM db and help files
conda activate iqkm

# download help_dir, which contains Kofam HMM db and other help_files
wget ftp_link && unzip help_dir

Install via pip

  • Step 1: Install third-party dependencies

Before installing iqKM using pip, make sure the following softwares are on the system path, they are all easy-to-install tools.

Software Version
HMMER >=3.1
Prodigal >=2.6.3
bwa >= 0.7.17
samtools >= 1.3.1
  • Step 2: Install iqKM
pip install iqKM
  • Step 3: Download Kofam HMM db and help files
# download help_dir, which contains Kofam HMM db and other help_files
wget ftp_link && unzip help_dir

Install from github

  • Step 1: Install third-party dependencies

Before installing iqKM, make sure the following softwares are on the system path, they are all easy-to-install tools.

Software Version
HMMER >=3.1
Prodigal >=2.6.3
bwa >= 0.7.17
samtools >= 1.3.1
  • Step 2: Clone the repo and install
git clone https://github.com/lijingdi/iqKM.git
cd /path/to/iqKM
python3 setup.py install
  • Step 3: Download Kofam HMM db and help files
# go to our ftp site https://drive.google.com/u/0/uc?export=download&confirm=H3_U&id=1_Kxhox_hqrs7c_fVD8LC8mbwf4vp0ehX and download help_dir.zip
unzip help_dir && cd help_dir
pwd
# /path/to/help_dir
# now you can use above path as --help_dir /path/to/help_dir when running iqkm

Usage

Basic usage

  • KMs assignment for individual genomes
iqKM -i genome.fna -o out_dir --help_dir help_dir
  • KMs assignment and quantification for individual genomes
iqKM -i genome.fna -o out_dir --help_dir help_dir --fq raw_reads_1.fastq(.gz) --rq raw_reads_2.fastq(.gz) --quantify
  • KMs assignment for metagenomes
iqKM -i metagenome.fna -o out_dir --help_dir help_dir --meta
  • KMs assignment and quantification for metagenomes
iqKM -i metagenome.fna -o out_dir --help_dir help_dir --fq raw_reads_1.fastq(.gz) --rq raw_reads_2.fastq(.gz) --meta --quantify

Arguments

iqKM -h

iqkm -i input_genome -o out_dir [--fq fastq_1.gz] [--rq fastq_2.gz] [--prefix PREFIX] [--db HMMdb] [--com float] [--skip] [--quantify] [--meta] [-w] [-n int] [-f] [-d] [-g file]

Required arguments
-i, --input input genome/metagenome
-o, --out_dir output folder
--help_dir Folder containing Kofam HMM database and essential help files, refer to install to download
Optional arguments
--fq input first/single read file, fastq(.gz), only required when '--quantify' is specified
--rq input reverse read file, fastq(.gz), only required when '--quantify' is specified
--prefix prefix of output files, default: input genome filename without postfix
--db Your customised Kofam HMM database, default=None
--com KM completeness threshold (%) on contig basis, default=66.67
--skip Force skipping steps if output files exist, default=False
-q, --quantify Run both KM assignment and quantification, default=False
-m, --meta Run in metagenome mode, default=False
-w,--include_weights Enable normalizing KM abundance using KO weights, default=True
-n, --threads Number of threads used for computation, default=1
-f, --force Force rerunning the whole pipeline, don't resume previous run, default=False
-d, --dist Apply KM minimum distance threshold, default=True
-g,--genome_equivalent Genome equivalent output generated from microbe-census, can be used for library-size normalization, optional

Files output

Acknowledgements

Author of pipeline: Jingdi Li

Principal Investigators: Rob Finn

If you find any errors or bugs, please do not hesitate to contact lijingdioo@outlook.com or open a new Issue thread on this github page, we will get back to you as soon as possible.

Metadata

Release files for iqkm 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iqkm 1.0
File Size Uploaded Provenance
iqkm-1.0.tar.gz 21.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for iqkm 1.0
File Interpreter ABI Platform
iqkm-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 58.6 kB

Release files / iqkm-1.0.tar.gz

Download URL iqkm-1.0.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
45efd4b0977bdc487b22993cffe327ef0b55ebfa2e29fbbb5b987e9303e4fe14
BLAKE2b-256 checksum
How to use checksums
9d64fabc768dd740b41520cdc3040b28c5939552c0ac4e1889e0609811d6be78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.0 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release files / iqkm-1.0-py3-none-any.whl

Download URL iqkm-1.0-py3-none-any.whl
Size 37.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6354867ae727694f999b80e5b91e852913ae01aade1600b8fdae675c610eaa6
BLAKE2b-256 checksum
How to use checksums
1ff902c7b48007c6dca3eb5f6d8d272c2de0f3e13121623b40c55434b2001ccc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.0 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Security for iqkm 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

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