Skip to content

Commit

Permalink
fix(instrument): properly init flowcell entries
Browse files Browse the repository at this point in the history
  • Loading branch information
a-frantz committed Aug 26, 2024
1 parent 7bbb7e5 commit 6091af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/derive/command/instrument.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ pub fn derive(args: DeriveInstrumentArgs) -> anyhow::Result<()> {
.or_default()
.insert(read.instrument_name);
metrics.found_instrument_name += 1;
// Get or init the flowcell set for this read group.
let fc_entry = flowcell_names.entry(read_group).or_default();
if let Some(fc) = read.flowcell {
flowcell_names.entry(read_group).or_default().insert(fc);
fc_entry.insert(fc);
metrics.found_flowcell_name += 1;
}
}
Expand Down

0 comments on commit 6091af4

Please sign in to comment.