Skip to content

Commit

Permalink
Refactor Aliquot#tagged? method to handle sample sheet generation beh…
Browse files Browse the repository at this point in the history
…avior
  • Loading branch information
stevieing committed Sep 26, 2024
1 parent 421002b commit c4421a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/models/aliquot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def sample_sheet_behaviour
#
# @return [Boolean] Returns true if the aliquot is tagged, false otherwise.
def tagged?
tag.present?
# This feels like a bit of a hack but I wasn't exactly sure where the best place to
# it. I tried to follow the sample sheet behaviour but got lost.
# it looks like the only place this is used is in the sample sheet generation
tag.present? && tag_set&.sample_sheet_behaviour != :hidden
end

# Generic method used by pacbio sample sheet generation to
Expand Down

0 comments on commit c4421a3

Please sign in to comment.