Skip to content

Commit

Permalink
simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Jan 30, 2024
1 parent f04329d commit 380ab38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/parse_anglerfish_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,18 @@ def fill_udfs(currentStep: Process, df: pd.DataFrame):
barcode_well = fetch(
illumina_sample, "ONT Barcode Well", on_fail=None
)

if barcode_well:
barcode_name = ont_barcode_well2name(barcode_well)

# Subset df to the current ONT barcode
df_barcode = df[df["ont_barcode"] == barcode_name]

# Subset df to the current Illumina sample
if barcode_well:
# Subset df to the current Illumina sample
df_sample = df_barcode[
df_barcode["sample_name"] == illumina_sample.name
]

else:
df_sample = df[df["sample_name"] == illumina_sample.name]

Expand Down

0 comments on commit 380ab38

Please sign in to comment.