Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDataDir ¶
func DefaultDataDir() string
DefaultDataDir returns the OS-standard data directory for ATB. On Windows: %LOCALAPPDATA%\atb\data On macOS: ~/Library/Application Support/atb/data On Linux/other: $XDG_DATA_HOME/atb/data or ~/.local/share/atb/data
func DefaultPath ¶
func DefaultPath() string
DefaultPath returns the default config file path. On Windows: %LOCALAPPDATA%\atb\config.toml On macOS: ~/Library/Application Support/atb/config.toml On Linux/other: $XDG_CONFIG_HOME/atb/config.toml or ~/.config/atb/config.toml
func ExpandPath ¶
ExpandPath expands a leading ~ to the user's home directory.
Types ¶
type Config ¶
type Config struct {
General GeneralConfig `toml:"general"`
Fetch FetchConfig `toml:"fetch"`
Download DownloadConfig `toml:"download"`
}
Config holds all configuration for atb.
type DownloadConfig ¶
type DownloadConfig struct {
Parallel int `toml:"parallel"`
OutputDir string `toml:"output_dir"`
CheckDiskSpace bool `toml:"check_disk_space"`
MinFreeSpaceGB int `toml:"min_free_space_gb"`
}
DownloadConfig holds settings for genome downloads.
type FetchConfig ¶
FetchConfig holds settings for metadata fetching.
type GeneralConfig ¶
type GeneralConfig struct {
DataDir string `toml:"data_dir"`
DefaultFormat string `toml:"default_format"`
}
GeneralConfig holds general application settings.