kc
Version, currently 0.0.23 versions
- 0.0.2latestJun 22, 2025
- 0.0.1not indexedJun 26, 2025
- 0.0.0not indexedJun 26, 2025
github.com/kojix2/kc
Per-read kmer counter for Crystal exercises
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
kc:
github: kojix2/kc
version: ~> 0.0.2Then run:
shards installshard.yml
- Crystal
>= 1.16.3- License
- MIT
- Author
- kojix2
- Target
kcfrom src/kc.cr
Dependencies
Runtime Dependencies
- fastx*github: bio-cr/fastx.cr
README
kc
kc counts k-mers for each read in a FASTQ file.
Build
make # Default: ARSN format support
make arrow # Arrow + ARSN format support
Usage
./kc -i input.fastq -f arsn -o output.arsn
Output Formats
tsv(default): Dense matrix formatsparse: Sparse format (ID, k-mer, count)arrow: Arrow IPC format (requires C++ implementation)arsn: ARSN custom binary format (compact sparse matrix storage)
Implementation Details
- Default build (
make): Supportstsv,sparse,arsnformats - Arrow build (
make arrow): Supportstsv,sparse,arrow,arsnformats - Both
arrowandarsnformats require output file (-ooption)
Options
Usage: kc [options] -i FILE
-k, --kmer-size N k-mer size (default: 3)
-i, --input FILE Input FASTQ file (.gz supported)
-o, --output FILE Output TSV file (default: stdout)
-f, --format FORMAT Output format: tsv (default), sparse, arrow, arsn
-t, --threads N Number of worker threads (default: 4)
-c, --chunk-size N Reads per processing chunk (default: 1000)
-v, --verbose Enable verbose output
-h, --help Show this help message
License
MIT
This project includes code generated by AI.
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.2- Tagged
- Jun 22, 2025
- Commit
560f767f100a- Crystal
>= 1.16.3- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/kojix2/kc
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 3