1 unstable release

0.1.0 Nov 1, 2022

#57 in #associated

Download history 29/week @ 2024-02-19 18/week @ 2024-02-26 16/week @ 2024-03-04 16/week @ 2024-03-11 8/week @ 2024-03-18 13/week @ 2024-03-25 23/week @ 2024-04-01 11/week @ 2024-04-08 24/week @ 2024-04-15 14/week @ 2024-04-22

74 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