Skip to content

Commit

Permalink
pipeline bugfixes and renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
HolEv committed Feb 22, 2024
1 parent 6acdcf4 commit e42b478
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ alpha: 0.05

n_burden_chunks: 2
n_regression_chunks: 2
n_avg_chunks: 2
n_avg_chunks: 1

n_repeats: 2

Expand Down
3 changes: 1 addition & 2 deletions pipelines/association_testing/burdens.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ rule compute_burdens:
input:
reversed = model_path / "reverse_finished.tmp",
checkpoints = lambda wildcards: [
model_path / f'repeat_{repeat}/best/bag_{bag}.ckpt'
f'{model_path}/repeat_{repeat}/best/bag_{bag}.ckpt'
for repeat in range(n_repeats) for bag in range(n_bags)
],
dataset = '{phenotype}/deeprvat/association_dataset.pkl',
Expand All @@ -82,7 +82,6 @@ rule compute_burdens:
mem_mb = 2000000, # Using this value will tell our modified lsf.profile not to set a memory resource
load = 8000,
gpus = 1

shell:
' && '.join([
('deeprvat_associate compute-burdens '
Expand Down
1 change: 1 addition & 0 deletions pipelines/association_testing/regress_eval.snakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config_file_prefix = (
"cv_split0/deeprvat/" if cv_exp else ""
)
########### Average regression
rule evaluate:
input:
associations ='{phenotype}/deeprvat/average_regression_results/burden_associations.parquet',
Expand Down
1 change: 0 additions & 1 deletion pipelines/association_testing_pretrained.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ wildcard_constraints:
repeat="\d+",
trial="\d+",

<<<<<<< HEAD
cv_exp = False
config_file_prefix = (
"cv_split0/deeprvat/" if cv_exp else ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ wildcard_constraints:

cv_splits = config.get("n_folds", 5)
cv_exp = True
# config_file_prefix = (
# "cv_split0/deeprvat/" if cv_exp else ""
# ) # needed in case we analyse a CV experiment



include: "../association_testing/plot.snakefile"
Expand All @@ -51,7 +49,7 @@ rule all_plot: #plot.snakefile
"dicovery_replication_plot.png",


rule all_evaluate_avg: #plot.snakefile
rule all_evaluate: #plot.snakefile
input:
significant=expand(
"{phenotype}/deeprvat/eval/significant.parquet", phenotype=phenotypes
Expand All @@ -61,7 +59,7 @@ rule all_evaluate_avg: #plot.snakefile
),


rule all_regression_avg: #regress_eval_avg.snakefile
rule all_regression: #regress_eval.snakefile
input:
expand(
"{phenotype}/deeprvat/average_regression_results/burden_associations.parquet",
Expand Down

0 comments on commit e42b478

Please sign in to comment.