Skip to content

Commit

Permalink
update to use regenie
Browse files Browse the repository at this point in the history
  • Loading branch information
bfclarke committed Jan 31, 2024
1 parent fc60018 commit 82152e8
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions pipelines/association_testing/regress_eval.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,26 @@ rule regress:

rule make_regenie_input:
input:
burdens = lambda wildcards: expand(
('{{phenotype}}/deeprvat/burdens/chunk{chunk}.' +
("finished" if wildcards.phenotype == phenotypes[0] else "linked")),
chunk=range(n_burden_chunks)
),
burdens = [f'{phenotype}/deeprvat/burdens/chunk{chunk}.' +
("finished" if phenotype == phenotypes[0] else "linked")
for phenotype in phenotypes
for chunk in range(n_burden_chunks)],
datasets = expand("{phenotype}/deeprvat/association_dataset.pkl",
phenotype=phenotypes),
params:
phenotypes = " ".join([f"--phenotype {p} {p}/deeprvat/association_dataset.pkl {p}/deeprvat/burdens"
for ]) + " "
for p in phenotypes]) + " "
output:
# bgen = "{phenotype}/deeprvat/regenie_input/pseudo_variants.bgen",
covariant_file = "regenie_input/covariates.txt",
bgen = "{phenotype}/deeprvat/regenie_input/deeprvat_pseudovariants.bgen",
covariate_file = "regenie_input/covariates.txt",
phenotype_file = "regenie_input/phenotypes.txt",
threads: 1
shell:
"deeprvat_associate make-saige-input "
"deeprvat_associate make-regenie-input "
"--average-repeats "
"{params.phenotypes}"
# "{input.dataset} "
# "{wildcards.phenotype}/deeprvat/burdens "
# "{output.vcf} "
"{output.bgen} "
"{output.covariate_file} "
"{output.phenotype_file}"

0 comments on commit 82152e8

Please sign in to comment.