DNA Sequence
representation.scientific.dna_sequenceDeoxyribonucleic acid sequence in IUPAC notation (letters: A, T, G, C, and ambiguity codes).
Operations on this type: Parse nested values
Try a value
DNA Sequence's rule accepts it.
Reads it as ATGCAGC
Also accepted by
- Protein Sequence
ATGCAGC - SMILES Notation
ATGCAGC
Use it
Shell
finetype infer -i 'ATGCAGC' --mode column
# → representation.scientific.dna_sequenceDuckDB
SELECT ft_infer('ATGCAGC');
-- → 'representation.scientific.dna_sequence'Cast template: {col} is your column
UPPER(CAST({col} AS VARCHAR))How finetype reads the samples
DuckDB 1.5.5 · finetype 0.6.66
| Value | As VARCHAR | gc_content | length |
|---|---|---|---|
| ATGCAGC | ATGCAGC | 0.5714285714285714 | 7 |
| GCTAGCTAGCTAG | GCTAGCTAGCTAG | 0.5384615384615384 | 13 |
| ATGATGATG | ATGATGATG | 0.3333333333333333 | 9 |
Pattern
Regular expression
^[ATGCRYSWKMBDHVN]+$| Value | Length | Shape |
|---|---|---|
| ATGCAGC | 7 | matches |
| GCTAGCTAGCTAG | 13 | matches |
| ATGATGATG | 9 | matches |
| atgcagc | 7 | rejected: lower-cased |
Similar types
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.
How it's detected
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.
Schema
https://meridian.online/schemas/representation.scientific.dna_sequence · Frictionless type string
finetype taxonomy representation.scientific.dna_sequence -o json-schemaAliases
dna