sampletracker

package
v0.0.0-...-040724e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(parent context.Context) context.Context

NewContext return a new context inheriting the parent with the sampletracker added

Types

type SampleTracker

type SampleTracker struct {
	// contains filtered or unexported fields
}

SampleTracker record the location of components generated during element execution as well as any explicitly set input plates

func FromContext

func FromContext(ctx context.Context) *SampleTracker

FromContext fetch the SampleTracker from the context, calls panic() if the SampleTracker has not been set

func NewSampleTracker

func NewSampleTracker() *SampleTracker

func (*SampleTracker) GetInputPlates

func (st *SampleTracker) GetInputPlates() []*wtype.Plate

GetInputPlates return a list of all input plates explicitly set during element execution

func (*SampleTracker) GetLocationOf

func (st *SampleTracker) GetLocationOf(ID string) (string, bool)

GetLocationOf return the string location of the component with the given ID. If no such component is known, the returned location will be the empty string

func (*SampleTracker) SetInputPlate

func (st *SampleTracker) SetInputPlate(p *wtype.Plate)

SetInputPlate declare the given plate as an input to the experiment recording the id and location of every sample in it

func (*SampleTracker) SetLocationOf

func (st *SampleTracker) SetLocationOf(ID string, loc string)

SetLocationOf set the string encoded location of the component with the given ID

func (*SampleTracker) UpdateIDOf

func (st *SampleTracker) UpdateIDOf(ID string, newID string)

UpdateIDOf add newID as an alias for ID, such that both refer to the same location

Jump to

Keyboard shortcuts

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