Documentation
¶
Overview ¶
Package execute connects Antha elements to the trace execution infrastructure.
Index ¶
- func Errorf(ctx context.Context, format string, args ...interface{})
- func ExecuteMixes(ctx context.Context, liquids ...*wtype.LHComponent) []*wtype.Liquid
- func Incubate(ctx context.Context, in *wtype.Liquid, opt IncubateOpt) *wtype.Liquid
- func Issue(ctx context.Context, instruction *commandInst)
- func Mix(ctx context.Context, components ...*wtype.Liquid) *wtype.Liquid
- func MixInto(ctx context.Context, outplate *wtype.Plate, address string, ...) *wtype.Liquid
- func MixNamed(ctx context.Context, outplatetype, address string, platename string, ...) *wtype.Liquid
- func MixTo(ctx context.Context, outplatetype, address string, platenum int, ...) *wtype.Liquid
- func MixerPrompt(ctx context.Context, message string, in ...*wtype.Liquid) []*wtype.Liquid
- func MixerWait(ctx context.Context, time wunit.Time, message string, in ...*wtype.Liquid) []*wtype.Liquid
- func NewComponent(ctx context.Context, typ string) *wtype.Liquid
- func NewPlate(ctx context.Context, typ string) *wtype.Plate
- func PlateRead(ctx context.Context, opt PlateReadOpts) *wtype.Liquid
- func Prompt(ctx context.Context, in *wtype.Liquid, message string) *wtype.Liquid
- func RunQPCRExperiment(ctx context.Context, opt QPCROptions) []*wtype.Liquid
- func RunQPCRFromTemplate(ctx context.Context, opt QPCROptions) []*wtype.Liquid
- func Sample(ctx context.Context, liquid *wtype.Liquid, v wunit.Volume) *wtype.Liquid
- func SetInputPlate(ctx context.Context, plate *wtype.Plate)
- func SplitSample(ctx context.Context, component *wtype.Liquid, volume wunit.Volume) (removed, remaining *wtype.Liquid)
- func WithElementName(parent context.Context, name string) context.Context
- type Annotatable
- type IncubateOpt
- type Opt
- type Params
- type PlateReadOpts
- type QPCROptions
- type RawParams
- type Result
- type Trace
- type UserError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteMixes ¶
ExecuteMixes will ensure that all mix activities in a workflow prior to this point must be completed before Mix instructions after this point.
func MixInto ¶
func MixInto(ctx context.Context, outplate *wtype.Plate, address string, components ...*wtype.Liquid) *wtype.Liquid
MixInto mixes components
func MixNamed ¶
func MixNamed(ctx context.Context, outplatetype, address string, platename string, components ...*wtype.Liquid) *wtype.Liquid
MixNamed mixes components
func MixTo ¶
func MixTo(ctx context.Context, outplatetype, address string, platenum int, components ...*wtype.Liquid) *wtype.Liquid
MixTo mixes components
TODO: Addresses break dependence information. Deprecated.
func MixerPrompt ¶
MixerPrompt prompts user with a message during mixer execution
func MixerWait ¶
func MixerWait(ctx context.Context, time wunit.Time, message string, in ...*wtype.Liquid) []*wtype.Liquid
MixerWait prompts user with a message during mixer execution and waits for the specifed time before resuming.
func NewComponent ¶
NewComponent returns a new component given a component type
func PlateRead ¶
func PlateRead(ctx context.Context, opt PlateReadOpts) *wtype.Liquid
PlateRead reads absorbance of a component
func RunQPCRExperiment ¶
func RunQPCRExperiment(ctx context.Context, opt QPCROptions) []*wtype.Liquid
RunQPCRExperiment starts a new QPCR experiment, using an experiment input file.
func RunQPCRFromTemplate ¶
func RunQPCRFromTemplate(ctx context.Context, opt QPCROptions) []*wtype.Liquid
RunQPCRFromTemplate starts a new QPCR experiment, using a template input file.
func SetInputPlate ¶
SetInputPlate Indicate to the scheduler the the contents of the plate is user supplied. This modifies the argument to mark each well as such.
func SplitSample ¶
func SplitSample(ctx context.Context, component *wtype.Liquid, volume wunit.Volume) (removed, remaining *wtype.Liquid)
SplitSample is essentially an inverse mix: takes one component and a volume and returns two the question is then over what happens subsequently.. unlike mix this does not have a destination as it's intrinsically a source operation
Types ¶
type Annotatable ¶
type Annotatable interface { GetData(key string) ([]byte, error) SetData(key string, data []byte) error }
An Annotatable is an object that can data attached to it
type IncubateOpt ¶
type IncubateOpt struct { // Time for which to incubate component Time wunit.Time // Temperature at which to incubate component Temp wunit.Temperature // Rate at which to shake incubator (force is device dependent) ShakeRate wunit.Rate // Radius at which ShakeRate is defined ShakeRadius wunit.Length // Time for which to pre-heat incubator PreTemp wunit.Temperature // Temperature at which to pre-heat incubator PreTime wunit.Time // Rate at which to pre-heat incubator PreShakeRate wunit.Rate // Radius at which PreShakeRate is defined PreShakeRadius wunit.Length }
An IncubateOpt are options to an incubate command
type Opt ¶
type Opt struct { // Target machine configuration Target *target.Target // Deprecated for separate assignment of values to workflow. Raw workflow. Workflow *workflow.Desc // Deprecated for separate assignment of values to workflow. Raw parameters. Params *RawParams // Job ID. ID string // Deprecated for separate assignment of values to workflow. If true, read // content for each wtype.File from file of the same name in the current // directory. TransitionalReadLocalFiles bool }
An Opt are options for Run.
type Params ¶
type Params struct { Parameters map[string]map[string]interface{} `json:"Parameters"` Config *mixer.Opt `json:"Config"` }
Params is the structure of parameter data for marshalling.
Deprecated for github.com/antha-lang/antha/api/v1/WorkflowParameters.
type PlateReadOpts ¶
PlateReadOpts defines plate-reader absorbance options
type QPCROptions ¶
QPCROptions are the options for a QPCR request.
type RawParams ¶
type RawParams struct { Parameters map[string]map[string]json.RawMessage `json:"Parameters"` Config *mixer.Opt `json:"Config"` }
RawParams is the structure of parameter data for unmarshalling.
Deprecated for github.com/antha-lang/antha/api/v1/WorkflowParameters.
type Trace ¶
type Trace struct {
// contains filtered or unexported fields
}
func (*Trace) Instructions ¶
func (tr *Trace) Instructions() []*commandInst
Returns a (shallow) copy (to avoid data races) of the issued instructions.