Skip to content

Commit

Permalink
[GLT-4101] added new metrics for cfMeDIPs
Browse files Browse the repository at this point in the history
  • Loading branch information
djcooke committed Mar 7, 2024
1 parent 4ec8084 commit dc3fdbb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/add_cfmedips_metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
New metrics for cfMeDIPs assays
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<dependency>
<groupId>ca.on.oicr.gsi.cardea</groupId>
<artifactId>cardea-data</artifactId>
<version>1.8.0</version>
<version>1.8.1-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -184,4 +184,4 @@
</plugins>
</build>

</project>
</project>
9 changes: 9 additions & 0 deletions ts/data/sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ export interface Sample extends Qcable {
puc19Clusters?: number;
latestActivityDate: string;
sequencingLane: string;
relativeCpgInRegions?: number;
methylationBeta?: number;
peReads?: number;
}

interface MisoRunLibraryMetric {
Expand Down Expand Up @@ -1179,6 +1182,12 @@ function getMetricValue(metricName: string, sample: Sample): number | null {
return nullIfUndefined(sample.puc19Methylation);
case "pUC19 Clusters":
return nullIfUndefined(sample.puc19Clusters);
case "Relative CpG Frequency in Regions":
return nullIfUndefined(sample.relativeCpgInRegions);
case "Methylation Beta":
return nullIfUndefined(sample.methylationBeta);
case "PE Reads":
return nullIfUndefined(sample.peReads);
}
if (/^Concentration/.test(metricName)) {
return nullIfUndefined(sample.concentration);
Expand Down

0 comments on commit dc3fdbb

Please sign in to comment.