This is a tagging interface that should be used by all analysis plug-ins that
are filtering data only. The plug-in should not create new intensity values or
extra values, or some other values. A typical code example uses a
FilterBatcher
to store the filtered data.
DbControl dc = sc.newDbControl();
try
{
BioAssaySet source = getSourceBioAssaySet(dc);
String filterMethod = ... // Something that explains the filter...
Transformation t = source.newTransformation(job);
dc.saveItem(t);
// Create the filtered BioAssaySet in the same datacube and layer
BioAssaySet child = t.newProduct(null, null, false);
child.setName("Filter: " + filterMethod);
dc.saveItem(child);
// Create the batcher
FilterBatcher filterBatcher = child.getFilterBatcher();
while (we_have_more_data)
{
filterBatcher.insert(...);
}
dc.commit();
}
finally
{
if (dc != null) dc.close();
}