mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-04-30 12:00:39 +00:00
8c7017a99d
- Update obioptions.Version from "Release 4.4.29" to "/v/ Release v5" - Update version.txt from 4.29 → .30 (automated by Makefile)
1.2 KiB
1.2 KiB
obitable: Row-Oriented Data Table for Biological Sequences
The obitable package provides a lightweight, row-oriented data table structure (Table) for managing biological sequence metadata in Go.
-
Core Types:
Header: An ordered column list (alias forstl4go.Ordered).Row: A flexible map from column names to values (map[string]interface{}).Table: Holds schema info viaColType(column → Go type) and a slice of rows.
-
Row Generators:
RowFromMap: Wraps a generic map into a callable row accessor, substituting missing keys withnavalue.RowFromBioSeq: Specialized generator forobiseq.BioSequenceobjects, mapping standard fields (id,sequence, etc.) and annotations dynamically.
-
Semantic Features:
- Supports heterogeneous data types per column (via
reflect.Type). - Enables uniform access to sequence metadata and custom annotations.
- Designed for interoperability with
obiseq(OBITools4’s biological sequence module). - Facilitates lazy or on-demand row construction—ideal for streaming pipelines.
- Supports heterogeneous data types per column (via
-
Use Cases:
- Converting sequence datasets into tabular formats (e.g., for export, filtering).
- Building intermediate representations in bioinformatics workflows.