#protein #pdb #bioinfomatics #sasa #structural-biology

sys freesasa-sys

Rust raw FFI bindings for the freesasa C library

2 releases

0.1.10 Feb 14, 2023
0.1.9 Feb 13, 2023

#116 in Biology

Download history 106/week @ 2023-05-15 1/week @ 2023-05-22 11/week @ 2023-05-29 11/week @ 2023-06-05 1/week @ 2023-06-12 13/week @ 2023-06-26 4/week @ 2023-07-03 16/week @ 2023-07-10 8/week @ 2023-07-17 2/week @ 2023-07-24 9/week @ 2023-07-31 27/week @ 2023-08-07 23/week @ 2023-08-14 44/week @ 2023-08-21 62/week @ 2023-08-28

156 downloads per month

Custom license

5MB
35K SLoC

C 16K SLoC // 0.1% comments C++ 14K SLoC // 0.0% comments Python 3.5K SLoC // 0.1% comments FORTRAN Modern 344 SLoC Shell 223 SLoC // 0.2% comments F# 209 SLoC // 0.0% comments Perl 169 SLoC // 0.3% comments Automake 113 SLoC Happy 87 SLoC Rust 68 SLoC // 0.2% comments Visual Studio Solution 34 SLoC JavaScript 12 SLoC

FreeSASA FFI

This crate provides raw FFI bindings to the freesasa C library, developed by Simon Mitternacht [1]. FreeSASA allows you to calculate the solvent accessible surface area (SASA) of a protein from its atomic coordinates. The library is written in C, and is available under the MIT license.

The bindings in this crate are automatically generated by bindgen. Since this crate provides raw access to a C-library, it is on the user to ensure that memory safety is maintained.

For most uses it is recommended to use the RustSASA crate (which is currently not publicly available). RustSASA aims to provide a safe idiomatic way of working with freesasa from within Rust.

Please contact me via email, ow257@cam.ac.uk, if you are interested in access to RustSASA.

Docs

https://ch.uniofcam.dev/sormanni/freesasa_sys

Currently, the docs aren't availible on docs.rs, since the build environment doesn't permit for the building of this crate. There is an open issue with the maintainers of docs.rs about this. Hopefully, it will be resolved soon.

Note, the docs hosted here, are linked to whatever is on the main branch of the git repo, so may be ahead of the current version on crates.io. This is unlikely since this crate will only change if freesasa is updated.

License

The MIT license

References

[1] Simon Mitternacht (2016) FreeSASA: An open source C library for solvent accessible surface area calculations. F1000Research 5:189. (doi: 10.12688/f1000research.7931.1)

Dependencies