Skip to content

Commit

Permalink
Merge pull request #1456 from sanger/fix_scrna_report_file
Browse files Browse the repository at this point in the history
scRNA - fix purpose names in report
  • Loading branch information
andrewsparkes authored Nov 9, 2023
2 parents a21931b + a50bbba commit 2d59705
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/views/exports/pbmc_bank_tubes_content_report.csv.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
# donor_id is sourced from the sample metadata provided by Sequencescape
donor_id = sample_metadata.respond_to?(:donor_id) ? sample_metadata.donor_id : nil
child_tube_purpose = child_tube_v2.purpose.name
destination = ((child_tube_purpose == 'LRC Blood Seq') ? 'Sequencing' : 'Contingency')
destination = ((child_tube_purpose == 'LRC Bank Seq') ? 'Sequencing' : 'Contingency')
volume = 135

rows_array << [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@
let(:dest_tube6_uuid) { SecureRandom.uuid }

# destination purposes
let(:lrc_blood_seq) { create(:v2_purpose, name: 'LRC Blood Seq') }
let(:lrc_blood_spare) { create(:v2_purpose, name: 'LRC Blood Spare') }
let(:lrc_bank_seq) { create(:v2_purpose, name: 'LRC Bank Seq') }
let(:lrc_bank_spare) { create(:v2_purpose, name: 'LRC Bank Spare') }

# destination tubes
let(:dest_tube1) do
create(
:v2_tube_with_metadata,
purpose: lrc_blood_seq,
purpose: lrc_bank_seq,
uuid: dest_tube1_uuid,
barcode_prefix: 'FX',
barcode_number: 4,
Expand All @@ -126,7 +126,7 @@
let(:dest_tube2) do
create(
:v2_tube_with_metadata,
purpose: lrc_blood_spare,
purpose: lrc_bank_spare,
uuid: dest_tube2_uuid,
barcode_prefix: 'FX',
barcode_number: 5,
Expand All @@ -138,7 +138,7 @@
let(:dest_tube3) do
create(
:v2_tube_with_metadata,
purpose: lrc_blood_spare,
purpose: lrc_bank_spare,
uuid: dest_tube3_uuid,
barcode_prefix: 'FX',
barcode_number: 6,
Expand All @@ -150,7 +150,7 @@
let(:dest_tube4) do
create(
:v2_tube_with_metadata,
purpose: lrc_blood_seq,
purpose: lrc_bank_seq,
uuid: dest_tube4_uuid,
barcode_prefix: 'FX',
barcode_number: 7,
Expand All @@ -162,7 +162,7 @@
let(:dest_tube5) do
create(
:v2_tube_with_metadata,
purpose: lrc_blood_spare,
purpose: lrc_bank_spare,
uuid: dest_tube5_uuid,
barcode_prefix: 'FX',
barcode_number: 8,
Expand All @@ -174,7 +174,7 @@
let(:dest_tube6) do
create(
:v2_tube_with_metadata,
purpose: lrc_blood_spare,
purpose: lrc_bank_spare,
uuid: dest_tube6_uuid,
barcode_prefix: 'FX',
barcode_number: 9,
Expand Down

0 comments on commit 2d59705

Please sign in to comment.