Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llchain — log-linear chaining with L∞ gap costs and Δdiag overlap costs

llchain is a C++20 program to compute the anchored edit distance between query and reference sequences via colinear chaining in O(n log n) time, built on the same tech stack as at-cg/ChainX. It supports FASTA or gzipped FASTA input, it computes maximal unique/exact anchors, and it supports the output of an optimal chain in MUMmer-like or SAM format.

Right now, the program has been tested with GCC version 15. Get the repository and compile llchain with

git clone https://github.com/nrizzo/llchain && cd llchain
git submodule update --init ext/mummer
make -j $(nproc)
./llchain --text test/T1.fasta --query test/T2.fasta

Experiments

To run the experiment on HG002 PacBio HiFi reads aligned to the T2T-CHM13 reference, check experiments/ChainX-human/README.md. The results, where we compare the chaining cost of llchain to ChainX and ChainX-opt on maximal exact match anchors of length >= 50, are shown in the next figure.

Figure: results of the chaining experiment

External libraries

llchain is built with the following libraries:

Dependencies

gengetopt for development

Citation

If you use flags --chainx or --chainx-opt, please cite the corresponding works:

TODOs

  • use CLI11 instead of gengetopt
  • clang
  • investigate sorting
  • investigate predecessor data structures
  • avoid using a list in case 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages