Crates.io | podders |
lib.rs | podders |
version | 0.1.4 |
source | src |
created_at | 2023-12-20 17:01:47.859933 |
updated_at | 2024-07-10 10:51:53.673223 |
description | Write uncompressed Pod5 files in native rust. No FFI! PODDDDERS |
homepage | |
repository | https://github.com/adoni5/podders/ |
max_upload_size | |
id | 1075525 |
size | 290,534 |
[!NOTE] The pod champ commeth Pronounced pɒdəɹz
Very simple native rust lib for writing POD5 files. No FFI Woooooooo LET'S GOOOOO
Many!
fn test() -> arrow::error::Result<()> {
let mut pod5 = Pod5File::new("test_builder.pod5").unwrap();
pod5.push_run_info(dummy_run_info());
pod5.write_run_info_to_ipc();
println!("{:#?}", pod5.run_table.length);
let read = dummy_read_row(None).unwrap();
let read_2 = dummy_read_row(Some("9e81bb6a-8610-4907-b4dd-4ed834fc414d")).unwrap();
pod5.push_read(read);
pod5.push_read(read_2);
pod5.write_reads_to_ipc();
// println!("{:#?}", pod5._signal);
pod5.write_signal_to_ipc();
pod5.write_footer();
Ok(())
}