diff --git a/lib/actions/racking.rb b/lib/actions/racking.rb index 4ae01622..c027d182 100644 --- a/lib/actions/racking.rb +++ b/lib/actions/racking.rb @@ -20,7 +20,7 @@ def html_error_message(error_messages) module Actions module Racking # rubocop:todo Style/Documentation DNA_STOCK_PLATE_PURPOSE = 'DNA Stock Plate' - RNA_STOCK_PLATE_PURPOSE = 'RNA Stock Plate' + RNA_STOCK_PLATE_PURPOSE = 'Stock RNA Plate' STOCK_PLATE_PURPOSE = 'Stock Plate' DNA_ALIQUOT = 'DNA' RNA_ALIQUOT = 'RNA' diff --git a/script/container_inferences.rb b/script/container_inferences.rb index baf7e709..feaef53d 100644 --- a/script/container_inferences.rb +++ b/script/container_inferences.rb @@ -15,7 +15,7 @@ def containers def purpose_for_aliquot(aliquot) return 'DNA Stock Plate' if aliquot == 'DNA' - return 'RNA Stock Plate' if aliquot == 'RNA' + return 'Stock RNA Plate' if aliquot == 'RNA' return 'Stock Plate' end diff --git a/script/purpose_name_inference.rb b/script/purpose_name_inference.rb index 6d18cb29..7d363cc4 100644 --- a/script/purpose_name_inference.rb +++ b/script/purpose_name_inference.rb @@ -19,7 +19,7 @@ def _CODE ?asset :contains ?anotherAsset . ?anotherAsset :aliquotType """RNA""" . }=>{ - :step :addFacts { ?asset :purpose """RNA Stock Plate""" } . + :step :addFacts { ?asset :purpose """Stock RNA Plate""" } . } . @forAll :anotherAsset, :someAliquot . @@ -53,7 +53,7 @@ def containers def purpose_for_aliquot(aliquot) return 'DNA Stock Plate' if aliquot == 'DNA' - return 'RNA Stock Plate' if aliquot == 'RNA' + return 'Stock RNA Plate' if aliquot == 'RNA' return 'Stock Plate' end diff --git a/script/runners/transfer_tubes_to_tube_rack_by_position.rb b/script/runners/transfer_tubes_to_tube_rack_by_position.rb index 4e15439c..49b89f06 100644 --- a/script/runners/transfer_tubes_to_tube_rack_by_position.rb +++ b/script/runners/transfer_tubes_to_tube_rack_by_position.rb @@ -140,7 +140,7 @@ def process if (aliquot_types.uniq.length == 1) && (aliquot_types.uniq.first == 'DNA') purpose_name = 'DNA Stock Plate' elsif (aliquot_types.uniq.length == 1) && (aliquot_types.uniq.first == 'RNA') - purpose_name = 'RNA Stock Plate' + purpose_name = 'Stock RNA Plate' else purpose_name = 'Stock Plate' end diff --git a/spec/integration/inferences_data.rb b/spec/integration/inferences_data.rb index 0c04c144..a4de13be 100644 --- a/spec/integration/inferences_data.rb +++ b/spec/integration/inferences_data.rb @@ -27,7 +27,7 @@ def inferences_data ?y :t ?_val . } => { :step :addFacts {?x :val ?_val }. - } + }. ', inputs: @@ -58,7 +58,7 @@ def inferences_data ?y :t ?_pos . } => { :step :addFacts {?x :relates_with ?y }. - } + }. ', inputs: ' @@ -95,7 +95,7 @@ def inferences_data ?y :a "TubeB" . } => { :step :addFacts { ?y :transferredFrom ?x . }. - } + }. ', inputs: ' @@ -284,7 +284,7 @@ def inferences_data } => { :step :addFacts {?rack :is "TubeRack" .} . :step :addFacts {?rack :location ?_position .} . - } + }. ', inputs: ' diff --git a/spec/lib/actions/racking_spec.rb b/spec/lib/actions/racking_spec.rb index b33da351..d5b4cc76 100644 --- a/spec/lib/actions/racking_spec.rb +++ b/spec/lib/actions/racking_spec.rb @@ -169,8 +169,8 @@ def add_empty_slots(content, num_empty, start_pos = 0) context 'when an RNA tube' do let(:aliquot_type) { 'RNA' } - it 'generates the RNA stock plate purpose' do - expect(updates.to_h[:add_facts].find { |triple| triple[1] == 'purpose' }[2]).to eq('RNA Stock Plate') + it 'generates the stock RNA plate purpose' do + expect(updates.to_h[:add_facts].find { |triple| triple[1] == 'purpose' }[2]).to eq('Stock RNA Plate') end end end diff --git a/spec/script/runners/transfer_tubes_to_tube_rack_by_position_spec.rb b/spec/script/runners/transfer_tubes_to_tube_rack_by_position_spec.rb index 2319680b..cc636cef 100644 --- a/spec/script/runners/transfer_tubes_to_tube_rack_by_position_spec.rb +++ b/spec/script/runners/transfer_tubes_to_tube_rack_by_position_spec.rb @@ -100,12 +100,12 @@ end context 'when it is RNA' do let(:aliquot) { aliquot_rna } - it 'will set up an RNA Stock plate purpose' do + it 'will set up a Stock RNA plate purpose' do added_facts = instance.process.to_h[:add_facts] purposes = added_facts.select { |triple| triple[1] == 'purpose' } expect(purposes.size).to eq(1) expect(purposes.first[0]).to eq(rack.uuid) - expect(purposes.first[2]).to eq('RNA Stock Plate') + expect(purposes.first[2]).to eq('Stock RNA Plate') end end