|
|
@@ -111,7 +111,7 @@ impl IdsInput {
|
|
|
/// - [`FlowCellLocation`]: Indicates source (local or archive)
|
|
|
/// - [`MinKnowSampleSheet`]: Parsed sample sheet data
|
|
|
/// - [`IdInput`]: Case-level annotation applied to flowcells
|
|
|
-#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
|
+#[derive(Debug, Serialize, Deserialize, Clone, Default)]
|
|
|
pub struct FlowCells {
|
|
|
/// A collection of parsed flowcell metadata records.
|
|
|
pub flow_cells: Vec<FlowCell>,
|
|
|
@@ -135,9 +135,7 @@ impl FlowCells {
|
|
|
inputs_path: &str,
|
|
|
archive_store_path: &str,
|
|
|
) -> anyhow::Result<Self> {
|
|
|
- let mut instance = Self {
|
|
|
- flow_cells: Vec::new(),
|
|
|
- };
|
|
|
+ let mut instance = Self::default();
|
|
|
|
|
|
instance.load_from_archive(archive_store_path)?;
|
|
|
instance.load_from_local(local_run_dir)?;
|