Skip to content

Commit

Permalink
the beadIndex values are stored as index, not column, so no need to d…
Browse files Browse the repository at this point in the history
…rop them
  • Loading branch information
vreuter committed Feb 19, 2025
1 parent d3fa335 commit 9bddc8c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/cli/run_processing_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,7 @@ def get_spec_opt(fn: str) -> Option[tuple[BeadRoisFilenameSpecification, Path]]:
bead_rois = bead_rois[bead_rois[NUC_LABEL_COL] != 0]
new_num_rois: int = bead_rois.shape[0]
logging.info("%s: %d --> %d", rois_file, old_num_rois, new_num_rois)
bead_rois.drop(BEAD_INDEX_COLUMN_NAME, axis="columns")\
.reset_index()\
.to_csv(rois_file, index_label=BEAD_INDEX_COLUMN_NAME)
bead_rois.reset_index().to_csv(rois_file, index_label=BEAD_INDEX_COLUMN_NAME)


def discard_spots_close_to_beads(rounds_config: ExtantFile, params_config: ExtantFile) -> None:
Expand Down

0 comments on commit 9bddc8c

Please sign in to comment.