You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many thanks for this tool! We use it in the @nf-core / viralrecon pipeline. I'm new to this type of analysis and am just poking around my first proper run of the pipeline.
I noticed that in the HTML report, the image embeds aren't working for me. When I look at the HTML source, the <img> src is an absolute file path back to the location that the pipeline ran on the server. The above pipeline is written in Nextflow which executes each sub-task in its own directory before copying final results to a folder. So even if I hadn't moved the report from my cluster that would still break each report.
I wonder if the HTML report could instead use relative image paths instead of absolute? If I edit in the browser from this:
However as I've only looked at the code for about 5 minutes, I'm not sure if this will affect functionality elsewhere and break stuff..
Anyway, let me know what you think! Happy to prepare a PR for this change next week if you like (or please go ahead if you'd rather as it's such a small change).
Phil
The text was updated successfully, but these errors were encountered:
- Migrated tests to github actions
- Updated environment.yml for conda.
- Fixed issues #12,#14,#15,#17. Cases with no plasmids or too many. Relative paths in html images.
- Updated Dockerfile
- Migrated tests to github actions
- Updated environment.yml for conda.
- Fixed issues #12,#14,#15,#17. Cases with no plasmids or too many. Relative paths in html images.
Hi there,
Many thanks for this tool! We use it in the @nf-core / viralrecon pipeline. I'm new to this type of analysis and am just poking around my first proper run of the pipeline.
I noticed that in the HTML report, the image embeds aren't working for me. When I look at the HTML source, the
<img>
src is an absolute file path back to the location that the pipeline ran on the server. The above pipeline is written in Nextflow which executes each sub-task in its own directory before copying final results to a folder. So even if I hadn't moved the report from my cluster that would still break each report.I wonder if the HTML report could instead use relative image paths instead of absolute? If I edit in the browser from this:
to this:
..then the report can be moved around and the images load properly.
A very quick poke around the package source code (it's late here) makes me think that it's probably the following line that needs to be tweaked:
plasmidID/bin/summary_report_pid.py
Line 133 in 19f622f
I guess that using a relative path here will propagate through to the HTML report? e.g. something like this:
However as I've only looked at the code for about 5 minutes, I'm not sure if this will affect functionality elsewhere and break stuff..
Anyway, let me know what you think! Happy to prepare a PR for this change next week if you like (or please go ahead if you'd rather as it's such a small change).
Phil
The text was updated successfully, but these errors were encountered: