원시데이터 수집 시스템
선정목록으로

RustSASA: A Rust Crate for Accelerated Solvent Accessible Surface Area Calculations

관련 엔지니어링 플라스틱 · (23) 컴파운드

기본 정보

저자
  1. Maxwell J. Campbell — University of California, San Francisco, United States of America
DOI
10.21105/joss.09537
저널
The Journal of Open Source Software
발행년도
2026
발행기관
Open Journals
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.21105/joss.09537
토픽
Electrostatics and Colloid Interactions
OpenAlex ID
W7123345591

평가 내용

관련도
관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Solvent accessible surface area (SASA) calculations are fundamental for understanding protein structure, function, and dynamics in computational biology, providing insights into protein folding, stability, and intermolecular interactions.The Shrake-Rupley algorithm has served as the standard method since 1973, but existing implementations often become computational bottlenecks when analyzing large protein datasets or molecular dynamics trajectories.As structural biology databases continue to expand, exemplified by AlphaFold's hundreds of millions of predicted structures, the need for efficient SASA calculation tools has increased dramatically.RustSASA addresses this challenge through a high-performance implementation written in Rust, leveraging efficient parallelization abstractions and SIMD instructions.Benchmarking demonstrates a 5 speed improvement over FreeSASA for proteome-scale calculations and a 20 improvement for molecular dynamics trajectory analysis.Validation against FreeSASA yields Pearson correlation coefficients exceeding 0.99 on both the predicted E. coli proteome and the FreeSASA evaluation dataset, confirming calculation accuracy.RustSASA provides interfaces for multiple programming languages (Rust and Python), a command-line interface, and integration with the MDAnalysis framework (Gowers et al., 2016;Michaud-Agrawal et al., 2011), ensuring broad accessibility across the computational biology community.The source code is freely available at https://github.com/maxall41/RustSASA.

본문 14,370자

