Workflow
+ + + +Click the nodes to obtain details about each step.
+ +Statistics
+ If the workflow has been executed in cluster/cloud, runtimes include the waiting time in the queue. +Loading...
+diff --git a/snakemake/report/__init__.py b/snakemake/report/__init__.py index ba4c4edc4..395198258 100644 --- a/snakemake/report/__init__.py +++ b/snakemake/report/__init__.py @@ -263,7 +263,7 @@ def code(self): _, source, language, _ = script.get_source( self._rule.script, self._rule.workflow.sourcecache, self._rule.basedir ) - sources = [source.decode()] + sources = [source] elif self._rule.wrapper is not None and not contains_wildcard( self._rule.wrapper ): @@ -276,7 +276,7 @@ def code(self): ), self._rule.workflow.sourcecache, ) - sources = [source.decode()] + sources = [source] elif self._rule.notebook is not None and not contains_wildcard( self._rule.notebook ): diff --git a/tests/test_report_display_code/Snakefile b/tests/test_report_display_code/Snakefile new file mode 100644 index 000000000..8059b94be --- /dev/null +++ b/tests/test_report_display_code/Snakefile @@ -0,0 +1,30 @@ +rule all: + input: + "test.vcf.gz", + + +rule a: + output: + "{prefix}.txt", + shell: + "touch {output}" + + +rule b: + input: + "{prefix}.txt", + output: + "{prefix}.vcf", + script: + "test.py" + + +rule bgzip: + input: + "{prefix}.vcf", + output: + "{prefix}.vcf.gz", + log: + "logs/bgzip/{prefix}.log", + wrapper: + "v1.1.0/bio/bgzip" diff --git a/tests/test_report_display_code/expected-results/report.html b/tests/test_report_display_code/expected-results/report.html new file mode 100644 index 000000000..fdfcaead6 --- /dev/null +++ b/tests/test_report_display_code/expected-results/report.html @@ -0,0 +1,1543 @@ + + +
+ + + + + +Loading Snakemake Report...
+Please enable Javascript in your browser to see this report.
+Loading 0 Bytes. For large reports, this can take a while.
+Click the nodes to obtain details about each step.
+ +Loading...
+