Skip to content

Commit

Permalink
bug fix for meta comps
Browse files Browse the repository at this point in the history
  • Loading branch information
Addimator committed Jul 10, 2024
1 parent 95a0c43 commit 1570504
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
21 changes: 11 additions & 10 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,17 @@ meta_comparisons:
# comparison is only run if set to `true`
activate: false
# Define any name for comparison
model_X_vs_model_Y:
items:
# Define the two underlying models for the comparison. The models must be defined in the diffexp/models in the config
- label: X # Arbitrary label
model: model_X # Must match a diffexp model from config
- label: Y # Arbitrary label
model: model_Y # Must match a diffexp model from config
desc: |
Comparison between model_X and model_Y effect.
label: model_X vs. model_Y effect
comparisons:
model_X_vs_model_Y:
items:
# Define the two underlying models for the comparison. The models must be defined in the diffexp/models in the config
- label: X # Arbitrary label
model: model_X # Must match a diffexp model from config
- label: Y # Arbitrary label
model: model_Y # Must match a diffexp model from config
desc: |
Comparison between model_X and model_Y effect.
label: model_X vs. model_Y effect

bootstrap_plots:
# desired false discovery rate for bootstrap plots, i.e. a lower FDR will result in fewer boxplots generated
Expand Down
1 change: 1 addition & 0 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ include: "rules/diffsplice.smk"
include: "rules/enrichment.smk"
include: "rules/datavzrd.smk"
include: "rules/bam.smk"
include: "rules/meta_comparisons.smk"


rule all:
Expand Down
4 changes: 3 additions & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ def all_input(wildcards):
expand(
"results/datavzrd-reports/{report_type}_meta_comparison_{meta_comp}",
report_type=["go_terms", "diffexp", "pathways"],
meta_comp=lookup(dpath="meta_comparisons", within=config),
meta_comp=lookup(
dpath="meta_comparisons/comparisons", within=config
),
)
),
)
Expand Down

0 comments on commit 1570504

Please sign in to comment.