rust_abf
Rust ABF Reader
This is a Rust project that provides a fast and memory-efficient way to read ABF (Axon Binary Format) files commonly used in electrophysiology.
Features
- Fast Reading: Utilizes optimized algorithms for quick ABF file parsing.
- Low Memory Footprint: Minimizes memory usage while processing large ABF files.
- Minimal Dependencies: Strives to keep dependencies lightweight.
- Easy to Use: Provides a simple API for reading ABF files.
Usage
-
Install Rust and Cargo if you haven't already.
-
Add this library to your
Cargo.toml
or usingcargo add rust_abf
-
In your Rust code:
use Path; use Abf;
If you prefer to work on channels, you can have direct access to them by using the following code:
...
let ch0 = abf.get_channel.unwrap;
println!;
for s in 0..abf.get_sweeps_count
...
You might also prefer a more functional approach like the following:
...
abf.get_channels
.for_each;
...
Contributing
Contributions are welcome! If you encounter issues or have suggestions, please open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.