Skip to content

Commit

Permalink
Patch: pandoc cannot find relative PNG file, converting to absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Sep 19, 2023
1 parent bf93928 commit aa75e2f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker/sqanti3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,23 @@ RUN mkdir -p /opt2/sqanti3/5.1.2/ \
&& wget https://github.com/ConesaLab/SQANTI3/archive/refs/tags/v5.1.2.tar.gz -O /opt2/sqanti3/5.1.2/v5.1.2.tar.gz \
&& tar -zvxf /opt2/sqanti3/5.1.2/v5.1.2.tar.gz -C /opt2/sqanti3/5.1.2/ \
&& rm -f /opt2/sqanti3/5.1.2/v5.1.2.tar.gz \
# Removing exec bit for non-exec files
&& chmod -x \
/opt2/sqanti3/5.1.2/SQANTI3-5.1.2/LICENSE \
/opt2/sqanti3/5.1.2/SQANTI3-5.1.2/.gitignore \
/opt2/sqanti3/5.1.2/SQANTI3-5.1.2/*.md \
/opt2/sqanti3/5.1.2/SQANTI3-5.1.2/*.yml
/opt2/sqanti3/5.1.2/SQANTI3-5.1.2/*.yml \
# Patch: adding absolute PATH to howToUse.png
# that gets embedded in the report. When running
# sqanti_qc.py within docker/singularity container,
# it fails at the report generation step because
# pandoc cannot find the png file (due to relative
# path). Converting relative path in Rmd files to
# an absolute path to avoid this issue altogether.
&& sed -i \
's@src="howToUse.png"@src="/opt2/sqanti3/5.1.2/SQANTI3-5.1.2/utilities/report_qc/howToUse.png"@g' \
/opt2/sqanti3/5.1.2/SQANTI3-5.1.2/utilities/report_qc/SQANTI3_report.Rmd \
/opt2/sqanti3/5.1.2/SQANTI3-5.1.2/utilities/report_pigeon/pigeon_report.Rmd

ENV PATH="${PATH}:/opt2/sqanti3/5.1.2/SQANTI3-5.1.2:/opt2/sqanti3/5.1.2/SQANTI3-5.1.2/utilities"
WORKDIR /opt2
Expand Down

0 comments on commit aa75e2f

Please sign in to comment.