BarKit
BarKit (Barcodes ToolKit) is a toolkit designed for manipulating FASTQ barcodes.
Installation
From crates.io
Barkit can be installed from crates.io using cargo. This can be done with the following command:
Build from source
- Clone the repository:
- Build:
&&
Extract subcommand
The extract subcommand is designed to parse barcode sequences from FASTQ reads using approximate regex matching based on a provided pattern.
All parsed barcode sequences are moved to the read header with base quality, separated by colons:
@SEQ_ID UMI:ATGC:???? CB:ATGC:???? SB:ATGC:????
- UMI: Unique Molecular Identifier (Molecular Barcode)
- CB: Cell Barcode
- SB: Sample Barcode
Examples
Parse the first twelve nucleotides as a UMI from each forward read:
Parse the first sixteen nucleotides as a cell barcode from each reverse read before the atgccat adapter sequence:
[!NOTE] Use lowercase letters for fuzzy match patterns.