Skip to content

Latest commit

 

History

66 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 DNA sequences in O(n log n) time, where n is the number of input anchors (currently MUMs or MEMs). The program is built on the same tech stack as at-cg/ChainX, it supports (gzipped) FASTA input, computes maximal unique/exact anchors, and can output the optimal chains in MUMmer-like, SAM, or PAF format.

Right now, llchain has been only tested with GCC versions 15 and 16. Get the repository, compile the HTSlib dependency, and build llchain with commands

git clone https://github.com/nrizzo/llchain && cd llchain
git submodule update --init ext/mummer ext/CLI11 ext/concurrentqueue
(git submodule update --init --recursive ext/htslib && cd ext/htslib && autoreconf -i && ./configure && make -j$(nproc)) # if HTSlib + headers are not installed in your system
make -j $(nproc)
./llchain --text test/T1.fasta --query test/T2.fasta --sam test/out.sam | column -t
./llchain --all-to-all --text test/Q.fasta --phylip test/out.phylip | column -t

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:

Citation

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

TODOs

  • PAF input
  • clang
  • investigate sorting
  • investigate predecessor data structures
  • avoid using a list in case 3

About

No description, website, or topics provided.

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages