Skip to content

clintval/krak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

krak

Install with bioconda Anaconda Version Build Status Coverage Status Language

An addicting set of Kraken-enhancing tools.

Monkey Pod Tree

Install with mamba, conda, or run directly with pixi:

pixi exec \
    -c conda-forge -c bioconda \
    krak --help

Introduction

This project provides tools for integrating Kraken and Kraken2 taxonomic classifications into FASTX (FASTQ or FASTA), SAM, BAM, and CRAM workflows. Kraken creates k-mer-based taxonomic labels from genomic sequences such as single-end or paired-end sequencing reads. krak bridges the gap between genomic sequences stored in alignment files and their taxonomic classifications so that you can filter, rescue, or otherwise act on the classification of each genomic sequence.

All subcommands support both Kraken v1 and Kraken v2 output formats.

Quick Start

Classify, annotate, and filter a queryname-grouped BAM:

krak annotate \
    -i input.bam \
    -d /kraken-db \
    -a <(krak prep input.bam | kraken2 --db /kraken-db --output - -) \
| krak filter -t 9606 -o output.bam

Features

  • krak prep: for preparing FASTA/FASTQ/SAM/BAM/CRAM for Kraken input
  • krak annotate: annotates SAM/BAM/CRAM records with Kraken classifications
  • krak n2ref: converts aligned Ns to reference bases
  • krak filter: filters a FASTA/FASTQ/SAM/BAM/CRAM based on Kraken output
  • krak report2tsv: converts a Kraken report to a tab-separated text file

Development and Testing

See the contributing guide for more information.

About

AI Experiment: An addicting set of Kraken-enhancing tools

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages