Skip to content

Request filtering logic

divyamadala30 edited this page Apr 26, 2022 · 1 revision

smile-request-filter pass/fail request logic:

  1. Request Metadata checks:

    1. Request json should not be null or empty
    2. Request should have a valid requestId
    3. If the request is non-cmo and the cmo request filter is set to True then the request will be logged
  2. Non-CMO sample metadata checks:

    1. Sample json should not be null or empty
    2. baitSet should not be null or empty
    3. normalizedPatientId can be found in cmoSampleIdFields and should not be null or empty
  3. CMO sample metadata checks:

    1. Sample json should not be null or empty
    2. Sample should have the following valid fields:
      1. investigatorId should not be null or empty
      2. igoId should not be null or empty
      3. baitSet should not be null or empty
      4. cmoPatientId should not be null or empty
      5. normalizedPatientId can be found in cmoSampleIdFields and should not be null or empty
      6. fastQs can be found in libraries -> runs
      7. specimenType:
        • If specimenType is null or empty, check if sample metadata has a valid cmoSampleClass
        • If specimenType is CELLLINE, PDX, XENOGRAFT, XENOGRAFTDERIVEDCELLLINE or ORGANOID, check if sample metadata has a valid cmoSampleClass
        • If specimenType is EXOSOME or CFDNA, check if sample metadata has a valid sampleOrigin
        • If none of cases above apply, then specimenType is valid
      8. sampleType:
        • If sampleType is null or empty, check if sample metadata has a valid naToExtract
        • If sampleType is POOLED_LIBRARY , check if sample metadata has a valid baitSet
Clone this wiki locally