kmea
K-Mer Extension for Analysis
kmea · K-Mer Extension for Analysis
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (kmea.control)
- Official extension SQL (kmea–1.0.sql)
kmea — KMEA[^1] is a PostgreSQL extension that supports various DNA data types, along with some operators. DNA sequences Kmers Qkmers. Use it when application data needs this type, domain, or its operators. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
canonical(kmer)is an extension function and returnskmer.contains(qkmer, kmer)is an extension function and returnsboolean.DNA(text)is an extension function and returnsDNA.dna_in(cstring)is an extension function and returnsDNA.dna_out(DNA)is an extension function and returnscstring.dna_recv(internal)is an extension function and returnsDNA.dna_send(DNA)is an extension function and returnsbytea.equals(kmer, kmer)is an extension function and returnsboolean.generate_kmers(DNA, integer)is an extension function and returnsSETOF.kmer(text)is an extension function and returnskmer.kmer_hash(kmer)is an extension function and returnsinteger.kmer_in(cstring)is an extension function and returnskmer.kmer_out(kmer)is an extension function and returnscstring.kmer_recv(internal)is an extension function and returnskmer.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.