kc

Version, currently 0.0.03 versions

github.com/kojix2/kc

Per-read kmer counter for Crystal exercises

0 stars
0 dependents
License: MIT

Nothing has been indexed for 0.0.0 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:
  kc:
    github: kojix2/kc
    version: ~> 0.0.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.0.0. 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.

kc

build

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 format
  • sparse: 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): Supports tsv, sparse, arsn formats
  • Arrow build (make arrow): Supports tsv, sparse, arrow, arsn formats
  • Both arrow and arsn formats require output file (-o option)

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.