class

Minknow::DataService

Inherits Reference < Object

Wrapper around the MinKNOW Data gRPC service.

Exposes the live-reads bidirectional stream and helper types for building GetLiveReadsRequest messages. Access via Connection#data.

Constructors

new(channel : GRPC::Channel, ctx : GRPC::ClientContext)
Source

Class methods

actions_request(actions : Array(Action)) : LiveRequest

Convenience: builds an actions-only request from a batch of actions.

Source
setup_request(first_channel : Int32 = 1, last_channel : Int32 = 512, raw_data_type : RawDataType = RawDataType::CALIBRATED, sample_minimum_chunk_size : UInt64 = 0_u64, accepted_first_chunk_classifications : Array(Int32) = [] of Int32) : LiveRequest

Convenience: builds a setup-only request message.

Source
stop_action(action_id : String, channel : UInt32, read_id : String) : Action

Convenience: builds a stop-further-data action.

Source
unblock_action(action_id : String, channel : UInt32, read_id : String, duration : Float64 = 0.1) : Action

Convenience: builds an unblock action.

Source

Instance methods

client
Source
data_types

Returns the data types (signal calibration, dtype) for this device.

Source
live_reads

Opens a bidirectional live-reads stream.

Returns a GRPC::BidiCall that you send GetLiveReadsRequest messages into and receive GetLiveReadsResponse messages from. The first message sent must contain a StreamSetup.

Source

Nested types