Skip to content

Commit

Permalink
add imaging mass cytometry
Browse files Browse the repository at this point in the history
  • Loading branch information
Dert1129 committed Apr 15, 2024
1 parent 58b4e3c commit b064516
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/java/org/kpmp/DataTypeEnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public enum DataTypeEnum {
SPATIAL_LIPIDOMICS("sl"),
SPATIAL_METABOLOMICS("sm"),
SPATIAL_NGLYCOMICS("sng"),
IMAGING_MASS_CYTOMETRY("imc"),
UNKNOWN("");

private String abbreviation;
Expand Down Expand Up @@ -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;
}
}
5 changes: 4 additions & 1 deletion src/main/java/org/kpmp/FullDataTypeEnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}
15 changes: 15 additions & 0 deletions src/main/java/org/kpmp/dataSummary/DataSummaryService.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,21 @@ public List<DataTypeSummary> 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;
}
}

0 comments on commit b064516

Please sign in to comment.