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

Y24-429 - Check feasibility of cDNA Prep submission #4460

Open
4 tasks
KatyTaylor opened this issue Oct 25, 2024 · 0 comments
Open
4 tasks

Y24-429 - Check feasibility of cDNA Prep submission #4460

KatyTaylor opened this issue Oct 25, 2024 · 0 comments
Labels
Feature Flag A clean-up story for a feature flag scRNA - cDNA prep scRNA Size: L Large - large effort & risk

Comments

@KatyTaylor
Copy link
Contributor

KatyTaylor commented Oct 25, 2024

User story

As a customer and SSR of the scRNA Core cDNA Prep pipeline, I want to be told at the point of submission if my requested pooling strategy is not feasible, so that I can adjust it at this stage (rather than getting to the point of pooling, when there is time pressure).

Who are the primary contacts for this story

Abby, Katy

Who is the nominated tester for UAT

Abby, Liz Huckle

Acceptance criteria

Consider if these features can be featured flagged to decouple testing and deployment.

On upload of the scRNA Core cDNA Prep submission, reject the submission with an informative error message if the following criteria are not met:

  • Total number of samples in the submission must be between 5 and 96 (inclusive).
  • Total (requested) number of pools must be between 1 and 8 (inclusive) (see Calculations for how)
  • The number of pools requested must be feasible given the number of samples, and having checked for donor clash (see Calculations for how)

On upload of the scRNA Core cDNA Prep submission, accept the submission but add an informative warning message if the following criteria are met:

  • There is not enough material for the "full allowance" (2 full runs on the chip) (See Calculations for how)

References

This story does some of the same calculations as sanger/limber#1992 - consider whether to share code.


Calculations

Calculating total number of pools

  • Split the rows into study-project groups.
  • The 'number of pools' applies at that level - grab one number for this column for each of those groups and add them up.
  • e.g. Study A-Project A asks for 1 pool, Study A-Project B asks for 2 pools, Study C-Project C asks for 5 pools --> total pools is 1 + 2 + 5 = 8 --> passes

Checking if the number of pools is feasible, given number of samples

For each study-project group:

  • Smallest pool = Number of samples / number of pools (floor division)
  • Biggest pool = Smallest pool + 1
  • e.g. 21 samples, 2 pools requested. Smallest pool will be 10, biggest pool 11.
  • Check both smallest pool and biggest pool are between 5 and 25 (inclusive).

Checking for donor clash

For each study-project group:

  • Group the samples by their donor id.
  • Find the biggest group (will be 1 if all samples have unique donor ids)
  • Check size of biggest group <= requested number of pools.

Checking if there is enough for 'full allowance'

Common constants / variables:

  • "Chip loading concentration" = 2,400

For each study-project combination:

Calculating "final resuspension volume":

  • "Total cells in 300ul" = ("Number of samples in smallest pool" * 30,000) * 0.952381
    • 30,000 is the fixed number of cells taken for each sample into the pool
    • 0.95 is due to wastage when transferring between labware
  • "Final resuspension volume" = "Total cells in 300ul" / "Chip loading concentration"

Calculating "full allowance":

  • "Chip loading volume" = "Number of cells per chip well" / "Chip loading concentration"

  • "Full allowance" = ( "Chip loading volume" * 2) + 25

    • 2 is because this is for 2 runs
    • 25 is 2 lots of 10ul for cell counting, and 5ul for wastage when transferring between labware
@KatyTaylor KatyTaylor changed the title Check feasibility of cDNA Prep submission Check feasibility of cDNA Prep submission [DRAFT] Oct 25, 2024
@KatyTaylor KatyTaylor added scRNA scRNA - cDNA prep Size: L Large - large effort & risk labels Oct 25, 2024
@psd-issuer psd-issuer bot changed the title Check feasibility of cDNA Prep submission [DRAFT] Y24-429 - Check feasibility of cDNA Prep submission Oct 25, 2024
@StephenHulme StephenHulme added the Feature Flag A clean-up story for a feature flag label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Flag A clean-up story for a feature flag scRNA - cDNA prep scRNA Size: L Large - large effort & risk
Projects
None yet
Development

No branches or pull requests

2 participants