Skip to content

Commit

Permalink
Refactor name_control assignment in DesignIP class
Browse files Browse the repository at this point in the history
  • Loading branch information
alsmith151 committed Apr 8, 2024
1 parent 11a2bc7 commit c7c3121
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion seqnado/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,13 @@ def query(
for experiment in self.assays.values():

name_ip = experiment.name
name_control = f"{experiment.control_files.r1.sample_base_without_ip}_{experiment.control_files.r1.ip}"

try:
control_base = experiment.control_files.r1.sample_base_without_ip
control_ip = experiment.control_files.r1.ip
name_control = f"{control_base}_{control_ip}"
except AttributeError:
name_control = None

if name_to_query == name_ip or name_to_query == name_control:
if control is not None:
Expand Down

0 comments on commit c7c3121

Please sign in to comment.