twitcher-0.1.8 is not a library.
Twitcher
Template switch aligner.
A tool to re-annotate VCF files. We want to explain clusters of SNVs/Indels with one or more short-range template switches (Löytynoja and Goldman (2017)).
The tool operates in two stages:
- While reading the input vcf file (either from stdin or a file), find suspicious™ clusters of SNVs and Indels, e.g. more than 3 indels within 10 basepairs.
- Realign those clusters under consideration of a few hundred surrounding base pairs. If the mutation cluster can be better explained with one or more template switches, output the new, reannotated vcf records instead of the original ones.
The tool is designed to enrich the vcf file with more information. Unaffected records are output as-is.
Installation
You can install the tool from source using cargo (needs at least version 1.87.0):
Get cargo e.g. via rustup. You'll also need the clang C compiler to compile the underlying htslib bindings.
Usage
Twitcher has two main commands:
twitcher vcf— Re-annotate VCF files with template switch mutationstwitcher reads— Find template switch mutations in sequencing reads
Quick Start
This realigns suspicious mutation clusters and outputs reannotated variants.
Full Documentation
Complete documentation is available in docs/:
Examples
# Realign with larger context window
# Only output realigned variants
# Use reads to (try to) phase ambiguous clusters
# Export template switch regions
# Use a database to store known cases
Background
The underlying pairwise aligner is developed on GitHub by Sebastian Schmidt.