Skip to content

Commit

Permalink
fix annot export
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichl committed Oct 24, 2022
1 parent c7c6c8c commit 518e855
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ __pycache__
resources
results
data

snakejob_conductor.sh
2 changes: 1 addition & 1 deletion workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ rule all:
),
envs = expand(os.path.join(config["result_path"],'envs','dea_seurat','{env}.yaml'),env=['seurat','volcanos','ggplot','heatmap']),
configs = os.path.join(config["result_path"],'configs','dea_seurat','{}_config.yaml'.format(config["project_name"])),
annotations = config["annotation"],
annotations = os.path.join(config["result_path"],'configs','dea_seurat','{}_annot.csv'.format(config["project_name"])),
resources:
mem_mb=config.get("mem", "16000"),
threads: config.get("threads", 1)
Expand Down
16 changes: 11 additions & 5 deletions workflow/rules/envs_export.smk
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,25 @@ rule config_export:
run:
with open(output["configs"], 'w') as outfile:
yaml.dump(config, outfile)

# export used annotation file for documentation and reproducibility
# export used annotation file for documentation and reproducibility
rule annot_export:
input:
config["annotation"],
output:
annot = report(config["annotation"],
annot = report(os.path.join(config["result_path"],'configs','dea_seurat','{}_annot.csv'.format(config["project_name"])),
caption="../report/configs.rst",
category="Configuration",
subcategory="{}_dea_seurat".format(config["project_name"])
)
resources:
mem_mb=config.get("mem_small", "16000"),
mem_mb=1000, #config.get("mem_small", "16000"),
threads: config.get("threads", 1)
log:
os.path.join("logs","rules","annot_export.log"),
params:
partition=config.get("partition"),
partition=config.get("partition"),
shell:
"""
cp {input} {output}
"""

0 comments on commit 518e855

Please sign in to comment.