-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a TrueType font for plotting sequence names with
last/dotplot
. (#…
…7404) * Use a TrueType font for plotting sequence names with `last/dotplot`. The `last-dotplot` command normally picks scalable fonts by default but did not manage to do so on the conda install in the images. Therefore I hardcode the path (which is likely to change when the images are updated). Not using a scalable font prevents users from changing the font size using the command-line argument `-s` of `last-dotplot`. In addition, I found that the CI tests did not check the outputted images, and corrected that too in this commit. * Pin pillow version and query conda for its base directory. Thanks: Leon Hafner * Avoid unbound variable error, thanks to ChatGPT * Try a different way to find pillow's TrueType font in conda. * Fix typo * Try finding a font in the open-fonts package. * Desperate attempt to pull the information * Bingo! * Unpin pillow
- Loading branch information
1 parent
256a6dd
commit ea8c309
Showing
4 changed files
with
105 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ channels: | |
|
||
dependencies: | ||
- bioconda::last=1608 | ||
- conda-forge::open-fonts=0.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,119 @@ | ||
{ | ||
"sarscov2 - contigs - genome - gif": { | ||
"content": [ | ||
[ | ||
"versions.yml:md5,143ef48514afd0c39da64d8f11fd18f7" | ||
] | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.gif:md5,cec730f1d060a82553cefe2311708bad" | ||
] | ||
], | ||
"1": [ | ||
|
||
], | ||
"2": [ | ||
"versions.yml:md5,143ef48514afd0c39da64d8f11fd18f7" | ||
], | ||
"gif": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.gif:md5,cec730f1d060a82553cefe2311708bad" | ||
] | ||
], | ||
"png": [ | ||
|
||
], | ||
"versions": [ | ||
"versions.yml:md5,143ef48514afd0c39da64d8f11fd18f7" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.3" | ||
"nextflow": "24.10.4" | ||
}, | ||
"timestamp": "2025-01-21T09:18:32.629314" | ||
"timestamp": "2025-02-03T09:27:56.241408" | ||
}, | ||
"sarscov2 - contigs - genome - png - stub": { | ||
"content": [ | ||
[ | ||
"versions.yml:md5,143ef48514afd0c39da64d8f11fd18f7" | ||
] | ||
{ | ||
"0": [ | ||
|
||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.png:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"2": [ | ||
"versions.yml:md5,143ef48514afd0c39da64d8f11fd18f7" | ||
], | ||
"gif": [ | ||
|
||
], | ||
"png": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.png:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,143ef48514afd0c39da64d8f11fd18f7" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.3" | ||
"nextflow": "24.10.4" | ||
}, | ||
"timestamp": "2025-01-21T09:18:48.084683" | ||
"timestamp": "2025-01-31T09:55:40.665796" | ||
}, | ||
"sarscov2 - contigs - genome - png": { | ||
"content": [ | ||
[ | ||
"versions.yml:md5,143ef48514afd0c39da64d8f11fd18f7" | ||
] | ||
{ | ||
"0": [ | ||
|
||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.png:md5,005267881455bdab7c8bd87ec27060f8" | ||
] | ||
], | ||
"2": [ | ||
"versions.yml:md5,143ef48514afd0c39da64d8f11fd18f7" | ||
], | ||
"gif": [ | ||
|
||
], | ||
"png": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.png:md5,005267881455bdab7c8bd87ec27060f8" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,143ef48514afd0c39da64d8f11fd18f7" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.3" | ||
"nextflow": "24.10.4" | ||
}, | ||
"timestamp": "2025-01-21T09:18:17.971205" | ||
"timestamp": "2025-02-03T09:27:41.83809" | ||
} | ||
} |