Class: Event::SequenomLoading

Inherits:
Event show all
Defined in:
app/models/event/sequenom_loading.rb

Overview

Events dealing with genotyping results. Despite the name, these are no longer Sequenom processes.

Class Method Summary collapse

Methods inherited from Event

#request, #request?

Methods included from RequestDescriptorUpdateEvent

included, #library_creation_descriptor?, #pass_or_fail_event?, #set_request_metadata, #update_metadata_for_request

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Class Method Details

.created_update_gender_makers!(asset, resource) ⇒ Object



6
7
8
9
10
11
12
13
# File 'app/models/event/sequenom_loading.rb', line 6

def self.created_update_gender_makers!(asset, resource)
  create!(
    eventful: asset,
    message: "Updated gender results from #{resource}",
    content: resource,
    family: 'update_gender_markers'
  )
end

.created_update_sequenom_count!(asset, resource) ⇒ Object

Also used by Fluidigm etc. Legacy name.



16
17
18
19
20
21
22
23
# File 'app/models/event/sequenom_loading.rb', line 16

def self.created_update_sequenom_count!(asset, resource)
  create!(
    eventful: asset,
    message: "Updated sequenom results from #{resource}",
    content: resource,
    family: 'update_sequenom_count'
  )
end

.updated_fluidigm_plate!(asset, resource) ⇒ Object



25
26
27
28
29
30
31
32
# File 'app/models/event/sequenom_loading.rb', line 25

def self.updated_fluidigm_plate!(asset, resource)
  create!(
    eventful: asset,
    message: "Updated fluidigm plate from #{resource}",
    content: resource,
    family: 'update_fluidigm_plate'
  )
end