diff --git a/src/main/java/org/kpmp/DataTypeEnum.java b/src/main/java/org/kpmp/DataTypeEnum.java index 1dbb22a..a53da8a 100755 --- a/src/main/java/org/kpmp/DataTypeEnum.java +++ b/src/main/java/org/kpmp/DataTypeEnum.java @@ -14,6 +14,7 @@ public enum DataTypeEnum { SPATIAL_LIPIDOMICS("sl"), SPATIAL_METABOLOMICS("sm"), SPATIAL_NGLYCOMICS("sng"), + IMAGING_MASS_CYTOMETRY("imc"), UNKNOWN(""); private String abbreviation; @@ -49,7 +50,9 @@ public static DataTypeEnum fromAbbreviation(String abbreviation) { return SPATIAL_METABOLOMICS; } else if (SPATIAL_NGLYCOMICS.abbreviation.equals(abbreviation)) { return SPATIAL_NGLYCOMICS; - } + }else if (IMAGING_MASS_CYTOMETRY.abbreviation.equals(abbreviation)){ + return IMAGING_MASS_CYTOMETRY; + } return UNKNOWN; } } diff --git a/src/main/java/org/kpmp/FullDataTypeEnum.java b/src/main/java/org/kpmp/FullDataTypeEnum.java index f0eab0b..d5d4b8a 100755 --- a/src/main/java/org/kpmp/FullDataTypeEnum.java +++ b/src/main/java/org/kpmp/FullDataTypeEnum.java @@ -14,6 +14,7 @@ public enum FullDataTypeEnum { SPATIAL_LIPIDOMICS_FULL("Spatial Lipidomics"), SPATIAL_METABOLOMICS_FULL("Spatial Metabolomics"), SPATIAL_NGLYCOMICS_FULL("Spatial N-glycomics"), + IMAGING_MASS_CYTOMETRY_FULL("Imaging Mass Cytometry"), UNKNOWN_FULL(""); private String dataEnum; @@ -49,7 +50,9 @@ public static FullDataTypeEnum fromLong(String dataEnum) { return SPATIAL_METABOLOMICS_FULL; } else if (SPATIAL_NGLYCOMICS_FULL.dataEnum.equals(dataEnum)) { return SPATIAL_NGLYCOMICS_FULL; - } + }else if (IMAGING_MASS_CYTOMETRY_FULL.dataEnum.equals(dataEnum)){ + return IMAGING_MASS_CYTOMETRY_FULL; + } return UNKNOWN_FULL; } } diff --git a/src/main/java/org/kpmp/dataSummary/DataSummaryService.java b/src/main/java/org/kpmp/dataSummary/DataSummaryService.java index 3e241fc..e7c6735 100755 --- a/src/main/java/org/kpmp/dataSummary/DataSummaryService.java +++ b/src/main/java/org/kpmp/dataSummary/DataSummaryService.java @@ -240,6 +240,21 @@ public List getSummaryData() { FullDataTypeEnum.SPATIAL_NGLYCOMICS_FULL.getFullName()), dataSummaryRepository .getParticipantSummaryLinkCount(FullDataTypeEnum.SPATIAL_NGLYCOMICS_FULL.getFullName()))); + + summaryData.add(new DataTypeSummary(OmicsTypeEnum.TRANSCRIPTOMICS.getEnum(), + FullDataTypeEnum.IMAGING_MASS_CYTOMETRY_FULL.getFullName(), + DataTypeEnum.IMAGING_MASS_CYTOMETRY.getAbbreviation(), + dataSummaryRepository.getDataSummaryLinkCount(TissueTypeEnum.AKI.getParticipantTissueType(), + FullDataTypeEnum.IMAGING_MASS_CYTOMETRY_FULL.getFullName()), + dataSummaryRepository.getDataSummaryLinkCount(TissueTypeEnum.CKD.getParticipantTissueType(), + FullDataTypeEnum.IMAGING_MASS_CYTOMETRY_FULL.getFullName()), + dataSummaryRepository.getDataSummaryLinkCount( + TissueTypeEnum.HEALTHY_REFERENCE.getParticipantTissueType(), + FullDataTypeEnum.IMAGING_MASS_CYTOMETRY_FULL.getFullName()), + dataSummaryRepository.getDataSummaryLinkCount(TissueTypeEnum.DMR.getParticipantTissueType(), + FullDataTypeEnum.IMAGING_MASS_CYTOMETRY_FULL.getFullName()), + dataSummaryRepository + .getParticipantSummaryLinkCount(FullDataTypeEnum.IMAGING_MASS_CYTOMETRY_FULL.getFullName()))); return summaryData; } }