Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle duplicated barcodes #343

Merged

Conversation

saracastel
Copy link
Contributor

Description

Details

URL to issue

hms-dbmi-cellenics/issues#60

Link to staging deployment URL (or set N/A)

N/A

Links to any PRs or resources related to this PR

Integration test branch

master

Merge checklist

Your changes will be ready for merging after all of the steps below have been completed.

Code updates

Have best practices and ongoing refactors being observed in this PR

  • Migrated any selector / reducer used to the new format.

Manual/unit testing

  • Tested changes using InfraMock locally or no tests required for change, e.g. Kubernetes chart updates.
  • Validated that current unit tests for code work as expected and are sufficient for code coverage or no unit tests required for change, e.g. documentation update.
  • Unit tests written or no unit tests required for change, e.g. documentation update.

Integration testing

You must check the box below to run integration tests on the latest commit on your PR branch.
Integration tests have to pass before the PR can be merged. Without checking the box, your PR
will not pass the required status checks for merging.

  • Started end-to-end tests on the latest commit.

Documentation updates

  • Relevant Github READMEs updated or no GitHub README updates required.
  • Relevant Wiki pages created/updated or no Wiki updates required.

Optional

  • Staging environment is unstaged before merging.
  • Photo of a cute animal attached to this PR.

@gerbeldo gerbeldo added the safe to run safe to run Marks the PR as safe to run checks on. IMPORTANT only add if from a trusted source. label Oct 31, 2023
Signed-off-by: German Beldorati Stark <[email protected]>
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #343 (9177794) into master (3be99f0) will increase coverage by 0.14%.
The diff coverage is 100.00%.

❗ Current head 9177794 differs from pull request most recent head 118b970. Consider uploading reports for the commit 118b970 to get more accurate results

@@            Coverage Diff             @@
##           master     #343      +/-   ##
==========================================
+ Coverage   79.86%   80.00%   +0.14%     
==========================================
  Files          29       29              
  Lines        2970     2986      +16     
==========================================
+ Hits         2372     2389      +17     
+ Misses        598      597       -1     
Files Coverage Δ
pipeline-runner/R/qc-7-embed_and_cluster.R 93.78% <100.00%> (+0.07%) ⬆️

... and 1 file with indirect coverage changes

Signed-off-by: sara castellano <[email protected]>
@@ -381,13 +386,21 @@ make_cl_metadata_cellclass <- function(variable, type, cl_metadata, color_pool)
values <- unique(cl_metadata[[variable]])

for (i in seq_along(values)) {

cell_ids <- cl_metadata[get(variable) == values[i] & cl_metadata$duplicate_barcode == "no", cells_id]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The infamous cells_id

@@ -381,13 +386,21 @@ make_cl_metadata_cellclass <- function(variable, type, cl_metadata, color_pool)
values <- unique(cl_metadata[[variable]])

for (i in seq_along(values)) {

cell_ids <- cl_metadata[get(variable) == values[i] & cl_metadata$duplicate_barcode == "no", cells_id]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check that duplicate_barcode exists

@gerbeldo gerbeldo merged commit b6ffcb8 into hms-dbmi-cellenics:master Nov 7, 2023
10 checks passed
@gerbeldo gerbeldo deleted the handle-duplicated-barcodes branch November 7, 2023 14:23
@gerbeldo gerbeldo restored the handle-duplicated-barcodes branch November 7, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to run safe to run Marks the PR as safe to run checks on. IMPORTANT only add if from a trusted source.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants