Skip to content

dna

Compact DNA sequence and k-mer types with comparison, validation, and analysis functions.

dna · Compact DNA sequence and k-mer types with comparison, validation, and analysis functions.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101876dnadna1.0TYPEMITC

Usage

Sources:

dna Compact DNA sequence and k-mer types with comparison, validation, and analysis functions.

Enablement

Install the files for the intended server, then create dna in the target database:

CREATE EXTENSION dna;

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

SELECT k.kmer FROM generate_kmers('ACGTACGCACGT', 6) AS k(kmer) WHERE 'DNMSRN' @> k.kmer ;
--  kmer
----------
-- GTACGC
-- GCACGT
--(2 rows)

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
kmerTYPEUser-facing data type created by the extension.
generate_kmersFUNCTIONCallable function from the reviewed install surface.
lengthFUNCTIONCallable function from the reviewed install surface.
containsFUNCTIONCallable function from the reviewed install surface.
qkmerTYPEUser-facing data type created by the extension.
starts_withFUNCTIONCallable function from the reviewed install surface.
dna_constructFUNCTIONCallable function from the reviewed install surface.
dna_inFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • Treat extension upgrades as database changes: review the upstream upgrade path, privileges, locks, and backup/restore behavior first.

Table reader