ebi-gene-expression-group / atlas-heatmap

Heatmap visualizing bulk Expression Atlas data
8 stars 2 forks source link

Feature/180446075 change experiment type utils to allow Proteomics Baseline Dia Swath #31

Closed upendrakumbham closed 2 years ago

upendrakumbham commented 2 years ago

Existing codebase:

const isBaseline = experiment =>
  !isMultiExperiment(experiment) && experiment.type.toUpperCase().endsWith(`BASELINE`)

The above codebase doesn't work for the experiment type "PROTEOMICS_BASELINE_DIA_SWATH" as it's not ending with BASELINE.

So, this PR accommodates both experiment types: Proteomics Baseline and Proteomics Baseline Dia Swath.