|
@@ -16,7 +16,7 @@ use serde::{Deserialize, Serialize};
|
|
|
use crate::{
|
|
use crate::{
|
|
|
collection::minknow::{parse_pore_activity_from_reader, parse_throughput_from_reader},
|
|
collection::minknow::{parse_pore_activity_from_reader, parse_throughput_from_reader},
|
|
|
helpers::{find_files, list_directories},
|
|
helpers::{find_files, list_directories},
|
|
|
- io::{readers::get_gz_reader, writers::get_gz_writer},
|
|
|
|
|
|
|
+ io::{readers::{get_gz_reader, get_reader}, writers::{get_gz_writer, get_writer}},
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
use super::minknow::{MinKnowSampleSheet, PoreStateEntry, PoreStateEntryExt, ThroughputEntry};
|
|
use super::minknow::{MinKnowSampleSheet, PoreStateEntry, PoreStateEntryExt, ThroughputEntry};
|
|
@@ -160,7 +160,7 @@ impl FlowCells {
|
|
|
return Ok(());
|
|
return Ok(());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let file = get_gz_reader(archive_path)
|
|
|
|
|
|
|
+ let file = get_reader(archive_path)
|
|
|
.with_context(|| format!("Failed to open archive file: {archive_path}"))?;
|
|
.with_context(|| format!("Failed to open archive file: {archive_path}"))?;
|
|
|
|
|
|
|
|
let archived: Vec<FlowCell> = serde_json::from_reader(BufReader::new(file))
|
|
let archived: Vec<FlowCell> = serde_json::from_reader(BufReader::new(file))
|
|
@@ -179,7 +179,7 @@ impl FlowCells {
|
|
|
// .with_context(|| format!("Failed to open archive file for writing: {archive_path}"))?;
|
|
// .with_context(|| format!("Failed to open archive file for writing: {archive_path}"))?;
|
|
|
let tmp_path = format!("/tmp/{}.json.gz", uuid::Uuid::new_v4());
|
|
let tmp_path = format!("/tmp/{}.json.gz", uuid::Uuid::new_v4());
|
|
|
|
|
|
|
|
- let mut file = get_gz_writer(&tmp_path, true)
|
|
|
|
|
|
|
+ let mut file = get_writer(&tmp_path)
|
|
|
.with_context(|| format!("Failed to open archive file for writing: {archive_path}"))?;
|
|
.with_context(|| format!("Failed to open archive file for writing: {archive_path}"))?;
|
|
|
|
|
|
|
|
|
|
|