nanxstats / protr

🧬 Toolkit for generating various numerical features of protein sequences
https://nanx.me/protr/
Other
52 stars 13 forks source link

Determine `pairwiseAlignment()` call source based on Biostrings version #54

Closed nanxstats closed 2 months ago

nanxstats commented 2 months ago

Fixes #52

pairwiseAlignment() has moved from Biostrings to pwalign since Biostrings >= 2.72.0.

This PR determines which package to use by detecting the installation status and version Biostrings at runtime, so that protr can work on any R/Bioconductor/Biostrings version.

This solution tries to strike a balance between maintaining compatibility and not imposing unnecessary R version or dependency installation requirements on users.