Skip to content

Commit

Permalink
works in container or conda
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHarrop committed Oct 1, 2024
1 parent b956671 commit b2f2fd8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tools/plot_ragtag_paf/plot_ragtag_paf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@
<command detect_errors="exit_code"><![CDATA[
## Suppress R warnings about container
sed -i
'/options(bspm.version.check=FALSE)/i options(bspm.sudo = TRUE)'
/etc/R/Rprofile.site &&
if [ -f /etc/R/Rprofile.site ]; then
sed -i
'/options(bspm.version.check=FALSE)/i options(bspm.sudo = TRUE)'
/etc/R/Rprofile.site ;
fi ;
## Print the plot config to stderr
sed -e 's/^[ \t]*//' -e '/^$/d' '${plot_config}' > config.yaml &&
echo "PLOT CONFIG:" >&2 &&
echo "PLOT CONFIG:" >&2 &&
cat config.yaml >&2 &&
## Draw the plot
echo "\nRunning plot_ragtag_paf.R\n" >&2 &&
printf '\n%s\n' "Running plot_ragtag_paf.R" >&2 &&
Rscript
'${__tool_directory__}/plot_ragtag_paf.R'
config.yaml
Expand Down

0 comments on commit b2f2fd8

Please sign in to comment.