models

package
v0.0.0-...-5da7351 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	ID           uuid.UUID   `json:"id" db:"id"`
	CreatedAt    time.Time   `json:"created_at" db:"created_at"`
	UpdatedAt    time.Time   `json:"updated_at" db:"updated_at"`
	IndividualID uuid.UUID   `json:"individual_id" db:"individual_id"`
	Individual   *Individual `json:"individual" belongs_to:"individual"`
	VariantID    uuid.UUID   `json:"variant_id" db:"variant_id"`
	Variant      *Variant    `json:"variant" belongs_to:"variant"`
	Genotype     string      `json:"genotype" db:"genotype"`
	Format       string      `json:"format" db:"format"`
}

Call : The ORM-side representation of the Call data object.

A single variant call on a single individual.
Contains some unique data, but is essentially the many-to-many association between variants and individuals.

func (Call) String

func (c Call) String() string

String is not required by pop and may be deleted

func (*Call) Validate

func (c *Call) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Call) ValidateCreate

func (c *Call) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Call) ValidateUpdate

func (c *Call) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Calls

type Calls []Call

Calls is not required by pop and may be deleted

func (Calls) String

func (c Calls) String() string

String is not required by pop and may be deleted

type Individual

type Individual struct {
	ID          uuid.UUID `json:"id" db:"id"`
	CreatedAt   time.Time `json:"created_at" db:"created_at"`
	UpdatedAt   time.Time `json:"updated_at" db:"updated_at"`
	Description string    `json:"description" db:"description"`
	Variants    Variants  `json:"variants" many_to_many:"calls"`
}

Individual : The ORM-side representation of the Individual data object.

An individual whose variant data is present in the variant service.

func (Individual) String

func (i Individual) String() string

String is not required by pop and may be deleted

func (*Individual) Validate

func (i *Individual) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Individual) ValidateCreate

func (i *Individual) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Individual) ValidateUpdate

func (i *Individual) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Individuals

type Individuals []Individual

Individuals is not required by pop and may be deleted

func (Individuals) String

func (i Individuals) String() string

String is not required by pop and may be deleted

type Variant

type Variant struct {
	ID          uuid.UUID   `json:"id" db:"id"`
	CreatedAt   time.Time   `json:"created_at" db:"created_at"`
	UpdatedAt   time.Time   `json:"updated_at" db:"updated_at"`
	Name        string      `json:"name" db:"name"`
	Chromosome  string      `json:"chromosome" db:"chromosome"`
	Start       nulls.Int   `json:"start" db:"start"`
	Ref         string      `json:"ref" db:"ref"`
	Alt         string      `json:"alt" db:"alt"`
	Individuals Individuals `json:"individuals" many_to_many:"calls"`
}

Variant : The ORM-side representation of the Variant data object.

A single variant, which may be called in many individuals in the variant service.

func (Variant) String

func (v Variant) String() string

String is not required by pop and may be deleted

func (*Variant) Validate

func (v *Variant) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Variant) ValidateCreate

func (v *Variant) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Variant) ValidateUpdate

func (v *Variant) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Variants

type Variants []Variant

Variants is not required by pop and may be deleted

func (Variants) String

func (v Variants) String() string

String is not required by pop and may be deleted

Jump to

Keyboard shortcuts

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