cgevans / mixes

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Improved buffer / filler handling #30

Open cgevans opened 1 year ago

cgevans commented 1 year ago

At the moment, buffer is treated as a special addition to mixes, not as a component.

I think it would make more sense to have a buffer / fill action, which would fill any remaining quantity with the component in that action. An experiment could have a default fill action to add to mixes.

This would allow handling of situations where the filling component changes: for example, if someone is storing their DNA in water without buffer, and then adds buffer at some point in mixing, then wants to preserve that buffer in later stages, even if potentially adding in some other things that are in water without buffer.

dave-doty commented 1 year ago

for example, if someone is storing their DNA in water without buffer, and then adds buffer at some point in mixing

The way I handle this currently is to set buffer_name to "water", and then my 10x buffer is just another component.