Skip to content

Commit 2253323

Browse files
authored
Merge pull request #21 from gibsramen/v0.2.0
Update to v0.2.0
2 parents ce602e3 + b3a0ddb commit 2253323

File tree

4 files changed

+31
-27
lines changed

4 files changed

+31
-27
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Importantly, Qadabra focuses on feature *ranks* rather than FDR corrected p-valu
1212
Qadabra requires both [Snakemake](https://snakemake.readthedocs.io/en/stable/) and [Snakedeploy](https://snakedeploy.readthedocs.io/en/latest/) to be installed.
1313

1414
```
15-
snakedeploy deploy-workflow https://github.com/gibsramen/qadabra qadabra_dir --tag v0.1.2
15+
snakedeploy deploy-workflow https://github.com/gibsramen/qadabra qadabra_dir --tag v0.2.0
1616
```
1717

1818
This will download the workflow to your local machine.
@@ -24,12 +24,15 @@ You should also change the model covariate, target, and reference category.
2424
* `reference`: Reference category for log-fold change calculation
2525

2626
If you have other confounders, you can include them under the `confounders` heading.
27-
Delete these if you are not including any additional confounders.
28-
Note you should still leave the `counfounders` entry - just delete the entries in the list.
27+
Delete these if you are not including any additional confounders as follows:
28+
29+
`confounders: `
2930

3031
Qadabra can also output an [EMPress plot](https://journals.asm.org/doi/10.1128/mSystems.01216-20) of a phylogenetic tree annotated with each tool's differentials.
3132
Change the `tree` entry to point to this file.
32-
If you do not have a phylogenetic tree, change this entry to an empty string and EMPress will not be run.
33+
If you do not have a phylogenetic tree, delete this entry and EMPress will not be run.
34+
35+
`tree: `
3336

3437
Run `snakemake --use-conda <other options>` to start the workflow.
3538
Please read the [Snakemake documentation](https://snakemake.readthedocs.io/en/stable/executing/cli.html) for how to run Snakemake best on your system.

workflow/Snakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ include: "rules/common.smk"
55
include: "rules/diffab.smk"
66
include: "rules/visualization.smk"
77
include: "rules/ml.smk"
8-
include: "rules/tree.smk"
98

109

1110
report: "report/workflow.rst"

workflow/rules/tree.smk

Whitespace-only changes.

workflow/rules/visualization.smk

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -197,25 +197,27 @@ rule create_table:
197197
"../scripts/create_table.py"
198198

199199

200-
rule empress:
201-
input:
202-
tree=config["tree"],
203-
diff="results/concatenated_differentials.tsv",
204-
output:
205-
report(
206-
directory("results/empress"),
207-
caption="../report/empress.rst",
208-
htmlindex="empress.html",
209-
category="Tree",
210-
),
211-
log:
212-
"log/empress.log",
213-
conda:
214-
"../envs/qadabra-songbird.yaml"
215-
shell:
216-
"""
217-
empress tree-plot \
218-
--tree {input.tree} \
219-
--feature-metadata {input.diff} \
220-
--output-dir {output} > {log} 2>&1
221-
"""
200+
if config["tree"]:
201+
202+
rule empress:
203+
input:
204+
tree=config["tree"],
205+
diff="results/concatenated_differentials.tsv",
206+
output:
207+
report(
208+
directory("results/empress"),
209+
caption="../report/empress.rst",
210+
htmlindex="empress.html",
211+
category="Tree",
212+
),
213+
log:
214+
"log/empress.log",
215+
conda:
216+
"../envs/qadabra-songbird.yaml"
217+
shell:
218+
"""
219+
empress tree-plot \
220+
--tree {input.tree} \
221+
--feature-metadata {input.diff} \
222+
--output-dir {output} > {log} 2>&1
223+
"""

0 commit comments

Comments
 (0)