Skip to content

Commit

Permalink
debug argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
jykr committed Mar 28, 2024
1 parent 25c0a1b commit e938d8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bean/model/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ def check_args(args, bdata):
raise ValueError(
f"Condition column set by `--condition-col` {args.condition_col} not in ReporterScreen.samples.columns:{bdata.samples.columns}. Check your input."
)
if args.control_condition_label not in bdata.samples[args.condition_col].tolist():
if args.control_condition not in bdata.samples[args.condition_col].tolist():
raise ValueError(
f"No sample has control label (set by `--control-condition-label`) {args.control_condition_label} in ReporterScreen.samples[{args.condition_col}]: {bdata.samples[args.condition_col]}. Check your input."
f"No sample has control label (set by `--control-condition`) {args.control_condition} in ReporterScreen.samples[{args.condition_col}]: {bdata.samples[args.condition_col]}. Check your input."
)
if args.replicate_col not in bdata.samples.columns:
raise ValueError(
Expand Down
6 changes: 3 additions & 3 deletions bean/plotting/editing_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ def plot_by_pos_context(
f"C{target_base}": 0,
f"T{target_base}": 0.2,
}
edit_rates_df[
"spacer_pos_ctxt"
] = edit_rates_df.spacer_pos + edit_rates_df.context.map(context_to_offset_map)
edit_rates_df["spacer_pos_ctxt"] = (
edit_rates_df.spacer_pos + edit_rates_df.context.map(context_to_offset_map)
)
fig, ax = plt.subplots(figsize=(6, 3))
sns.scatterplot(
edit_rates_df.loc[
Expand Down

0 comments on commit e938d8c

Please sign in to comment.