Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/maxfieldk/TE-Seq
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfieldk committed Oct 18, 2024
2 parents 5522570 + fa4a26f commit 2e5731c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions workflow/ldna/snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ rule get_merged_pat:
params:
inputdir = "ldna/results/wgbs",
level1 = config["ldna"]["levels"][0],
level2 = config["ldna"]["levels"][1]
level2 = lambda wildcards: config["ldna"]["levels"][1] if len(config["ldna"]["levels"]) > 1 else None, # Second level if exists
conda:
"omics"
output:
Expand All @@ -957,10 +957,13 @@ rule get_merged_pat:
"""
mkdir -p $(dirname {output.outfile})
/users/mkelsey/data/tools/wgbs_tools/wgbstools merge -p $(dirname {output.outfile})/{params.level1} --genome hs1 {params.inputdir}/{params.level1}*.pat.gz
/users/mkelsey/data/tools/wgbs_tools/wgbstools merge -p $(dirname {output.outfile})/{params.level2} --genome hs1 {params.inputdir}/{params.level2}*.pat.gz

if [ -n "{params.level2}" ]; then
/users/mkelsey/data/tools/wgbs_tools/wgbstools merge -p $(dirname {output.outfile})/{params.level2} --genome hs1 {params.inputdir}/{params.level2}*.pat.gz
fi
touch {output.outfile}
"""

rule pat_fig:
input:
outfile = "ldna/results/wgbs/analysis_default/merged/merged.outfile"
Expand Down Expand Up @@ -1686,4 +1689,5 @@ rule deconv:
mem_mb = 50000,
cpus_per_task = 4
script:
"scripts/deconv.R"
"scripts/deconv.R"

2 changes: 1 addition & 1 deletion workflow/snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ for pipeline in config["pipelines_to_deploy"]:
for e in list(flatten([mycoplasma])):
final_input.append(e)
if config["ldna"]["single_condition"] == "yes":
for e in list(flatten([bedmethanalysis_single_sample, methylartist])):
for e in list(flatten([bedmethanalysis_single_sample])):
final_input.append(e)
else:
for e in list(flatten([bedmethanalysis,dmrs, methylartist,hg38pat])):
Expand Down

0 comments on commit 2e5731c

Please sign in to comment.