Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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