Files
obitools4/autodoc/docmd/pkg/obitable/table.md
T
Eric Coissac 8c7017a99d ⬆️ version bump to v4.5
- Update obioptions.Version from "Release 4.4.29" to "/v/ Release v5"
- Update version.txt from 4.29 → .30
(automated by Makefile)
2026-04-13 13:34:53 +02:00

1.2 KiB
Raw Blame History

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 for stl4go.Ordered).
    • Row: A flexible map from column names to values (map[string]interface{}).
    • Table: Holds schema info via ColType (column → Go type) and a slice of rows.
  • Row Generators:

    • RowFromMap: Wraps a generic map into a callable row accessor, substituting missing keys with navalue.
    • RowFromBioSeq: Specialized generator for obiseq.BioSequence objects, 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 (OBITools4s biological sequence module).
    • Facilitates lazy or on-demand row construction—ideal for streaming pipelines.
  • Use Cases:

    • Converting sequence datasets into tabular formats (e.g., for export, filtering).
    • Building intermediate representations in bioinformatics workflows.