본문 펼치기
DOI: [10.21105/joss.09537](https://doi.org/10.21105/joss.09537) Software - [Review](https://github.com/openjournals/joss-reviews/issues/9537) - [Repository](https://github.com/maxall41/RustSASA) - [Archive](https://doi.org/10.5281/zenodo.16958791) Editor: [Prashant](https://prashjha.github.io/) Jha Reviewers: - [@mittinatten](https://github.com/mittinatten) - [@kliment-olechnovic](https://github.com/kliment-olechnovic) Submitted: 17 July 2025 Published: 12 January 2026 License Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License (CC [BY](https://creativecommons.org/licenses/by/4.0/) 4.0). # RustSASA: A Rust Crate for Accelerated Solvent Accessible Surface Area Calculations Maxwell J. Campbell 1 1 University of California, San Francisco, United States of America ## Summary Solvent accessible surface area (SASA) calculations are fundamental for understanding protein structure, function, and dynamics in computational biology, providing insights into protein folding, stability, and intermolecular interactions. The Shrake-Rupley algorithm has served as the standard method since 1973, but existing implementations often become computational bottlenecks when analyzing large protein datasets or molecular dynamics trajectories. As structural biology databases continue to expand, exemplified by AlphaFold’s hundreds of millions of predicted structures, the need for efficient SASA calculation tools has increased dramatically. RustSASA addresses this challenge through a high-performance implementation written in Rust, leveraging efficient parallelization abstractions and SIMD instructions. Benchmarking demonstrates a 5× speed improvement over FreeSASA for proteome-scale calculations and a 20× improvement for molecular dynamics trajectory analysis. Validation against FreeSASA yields Pearson correlation coefficients exceeding 0.99 on both the predicted _E._ _coli_ proteome and the FreeSASA evaluation dataset, confirming calculation accuracy. RustSASA provides interfaces for multiple programming languages (Rust and Python), a command-line interface, and integration with the MDAnalysis framework (Gowers et al., 2016; Michaud-Agrawal et al., 2011), ensuring broad accessibility across the computational biology community. The source code is freely available at https://github.com/maxall41/RustSASA. ## Statement of need As proteomics datasets continue to grow with initiatives like AlphaFold producing hundreds of millions of predicted protein structures, existing SASA calculation tools have become a significant bottleneck in structural biology workflows. Popular implementations such as those in Biopython and FreeSASA, while accurate, become prohibitively slow when processing large protein datasets or extended molecular dynamics trajectories. RustSASA addresses this performance gap by leveraging efficient parallelization abstractions via Rayon, readily available SIMD instructions via Pulp, and a highly optimized spatial grid. These optimizations enable RustSASA’s performance advantage over the simpler C implementation of the same algorithm in FreeSASA. The resulting performance gains reduce computational costs for high-throughput structural analyses and make previously intractable large-scale comparative studies feasible. ## Results Calculation Quality To evaluate the accuracy of RustSASA calculations, we compared results to FreeSASA (Mitternacht, 2016) on both the predicted _E._ _coli_ proteome from AlphaFold DB (Jumper et al., 2021; Varadi et al., 2021) and the FreeSASA evaluation dataset. RustSASA produces SASA Campbell. (2026). RustSASA: A Rust Crate for Accelerated Solvent Accessible Surface Area Calculations. _Journal_ _of_ _Open_ _Source_ _Software_, 1 _11_ (117), 9537. [https://doi.org/10.21105/joss.09537.](https://doi.org/10.21105/joss.09537) values that closely match those from FreeSASA, achieving an RMSE of ~44 on both datasets (Figure 1). 1e4 1e5 A. AlphaFold E. coli proteome B. FreeSASA dataset 1.2 1.0 0.8 0.6 0.4 0.2 0.0 ~~n = 4370~~ r = 1.0000 p = 0.00e+00 <u>RMSE = 43.53</u> 0.0 0.2 0.4 0.6 0.8 1.0 1.2 FreeSASA Chain Total 1e5 4 3 2 1 0 n = 160 <u>r = 1.0000</u> ~~p = 0.00e+00~~ RMSE = 43.99 0 1 2 3 4 FreeSASA Chain Total 1e4 Figure 1: A. Comparing RustSASA against FreeSASA on _E._ _coli_ proteome at the chain level. B. Comparing RustSASA against FreeSASA on FreeSASA comparison dataset at the chain level. Performance We evaluated the performance of FreeSASA, RustSASA, and Biopython (Cock et al., 2009) across four evaluations. First, we performed multi-threaded SASA calculations for all proteins in the _E._ _coli_ proteome. Second, we evaluated the performance of these methods on a single randomly selected protein (A0A385XJ53) from the AlphaFold _E._ _coli_ proteome. Third, we evaluated the single-threaded performance of RustSASA and FreeSASA on the _E. coli_ proteome. Biopython was excluded from this benchmark due to its poor performance hindering timely evaluation. Fourth, we evaluated the performance of RustSASA against mdakit-sasa, which uses FreeSASA internally, on a molecular dynamics trajectory, specifically trajectory 10824 (4IAQ, 5HT receptor) from GPRCmd (Rodríguez-Espigares et al., 2020). For the full proteome benchmarks (Figure 2A), we used Hyperfine (Peter, 2023) with 3 runs and 3 warmup iterations. All methods utilized parallel processing across eight cores. GNU parallel (Tange, 2011) was used to parallelize FreeSASA and Biopython, while RustSASA utilized its internal parallelization. RustSASA processed the entire proteome in ~5 seconds compared to ~28 seconds for FreeSASA and ~328 seconds for Biopython, representing 5× and 63× speed improvements, respectively. For the single-protein benchmark (Figure 2B), we used Hyperfine with 3 warmup iterations and 25 runs. RustSASA processed the protein in 4.0 ms (±0.5), FreeSASA processed the protein in 4.0 ms (±0.2), and Biopython processed the protein in 250.8 ms (±2.0). On the single-threaded benchmark (Figure 2C), RustSASA processed the proteome in 26.0 seconds compared to 46.2 seconds for FreeSASA, representing a ~43% performance improvement, demonstrating that RustSASA’s performance advantage is not solely due to multi-threading. For the molecular dynamics trajectory benchmark (Figure 2D), we used Hyperfine with 3 runs. RustSASA processed the trajectory in 22.7 seconds (±1.4), where mdakit-sasa processed the trajectory in 448.4 seconds (±1.3), representing a ~20× performance improvement. The magnitude of the improvement can be attributed to the inefficiency with which mdakit-sasa utilizes FreeSASA. Campbell. (2026). RustSASA: A Rust Crate for Accelerated Solvent Accessible Surface Area Calculations. _Journal_ _of_ _Open_ _Source_ _Software_, 2 _11_ (117), 9537. [https://doi.org/10.21105/joss.09537.](https://doi.org/10.21105/joss.09537) 250 200 150 100 50 400 350 300 250 200 150 100 50 A. <u>Performance Comparison on E. coli Proteome</u> <u>328.7s</u> ~~28.0s~~ <u><mark>5.5s</mark></u> B. Performance Comparison on A0A385XJ53 <u>251ms</u> 0 rust-sasa freesasa biopython C. Single-Threaded Performance on E. coli Proteome <u><mark>4ms</mark></u> <u><mark>4ms</mark></u> 0 rust-sasa freesasa biopython D. Performance Comparison on Molecular Dynamics 50 40 30 20 <u>46.2s</u> 448.4s <u>26.0s</u> 10 0 rust-sasa freesasa 500 400 300 200 100 22.7s 0 rust-sasa mdakit-sasa Figure 2: A. Comparing the multi-threaded performance of RustSASA, FreeSASA, and Biopython on the full AlphaFold _E._ _coli_ proteome. B. Comparing the multi-threaded performance of RustSASA, FreeSASA, and Biopython on A0A385XJ53, a protein randomly selected from the AlphaFold _E._ _coli_ proteome. C. Comparing the single-threaded performance of RustSASA and FreeSASA on the full AlphaFold _E._ _coli_ proteome. D. Comparing the performance of RustSASA and mdakit-sasa (based on FreeSASA) on a molecular dynamics trajectory. Methods RustSASA computes solvent-accessible surface areas (SASA) using the Shrake-Rupley algorithm (Shrake & Rupley, 1973). In this algorithm, each atom is represented as a sphere with a radius equal to its atomic van der Waals radius plus the radius of a spherical solvent probe; the sphere surface is sampled with a dense quasi-uniform distribution of test points and a point is considered solvent-accessible if it is not occluded by any neighboring atom sphere. For all calculations reported here, a solvent probe radius of 1.4 Å (the approximate radius of a water molecule) was used. Atomic radii were assigned following the ProtOr parameter set introduced by Tsai et al. (Tsai et al., 1999). These radii were applied to all non-hydrogen heavy atoms present in the structures; hydrogen atoms, when present in input files, were ignored for the SASA computations to maintain consistency with common practice for protein SASA estimation. Additionally, all HETATM records in the input—non-standard amino acids and ligands—were ignored. To ensure a fair comparison of RustSASA and FreeSASA in the single-threaded benchmark, a C++ script was utilized to call the FreeSASA C API for all input proteins in a given folder. This approach ensures that the command-line overhead is not responsible for RustSASA’s performance advantage. Furthermore, in all experiments, FreeSASA was configured to use the Shrake-Rupley algorithm over its default algorithm, Lee & Richards, to ensure an accurate comparison between the methods. Proteome-scale structure models for Escherichia coli were obtained from the AlphaFold DB (entry UP000000625_83333_ECOLI_v6, available at https://alphafold.ebi.ac.uk/download). All experiments were conducted on a 2024 Apple Campbell. (2026). RustSASA: A Rust Crate for Accelerated Solvent Accessible Surface Area Calculations. _Journal_ _of_ _Open_ _Source_ _Software_, 3 _11_ (117), 9537. [https://doi.org/10.21105/joss.09537.](https://doi.org/10.21105/joss.09537) MacBook Air with an M3 processor and 24GB of unified memory. ## Acknowledgements We would like to thank Rodrigo Honorato and Niccolò Bruciaferri for their valuable contributions to this project. Additionally, we would like to thank the reviewers for their insightful comments. ## References Cock, P. J., Antao, T., Chang, J. T., Chapman, B. A., Cox, C. J., Dalke, A., Friedberg, I., Hamelryck, T., Kauff, F., Wilczynski, B., & others. (2009). Biopython: Freely available python tools for computational molecular biology and bioinformatics. _Bioinformatics_, _25_ (11), 1422–1423. [https://doi.org/10.1093/bioinformatics/btp163](https://doi.org/10.1093/bioinformatics/btp163) Gowers, R. J., Linke, M., Barnoud, J., Reddy, T. J. E., Melo, M. N., Seyler, S. L., Domański, J., Dotson, D. L., Buchoux, S., Kenney, I. M., & Beckstein, O. (2016). MDAnalysis: A Python package for the rapid analysis of molecular dynamics simulations. _SciPy_ _2016_ . [https://doi.org/10.25080/Majora-629e541a-00e](https://doi.org/10.25080/Majora-629e541a-00e) Jumper, J., Evans, R., Pritzel, A., Green, T., Figurnov, M., Ronneberger, O., Tunyasuvunakool, K., Bates, R., Žídek, A., Potapenko, A., Bridgland, A., Meyer, C., Kohl, S. A. A., Ballard, A. J., Cowie, A., Romera-Paredes, B., Nikolov, S., Jain, R., Adler, J., … Hassabis, D. (2021). Highly accurate protein structure prediction with AlphaFold. _Nature_, _596_ (7873), 583–589. [https://doi.org/10.1038/s41586-021-03819-2](https://doi.org/10.1038/s41586-021-03819-2) Michaud-Agrawal, N., Denning, E. J., Woolf, T. B., & Beckstein, O. (2011). MDAnalysis: A toolkit for the analysis of molecular dynamics simulations. _Journal_ _of_ _Computational_ _Chemistry_, _32_ (10), 2319–2327. [https://doi.org/10.1002/jcc.21787](https://doi.org/10.1002/jcc.21787) Mitternacht, S. (2016). FreeSASA: An open source c library for solvent accessible surface area calculations. _F1000Research_, _5_, 189. [https://doi.org/10.12688/f1000research.7931.1](https://doi.org/10.12688/f1000research.7931.1) Peter, D. (2023). _Hyperfine_ . [https://github.com/sharkdp/hyperfine](https://github.com/sharkdp/hyperfine) Rodríguez-Espigares, I., Torrens-Fontanals, M., Tiemann, J. K. S., Aranda-García, D., Ramírez Anguita, J. M., Stepniewski, T. M., Worp, N., Varela-Rial, A., Morales-Pastor, A., MedelLacruz, B., Pándy-Szekeres, G., Mayol, E., Giorgino, T., Carlsson, J., Deupi, X., Filipek, S., Filizola, M., Gómez-Tamayo, J. C., Gonzalez, A., … Selent, J. (2020). GPCRmd uncovers the dynamics of the 3D-GPCRome. _Nature_ _Methods_, _17_ (8), 777–787. [https:](https://doi.org/10.1038/s41592-020-0884-y) [//doi.org/10.1038/s41592-020-0884-y](https://doi.org/10.1038/s41592-020-0884-y) Shrake, A., & Rupley, J. A. (1973). Environment and exposure to solvent of protein atoms. Lysozyme and insulin. _Journal_ _of_ _Molecular_ _Biology_, _79_ (2), 351–371. [https://doi.org/10.](https://doi.org/10.1016/0022-2836%0x2873%0x2990011-9) [1016/0022-2836(73)90011-9](https://doi.org/10.1016/0022-2836%0x2873%0x2990011-9) Tange, O. (2011). GNU parallel - the command-line power tool _._ _;Login:_ _The_ _USENIX_ _Magazine_, _36_ (1), 42–47. [http://www.gnu.org/s/parallel](http://www.gnu.org/s/parallel) Tsai, J., Taylor, R., Chothia, C., & Gerstein, M. (1999). The packing density in proteins: Standard radii and volumes. _Journal_ _of_ _Molecular_ _Biology_, _290_ (1), 253–266. [https:](https://doi.org/10.1006/jmbi.1999.2829) [//doi.org/10.1006/jmbi.1999.2829](https://doi.org/10.1006/jmbi.1999.2829) Varadi, M., Anyango, S., Deshpande, M., Nair, S., Natassia, C., Yordanova, G., Yuan, D., Stroe, O., Wood, G., Laydon, A., Žídek, A., Green, T., Tunyasuvunakool, K., Petersen, S., Jumper, J., Clancy, E., Green, R., Vora, A., Lutfi, M., … Velankar, S. (2021). AlphaFold protein structure database: Massively expanding the structural coverage of protein-sequence space with high-accuracy models. _Nucleic_ _Acids_ _Research_, _50_ (D1), D439–D444. [https:](https://doi.org/10.1093/nar/gkab1061) [//doi.org/10.1093/nar/gkab1061](https://doi.org/10.1093/nar/gkab1061) Campbell. (2026). RustSASA: A Rust Crate for Accelerated Solvent Accessible Surface Area Calculations. _Journal_ _of_ _Open_ _Source_ _Software_, 4 _11_ (117), 9537. [https://doi.org/10.21105/joss.09537.](https://doi.org/10.21105/joss.09537)

섹션 본문

섹션 본문이 없습니다.

참고문헌 9건

  1. Environment and exposure to solvent of protein atoms. Lysozyme and insulin Journal of Molecular Biology · Elsevier BV · 1973 10.1016/0022-2836(73)90011-9
  2. The packing density in proteins: standard radii and volumes 1 1Edited by J. M. Thornton Journal of Molecular Biology · Elsevier BV · 1999 10.1006/jmbi.1999.2829
  3. Biopython: freely available Python tools for computational molecular biology and bioinformatics Bioinformatics · Oxford University Press · 2009 10.1093/bioinformatics/btp163
  4. MDAnalysis: A toolkit for the analysis of molecular dynamics simulations Journal of Computational Chemistry · Wiley · 2011 10.1002/jcc.21787
  5. FreeSASA: An open source C library for solvent accessible surface area calculations F1000Research · Faculty of 1000 · 2016 10.12688/f1000research.7931.1
  6. MDAnalysis: A Python Package for the Rapid Analysis of Molecular Dynamics Simulations Proceedings of the Python in Science Conferences · 2016 10.25080/majora-629e541a-00e
  7. GPCRmd uncovers the dynamics of the 3D-GPCRome Nature Methods · Nature Portfolio · 2020 10.1038/s41592-020-0884-y
  8. Highly accurate protein structure prediction with AlphaFold Nature · Nature Portfolio · 2021 10.1038/s41586-021-03819-2
  9. AlphaFold Protein Structure Database: massively expanding the structural coverage of protein-sequence space with high-accuracy models Nucleic Acids Research · Oxford University Press · 2021 10.1093/nar/gkab1061