Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichl committed May 23, 2024
1 parent d30df55 commit b8ab85d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ test_use: "wilcox"
min_pct: 0.1

# additional parameter for https://satijalab.org/seurat/reference/findallmarkers
# Only return markers that have a p-value < return.thresh, or a power > return.thresh (if the test is ROC)
return_thresh: 1

##### AGGREGATION #####
Expand Down
2 changes: 1 addition & 1 deletion workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ rule all:
envs = expand(os.path.join(config["result_path"],'envs',module_name,'{env}.yaml'),env=['seurat','volcanos','ggplot','heatmap']),
configs = os.path.join(config["result_path"],'configs',module_name,'{}_config.yaml'.format(config["project_name"])),
annotations = os.path.join(config["result_path"],'configs',module_name,'{}_annot.csv'.format(config["project_name"])),
feature_lists = expand(os.path.join(config["result_path"],'configs','dea_seurat','{feature_list}.txt'), feature_list = feature_lists),
feature_lists = expand(os.path.join(config["result_path"],'configs',module_name,'{feature_list}.txt'), feature_list = feature_lists),
resources:
mem_mb=config.get("mem", "16000"),
threads: config.get("threads", 1)
Expand Down
8 changes: 4 additions & 4 deletions workflow/rules/envs_export.smk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ rule env_export:
report(os.path.join(config["result_path"],'envs','dea_seurat','{env}.yaml'),
caption="../report/software.rst",
category="Software",
subcategory="{}_dea_seurat".format(config["project_name"])
subcategory="{}_{}".format(config["project_name"], module_name)
),
conda:
"../envs/{env}.yaml"
Expand All @@ -26,7 +26,7 @@ rule config_export:
configs = report(os.path.join(config["result_path"],'configs','dea_seurat','{}_config.yaml'.format(config["project_name"])),
caption="../report/configs.rst",
category="Configuration",
subcategory="{}_dea_seurat".format(config["project_name"])
subcategory="{}_{}".format(config["project_name"], module_name)
)
resources:
mem_mb=config.get("mem", "16000"),
Expand All @@ -37,7 +37,7 @@ rule config_export:
partition=config.get("partition"),
run:
with open(output["configs"], 'w') as outfile:
yaml.dump(config, outfile)
yaml.dump(config, outfile, sort_keys=False, width=1000, indent=2)

# export used annotation file for documentation and reproducibility
rule annot_export:
Expand All @@ -47,7 +47,7 @@ rule annot_export:
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"])
subcategory="{}_{}".format(config["project_name"], module_name)
)
resources:
mem_mb=1000, #config.get("mem_small", "16000"),
Expand Down

0 comments on commit b8ab85d

Please sign in to comment.