GithubHelp home page GithubHelp logo

Comments (4)

Chris-Friend avatar Chris-Friend commented on September 26, 2024

The issue appears to be with the change to batching fetching the cherrypicked samples to add to the positives report. The cherrypicked samples are fetched (through lots of JOINS) using the root sample id. However, the root sample id is not unique to a sample, and fetching on such introduces the possibility of fetching duplicates/fetching the wrong cherrypicked samples.

When there was no batching, there were no duplicate fetches on root sample id, but there was the possibility that the wrong cherrypicked samples were fetched for a positive, as they were not being uniquely identified. This is still the case now, but with batching we can also fetch for the same root sample id twice, meaning we get duplicates.

A fix for both issues would be to uniquely fetch cherrypicked samples using root sample id + other fields

from lighthouse.

KatyTaylor avatar KatyTaylor commented on September 26, 2024

Deployment and testing:

  • Alter connection string variable names in psd-deployment project
  • Run report in UAT / training - check for duplicates
  • Deploy to UAT / training - inc. deploying new docker config
  • Re-run report - check duplicates are gone

linked psd-deployment PR - #160

from lighthouse.

KatyTaylor avatar KatyTaylor commented on September 26, 2024

Prod report from today 10:30:
Num positives with locations: 574,059
Num positives total: 782,647

Prod report from today 14:11 (after deploy):
Num positives with locations: 574,664 (presume some must have been scanned into LabWhere)
Num positives total: 782,635 (12 fewer, as expected from removing the duplicates)

Searching for the samples that were known duplicates in the report before, I can see that they only appear twice now rather than 4 times.
However, all the samples now say 'No' for the LIMS submission column - will revert the release

from lighthouse.

KatyTaylor avatar KatyTaylor commented on September 26, 2024

Deployed fix today and results look good, as in above comment. Known 'duplicate' samples now have one row with 'No' and one with 'Yes', as expected if one of them has been cherrypicked and one not.

pre-deploy - 117,146 yes's
post-deploy - 117,128 yes's

implies there were a few that were wrong but not duplicated, same situation I guess but happened to be processed in the same 'chunk'

from lighthouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.