Skip to content

Commit

Permalink
successfully run old coloc including NULL hypothesis #29
Browse files Browse the repository at this point in the history
  • Loading branch information
dariushghasemi committed Dec 10, 2024
1 parent 88daa42 commit 1553edf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ rule all:
ws_path("break/collected_loci_excluding_mhc.csv"),
ws_path("cojo/collected_credible_sets.csv"),
expand(ws_path("coloc/{seqid}_master_file.sentinel"), seqid=analytes.seqid),
expand(ws_path("coloc/chr{chr_cs}.sentinel"), chr_cs = range(19, 20))
expand(ws_path("coloc/chr{chr_cs}_colocalization.table.all.tsv"), chr_cs = range(19,20)),
21 changes: 21 additions & 0 deletions workflow/rules/coloc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,24 @@ rule merry_go_round:
touch {output.sentinel}
"""


rule run_coloc:
input:
sentinel = ws_path("coloc/chr{chr_cs}.sentinel"),
output:
ofile = ws_path("coloc/chr{chr_cs}_colocalization.table.all.tsv"),
conda:
"../envs/fine_mapping.yml"
params:
codes = config.get("path_code"),
pairs = ws_path("coloc/chr{chr_cs}_coloc_pairwise_guide_table.tsv"),
chr = "{chr_cs}",
shell:
"""
Rscript workflow/scripts/s06_coloc.R \
--pipeline_path {params.codes} \
--coloc_guide_table {params.pairs} \
--chr_cs {params.chr} \
--ofile {output.ofile}
"""

0 comments on commit 1553edf

Please sign in to comment.