Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor name_control assignment in DesignIP class #181

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading