strain

package
v0.0.0-...-2b433ae Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ConcurrentStrainLoader = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type StrainLoader

type StrainLoader struct {
	Workspace        string
	Host             string
	Token            string
	TableId          int
	Logger           *logrus.Entry
	OntologyTableMap map[string]int
	TableManager     *database.TableManager
	Payload          *StrainPayload
	Annotation       *strain.StrainAnnotation
	WorkspaceManager *database.WorkspaceManager
}

func NewStrainLoader

func NewStrainLoader(
	host, token, wspace string,
	tableId int,
	logger *logrus.Entry,
	tblMap map[string]int,
	manager *database.TableManager,
	wmanager *database.WorkspaceManager,
) *StrainLoader

func (*StrainLoader) Load

func (loader *StrainLoader) Load(reader *strain.StrainAnnotationReader) error

type StrainPayload

type StrainPayload struct {
	Descriptor              string              `json:"strain_descriptor"`
	Species                 string              `json:"species"`
	Reference               string              `json:"reference"`
	Summary                 string              `json:"strain_summary,omitempty"`
	GeneticModificationId   []int               `json:"genetic_modification_id,omitempty"`
	StrainCharacteristicsId []int               `json:"strain_characteristics_id"`
	MutagenesisMethodId     []int               `json:"mutagenesis_method_id,omitempty"`
	AssignedBy              []common.AssignedBy `json:"assigned_by,omitempty"`
	Names                   string              `json:"strain_names,omitempty"`
	SystematicName          string              `json:"systematic_name,omitempty"`
	Plasmid                 string              `json:"plasmid,omitempty"`
	ParentId                string              `json:"parent_strain_id,omitempty"`
	Genes                   string              `json:"associated_genes,omitempty"`
	Genotype                string              `json:"genotype,omitempty"`
	Depositor               string              `json:"depositor,omitempty"`
	CreatedOn               time.Time           `json:"created_on"`
}

Jump to

Keyboard shortcuts

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