Skip to content

Commit

Permalink
Make Ct 0 for positive control samples (#20)
Browse files Browse the repository at this point in the history
* Make ct zero for positive control

* fix containerid

* Add ct 0 when library id starts with POS

* remove added whitespace

* fix whitespace
  • Loading branch information
taranewman authored Aug 30, 2024
1 parent f48db3f commit 1bc3014
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auto_ncov/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def combine_ct_values(metadata: dict[str, dict[str, object]]) -> dict[str, dict[
if sample_metadata[ct_field] is not None:
ct_combo = sample_metadata[ct_field]
break

sample_metadata['ct_combo'] = ct_combo

return metadata
Expand Down Expand Up @@ -143,6 +143,9 @@ def select_run_metadata(all_metadata: dict[str, dict[str, object]], run_library_
except KeyError as e:
pass

if library_id.startswith('POS'):
library_selected_metadata['ct'] = 0

run_metadata.append(library_selected_metadata)

return run_metadata
Expand Down

0 comments on commit 1bc3014

Please sign in to comment.