columns

package
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package columns is the registry of columns available to atb query --columns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() []string

Names returns every column name in the same order as All.

func Validate

func Validate(names []string) error

Validate returns an error for the first name that is not a column. The error names the closest columns when any are close and always points at the command that lists them, so a typo stops the query instead of producing a blank column.

Types

type Column

type Column struct {
	Name        string
	Source      Source
	Description string
	// InIndex reports whether the SQLite index can answer the column. Columns
	// without it force the query onto the parquet files, which is slower.
	InIndex bool
}

Column is one column that --columns accepts.

func All

func All() []Column

All returns every column, grouped by source in canonical order.

func Lookup

func Lookup(name string) (Column, bool)

Lookup finds a column by its exact name.

type Source

type Source string

Source is the table a column is read from.

const (
	Assembly      Source = "assembly"
	AssemblyStats Source = "assembly_stats"
	CheckM2       Source = "checkm2"
	Sylph         Source = "sylph"
	MLST          Source = "mlst"
	ENA           Source = "ena_20250506"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL