1 unstable release

0.1.0 Nov 1, 2022

#57 in #associated

Download history 28/week @ 2024-02-18 17/week @ 2024-02-25 15/week @ 2024-03-03 17/week @ 2024-03-10 9/week @ 2024-03-17 9/week @ 2024-03-24

53 downloads per month
Used in 2 crates

MIT license

79KB
1.5K SLoC

angsd-io

GitHub Actions status

angsd-io is a collection of Rust crates for reading and writing binary file formats associated with ANGSD.

Usage

To use one of the angsd-io in your own project, add the following to the [dependencies] section of your Cargo.toml:

angsd-saf = { git = "https://github.com/malthesr/angsd-io.git" }

Replace angsd-saf with the name of the crate you wish to depend on.

For more information, see here. In particular, you may wish to depend on a specific commit to avoid breakage:

angsd-saf = { git = "https://github.com/malthesr/angsd-io.git", rev = "abc" }

Replace abc with the hash of the commit you wish to depend on.

Documentation

The documentation can be built and viewed locally by running:

cargo doc --open

lib.rs:

Reading and writing of the SAF format.

Examples

Read SAF v3 file:

Write SAF v3 file:

Read only intersecting sites in multiple SAF v3 files:

The above examples are also available as runnable binaries, see the repository examples/ folder.

Dependencies

~2MB
~35K SLoC