svync_api

package
v0.0.0-...-00d1249 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(Cctx *cli.Context, config *Config)

Read the VCF file and return it as a VCF struct

func ResolveValue

func ResolveValue(input string, variant *Variant, format *VariantFormat, Cctx *cli.Context) string

Resolve a value

Types

type Config

type Config struct {
	Id     string
	Alt    map[string]string
	Info   MapConfigInput
	Format MapConfigInput
}

func ReadConfig

func ReadConfig(Cctx *cli.Context) *Config

Read the configuration file, cast it to its struct and validate

type ConfigInput

type ConfigInput struct {
	Value       string
	Description string
	Number      string
	Type        string
	Alts        map[string]string
}

type HeaderLineIdDescription

type HeaderLineIdDescription struct {
	Id          string
	Description string
}

type HeaderLineIdLength

type HeaderLineIdLength struct {
	Id     string
	Length int64
}

type HeaderLineIdNumberTypeDescription

type HeaderLineIdNumberTypeDescription struct {
	Id          string
	Number      string
	Type        string
	Description string
}

type MapConfigInput

type MapConfigInput map[string]ConfigInput

type Variant

type Variant struct {
	Chromosome string
	Pos        int64
	Id         string
	Ref        string
	Alt        string
	Qual       string
	Filter     string
	Header     *Header
	Info       map[string][]string
	Format     map[string]VariantFormat
	Parsed     bool
}

func (*Variant) String

func (v *Variant) String(config *Config) string

Convert a variant to a string

type VariantFormat

type VariantFormat struct {
	Sample  string
	Content map[string][]string
}

Jump to

Keyboard shortcuts

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