github.com/kojix2/sdust.cr

Reimplementation of Sdust in the Crystal language

1 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  sdust:
    github: kojix2/sdust.cr
    version: ~> 0.2.0

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
kojix2
Target
  • sdust from src/cli.cr

Dependencies

Runtime Dependencies

  • fastx*github: bio-cr/fastx.cr

README

Sdust.cr

test

Reimplementation of Sdust in Crystal.

Installation

Install via GitHub Releases or from source:

git clone https://github.com/kojix2/sdust.cr
cd sdust.cr
shards build --release

Usage

Usage: sdust [options] <in.fa>
    -w, --window SIZE                Window size [64]
    -t, --threshold SIZE             Threshold size [20]

License

  • This project is a reimplementation of Heng Li's Sdust in Crystal.
  • Sdust is part of Minimap2, which is licensed under the MIT License.

MIT License

FAQ

Q: Is this implementation faster than the original Sdust?

A: No. Earlier versions were about 1.5x slower. In the v0.2.0 benchmark, after streaming FASTA records through the core and reducing some allocations, it is about 1.04x slower on chr21.

Q: Does this implementation consume less memory than the original Sdust?

A: In the v0.2.0 benchmark, yes. Earlier versions used several times more memory. After reducing retained sequence and intermediate data, peak RSS on chr21 is lower than the original Sdust.

Q: Why was it created?

A: It was created to explore how much performance could be improved using Crystal, a language similar to Ruby.