Skip to content

Commit

Permalink
Try finding a font in the open-fonts package.
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-plessy committed Feb 3, 2025
1 parent 40c223d commit 0fb003e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion modules/nf-core/last/dotplot/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ channels:
- bioconda

dependencies:
- conda-forge::pillow=11.1.0
- bioconda::last=1608
- conda-forge::pillow=11.1.0
- conda-forge::open-fonts=0.7.0
8 changes: 4 additions & 4 deletions modules/nf-core/last/dotplot/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ process LAST_DOTPLOT {

conda "${moduleDir}/environment.yml"
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/db/db0b5de918238f07ec1ca668be942397da85e26aa582f8927ac37c70896303cf/data'
: 'community.wave.seqera.io/library/last:1608--f41c047f7dc37e30'}"
? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/a3/a35d17772276115874eda45f17b05407c9855ecec8c11d39cce49f0028f44cfb/data'
: 'community.wave.seqera.io/library/last_open-fonts:f1048938520a62ad'}"

input:
tuple val(meta), path(maf), path(annot_b)
Expand All @@ -27,9 +27,9 @@ process LAST_DOTPLOT {
def annot_b_arg = annot_b ? "-b ${annot_b}" : ''
"""
if [ -d "/home/ubuntu/miniconda3/" ]; then
TTF=\$(find /home/ubuntu/miniconda3/ -type f -name 'FreeMono.ttf' | head -n 1)
TTF=/home/ubuntu/miniconda3/conda/fonts/open-fonts/DejaVuSansMono-Regular.ttf
else
TTF=/opt/conda/pkgs/pillow-11.1.0-py313h8db990d_0/info/test/Tests/fonts/FreeMono.ttf
TTF=/opt/conda/fonts/open-fonts/DejaVuSansMono-Regular.ttf
fi
last-dotplot \\
-f \$TTF \\
Expand Down
12 changes: 6 additions & 6 deletions modules/nf-core/last/dotplot/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"id": "test"
},
"test.gif:md5,e040dcdeac84ec44355d1451f26315dc"
"test.gif:md5,cec730f1d060a82553cefe2311708bad"
]
],
"1": [
Expand All @@ -21,7 +21,7 @@
{
"id": "test"
},
"test.gif:md5,e040dcdeac84ec44355d1451f26315dc"
"test.gif:md5,cec730f1d060a82553cefe2311708bad"
]
],
"png": [
Expand All @@ -36,7 +36,7 @@
"nf-test": "0.9.2",
"nextflow": "24.10.4"
},
"timestamp": "2025-01-31T09:55:25.691071"
"timestamp": "2025-02-03T09:27:56.241408"
},
"sarscov2 - contigs - genome - png - stub": {
"content": [
Expand Down Expand Up @@ -88,7 +88,7 @@
{
"id": "test"
},
"test.png:md5,2768038865ee892bbbe912f8a1a06d16"
"test.png:md5,005267881455bdab7c8bd87ec27060f8"
]
],
"2": [
Expand All @@ -102,7 +102,7 @@
{
"id": "test"
},
"test.png:md5,2768038865ee892bbbe912f8a1a06d16"
"test.png:md5,005267881455bdab7c8bd87ec27060f8"
]
],
"versions": [
Expand All @@ -114,6 +114,6 @@
"nf-test": "0.9.2",
"nextflow": "24.10.4"
},
"timestamp": "2025-01-31T09:49:41.735968"
"timestamp": "2025-02-03T09:27:41.83809"
}
}

0 comments on commit 0fb003e

Please sign in to comment.