public class SerialSpotIntensityEventHandler extends Object implements EventHandler
This event handler is designed to work together with a SynchronizedSpotDataParser
and will only react to SynchronizedSpotDataParser.DATA_EVENT
events.
Modifier and Type | Field and Description |
---|---|
private BioAssay[] |
assays |
private float[] |
ch |
private int[] |
chIndex |
private PositionEventHandler |
positionHandler |
private SpotBatcher |
spotBatcher |
Constructor and Description |
---|
SerialSpotIntensityEventHandler(SpotBatcher spotBatcher,
PositionEventHandler positionHandler,
BioAssay[] assays,
int[] chIndex)
Create a new spot instensity event handler.
|
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(EventType eventType,
Object eventData,
BfsParser parser)
Extract the spot intensity values from the data files and batch insert
them using the spot batcher.
|
private final SpotBatcher spotBatcher
private final PositionEventHandler positionHandler
private final BioAssay[] assays
private final int[] chIndex
private float[] ch
public SerialSpotIntensityEventHandler(SpotBatcher spotBatcher, PositionEventHandler positionHandler, BioAssay[] assays, int[] chIndex)
spotBatcher
- The spot batcher that should receive the intensity datapositionHandler
- The event handler that is responsible for extracting
position information from the reporter annotations fileassays
- An array with all assays in the same order that they
appeared in the pdata filechIndex
- An array with column indexes for channel intensities,
first value is the column index for channel 1. The first column has
index = 0. The size of this array should match the number of channels
in the experiment.public void handleEvent(EventType eventType, Object eventData, BfsParser parser)
handleEvent
in interface EventHandler
eventType
- The type of event. See the parser documentation
for more information about the event types it generateseventData
- The data that is associated with the eventparser
- The parser that is resposible for parsing the file