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 1 month ago

nanxstats commented 1 month 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.