Exemplo n.º 1
0
// The core process for this protocol, with the steps to be performed
// for every input
func (e *TypeIISConstructAssembly) steps(p TypeIISConstructAssemblyParamBlock, r *TypeIISConstructAssemblyResultBlock) {
	_wrapper := execution.NewWrapper(p.ID)
	_ = _wrapper

	samples := make([]*wtype.LHComponent, 0)
	bufferSample := mixer.SampleForTotalVolume(p.Buffer, p.ReactionVolume)
	samples = append(samples, bufferSample)
	atpSample := mixer.Sample(p.Atp, p.AtpVol)
	samples = append(samples, atpSample)
	vectorSample := mixer.SampleForConcentration(p.Vector, p.VectorConc)
	samples = append(samples, vectorSample)

	for _, part := range p.Parts {
		partSample := mixer.SampleForConcentration(part, p.PartConc)
		samples = append(samples, partSample)
	}

	reSample := mixer.Sample(p.RestrictionEnzyme, p.ReVol)
	samples = append(samples, reSample)
	ligSample := mixer.Sample(p.Ligase, p.LigVol)
	samples = append(samples, ligSample)
	reaction := _wrapper.MixInto(p.OutPlate, samples...)

	// incubate the reaction mixture

	_wrapper.Incubate(reaction, p.ReactionTemp, p.ReactionTime, false)

	// inactivate

	_wrapper.Incubate(reaction, p.InactivationTemp, p.InactivationTime, false)

	// all done
	r.Reaction = reaction
}
Exemplo n.º 2
0
func (e *Sum) validation(p SumParamBlock, r *SumResultBlock) {
	_wrapper := execution.NewWrapper(p.ID)
	_ = _wrapper

}
Exemplo n.º 3
0
// Actions to perform after steps block to analyze data
func (e *Sum) analysis(p SumParamBlock, r *SumResultBlock) {
	_wrapper := execution.NewWrapper(p.ID)
	_ = _wrapper

}
Exemplo n.º 4
0
// Core process of the protocol: steps to be performed for each input
func (e *Sum) steps(p SumParamBlock, r *SumResultBlock) {
	_wrapper := execution.NewWrapper(p.ID)
	_ = _wrapper

	r.Sum = p.A + p.B
}
Exemplo n.º 5
0
// Actions to perform before protocol itself
func (e *Sum) setup(p SumParamBlock) {
	_wrapper := execution.NewWrapper(p.ID)
	_ = _wrapper

}
Exemplo n.º 6
0
// A block of tests to perform to validate that the sample was processed correctly
// Optionally, destructive tests can be performed to validate results on a
// dipstick basis
func (e *TypeIISConstructAssembly) validation(p TypeIISConstructAssemblyParamBlock, r *TypeIISConstructAssemblyResultBlock) {
	_wrapper := execution.NewWrapper(p.ID)
	_ = _wrapper

}
Exemplo n.º 7
0
// Conditions to run on startup
func (e *TypeIISConstructAssembly) setup(p TypeIISConstructAssemblyParamBlock) {
	_wrapper := execution.NewWrapper(p.ID)
	_ = _wrapper

}