From 36d7e6c4ec2f8da29159b953b89e37443ec25795 Mon Sep 17 00:00:00 2001 From: Zach Wright Date: Fri, 15 Dec 2023 12:11:03 -0500 Subject: [PATCH 1/2] KPMP-4944: RP values --- .../org/kpmp/cellTypeSummary/ClusterHierarchy.java | 10 ++++++++++ src/main/resources/knowledge_environment.graphqls | 1 + 2 files changed, 11 insertions(+) diff --git a/src/main/java/org/kpmp/cellTypeSummary/ClusterHierarchy.java b/src/main/java/org/kpmp/cellTypeSummary/ClusterHierarchy.java index 8313e73..4a26dd2 100755 --- a/src/main/java/org/kpmp/cellTypeSummary/ClusterHierarchy.java +++ b/src/main/java/org/kpmp/cellTypeSummary/ClusterHierarchy.java @@ -34,6 +34,9 @@ public class ClusterHierarchy implements Serializable { private String isSingleNucCluster; @Column(name = "is_rt") private String isRegionalTranscriptomics; + + @Column(name = "is_rp") + private String isRegionalProteomics; @Column(name = "cell_type") private String cellType; @Column(name = "cell_type_order") @@ -106,6 +109,13 @@ public void setIsRegionalTranscriptomics(String isRegionalTranscriptomics) { this.isRegionalTranscriptomics = isRegionalTranscriptomics; } + public String getIsRegionalProteomics() { + return isRegionalProteomics; + } + + public void setIsRegionalProteomics(String isRegionalProteomics) { + this.isRegionalProteomics = isRegionalProteomics; + } @Nullable public Double getCellTypeOrder() { return cellTypeOrder; diff --git a/src/main/resources/knowledge_environment.graphqls b/src/main/resources/knowledge_environment.graphqls index 62b2014..7347a64 100755 --- a/src/main/resources/knowledge_environment.graphqls +++ b/src/main/resources/knowledge_environment.graphqls @@ -137,6 +137,7 @@ type ClusterHierarchy { isSingleNucCluster: String isSingleCellCluster: String isRegionalTranscriptomics: String + isRegionalProteomics: String cellTypeOrder: Float } From da72b3470f5ee690e7f801d0b1304ccbf1969be5 Mon Sep 17 00:00:00 2001 From: Zach Wright Date: Fri, 15 Dec 2023 13:29:16 -0500 Subject: [PATCH 2/2] KPMP-4944: Fix tests --- .../kpmp/cellTypeSummary/ClusterHierarchyTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/java/org/kpmp/cellTypeSummary/ClusterHierarchyTest.java b/src/test/java/org/kpmp/cellTypeSummary/ClusterHierarchyTest.java index c0d6544..18b33b6 100755 --- a/src/test/java/org/kpmp/cellTypeSummary/ClusterHierarchyTest.java +++ b/src/test/java/org/kpmp/cellTypeSummary/ClusterHierarchyTest.java @@ -61,4 +61,16 @@ public void testSetIsSingleNucCluster() throws Exception { clusterHierarchy.setIsSingleNucCluster("N"); assertEquals("N", clusterHierarchy.getIsSingleNucCluster()); } + + @Test + public void testSetIsRPCluster() throws Exception { + clusterHierarchy.setIsRegionalProteomics("N"); + assertEquals("N", clusterHierarchy.getIsRegionalProteomics()); + } + + @Test + public void testSetIsRTCluster() throws Exception { + clusterHierarchy.setIsRegionalTranscriptomics("N"); + assertEquals("N", clusterHierarchy.getIsRegionalTranscriptomics()); + } }