DNA Sequence
representation.scientific.dna_sequenceDeoxyribonucleic acid sequence in IUPAC notation (letters: A, T, G, C, and ambiguity codes).
Worked samples
DuckDB 1.5.5 · finetype 0.6.64
| Value | As VARCHAR | gc_content | length |
|---|---|---|---|
| ATGCAGC | ATGCAGC | 0.5714285714285714 | 7 |
| GCTAGCTAGCTAG | GCTAGCTAGCTAG | 0.5384615384615384 | 13 |
| ATGATGATG | ATGATGATG | 0.3333333333333333 | 9 |
Shape
Pattern
^[ATGCRYSWKMBDHVN]+$| Value | Length | Shape |
|---|---|---|
| ATGCAGC | 7 | matches |
| GCTAGCTAGCTAG | 13 | matches |
| ATGATGATG | 9 | matches |
| atgcagc | 7 | rejected: lower-cased |
Told apart
2 of the 6 other scientific types accept every one of these samples on shape alone.
- Protein Sequencematches them by pattern
- SMILES Notationmatches them by pattern
IUPAC notation: A=Adenine, T=Thymine, G=Guanine, C=Cytosine Plus ambiguity codes: R, Y, S, W, K, M, B, D, H, V, N.
Detection notes
v1 migration: Was science.dna_sequence. IUPAC notation: A=Adenine, T=Thymine, G=Guanine, C=Cytosine Plus ambiguity codes: R, Y, S, W, K, M, B, D, H, V, N. Transform uppercases. Decompose calculates GC content.
Use it
CLI · DuckDB
$ finetype infer -i "ATGCAGC" --mode column
→ representation.scientific.dna_sequence
SELECT ft_infer('ATGCAGC');
-- → 'representation.scientific.dna_sequence'Cast expression
UPPER(CAST({col} AS VARCHAR))Schema
https://meridian.online/schemas/representation.scientific.dna_sequence · Frictionless type string
finetype taxonomy representation.scientific.dna_sequence -o json-schemaAliases
dna