Crates.io | matchtigs |
lib.rs | matchtigs |
version | 2.1.8 |
source | src |
created_at | 2021-12-02 09:12:47.358968 |
updated_at | 2024-08-26 07:37:55.165139 |
description | Different algorithms for computing small and minimum plain text representations of kmer sets. |
homepage | https://github.com/algbio/matchtigs |
repository | https://github.com/algbio/matchtigs |
max_upload_size | |
id | 491105 |
size | 221,771 |
This is an implementation of different algorithms for computing small and minimum plain text representations of kmer sets. The algorithms expect unitigs as an input, which can e.g. be computed with GGCAT or BCALM2.
If you wish to compute matchtigs or Eulertigs from arbitrary input without computing unitigs yourself first, consider using GGCAT. Its readme mentions the required flags.
.gz
-e
flag) or BCALM2 (no flag required) can be used to speed up loading (use --bcalm-in
instead of --fasta-in
)The matchtigs tool can be installed with the following methods. Out of the box, it implements all algorithms but the optimal matchtig algorithm. This is because the optimal matchtig algorithm uses the commercial software blossom V, which is freely available for researchers, but cannot be publicly redistributed. For all practical purposes, we recommend using greedy matchtigs, as they are a lot more efficient to compute, and have very similar cumulative length and string count as matchtigs (see the matchtigs publication linked below).
Install matchtigs
with
mamba install -c conda-forge -c bioconda matchtigs
Rust >= 1.70.0
, best installed via rustup.
Install matchtigs
with
cargo install matchtigs
Note: Computing minimum matchtigs requires O(|V|^2)
memory and is often not feasible in practice. Use greedy matchtigs instead, which are near-optimal.
Computing matchtigs and greedy matchtigs from a fasta file and saving them as GFA (without topology):
matchtigs --fa-in unitigs.fa --matchtigs-gfa-out matchtigs.gfa --greedytigs-gfa-out greedy-matchtigs.gfa
Computing Eulertigs from a GFA file and saving them as both GFA (without topology) and fasta:
matchtigs --fa-in unitigs.fa --eulertigs-gfa-out eulertigs.gfa --eulertigs-fa-out eulertigs.fa
Note: when computing unitigs with GGCAT or BCALM2, it is much faster to use --bcalm-in
:
matchtigs --bcalm-in unitigs.fa --eulertigs-gfa-out eulertigs.gfa --eulertigs-fa-out eulertigs.fa
Use the --help
option to get an overview of available options.
matchtigs --help
matchtigs (Genome Biology)
Schmidt, S., Khan, S., Alanko, J., Pibiri, G. E., and Tomescu, A. I., Matchtigs: minimum plain text representation of k-mer sets. Genome Biology 24, 136 (2023). 10.1186/s13059-023-02968-z.
Eulertigs (WABI 2022 best paper award)
Schmidt, S. and Alanko, J., Eulertigs: minimum plain text representation of k-mer sets without repetitions in linear time. WABI 2022. 10.4230/LIPIcs.WABI.2022.2.