meru
Version, currently 0.0.13 versions
- 0.0.2latestApr 30, 2026
- 0.0.1not indexedJun 19, 2026
- 0.0.0not indexedJun 19, 2026
github.com/kojix2/meru
No description declared in shard.yml.
Nothing has been indexed for 0.0.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
meru:
github: kojix2/meru
version: ~> 0.0.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.0.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
meru
meru is a small Crystal CLI for exploratory k-mer profiling in the terminal.
This is a simple project created with agentic AI coding. It displays Smudgeplot-like heatmaps in the terminal.
Build
make build release=1
Or:
shards build --release
Usage
bin/meru reads.fq.gz -k 21 -o sample
Tiny example:
bin/meru spec/fixtures/tiny.fastq -k 3 -o tiny
Inputs can be FASTQ (.fq, .fastq, optionally .gz) or FASTA (.fa, .fasta, optionally .gz), detected by filename extension.
--min-depth and --max-depth define the histogram depth range. Pair extraction uses max(2, --min-depth) and --max-depth by default, so singleton error k-mers stay out of the smudge workflow unless you opt in explicitly. --pair-min-depth and --pair-max-depth override only the pair-extraction range. When a smudgeplot is shown, meru expands the effective pair max depth to max_depth * 2 on the y-axis because the smudgeplot uses total coverage (depth_a + depth_b), not single-k-mer depth.
The histogram uses log10(count + 1) scaling by default. Use --linear-hist if you want raw linear counts instead.
Current limitation: meru stores k-mer counts in a standard in-memory Hash(UInt64, UInt32). That keeps the implementation simple, but very large reference FASTA inputs such as whole human assemblies can exceed the hash capacity or available memory. In practice, meru is currently a better fit for read datasets and smaller references than for hg38-scale full-reference counting.
Main outputs:
sample.kmer_hist.tsvsample.smudge.tsvsample.signals.tsvsample.summary.txt
Examples
The examples/ directory contains a reproducible synthetic workflow built around fictional tanuki genomes:
cd examples
rake tanuki MERU=../bin/meru
More detail is in examples/README.md.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.0.1- Tagged
- Jun 19, 2026
- Commit
51c218690e97- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/kojix2/meru
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 3