Skip to content

Commit f071e44

Browse files
committed
wts2-1748/sprt-106/PWI CL Browser: add count of HT samples
1 parent 008feb7 commit f071e44

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/main/java/org/jax/mgi/mgd/api/model/voc/service/TermService.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,13 +742,20 @@ public void addAnnotCount(TermDomain term) {
742742
@Transactional
743743
// Returns the number of direct gxdhtsamples to the given term.
744744
// The vocabKey indicates which kind of term it is:
745-
// 90=EMAPA, 91=EMAPS
745+
// 102=cell type, 90=EMAPA, 91=EMAPS
746746
// If vocabKey is not one of these, no action is taken.
747747
public void addGXDHTSampleCount(TermDomain term) {
748748
String termKey = term.getTermKey();
749749
String vocabKey = term.getVocabKey();
750750
String cmd;
751751
switch (vocabKey) {
752+
case "102":
753+
// CellType
754+
cmd = "\nselect count(*) as sampleCt" +
755+
"\nfrom gxd_htsample" +
756+
"\nwhere _celltype_term_key = " + termKey
757+
;
758+
break;
752759
case "90":
753760
// EMAPA
754761
cmd = "\nselect count(*) as sampleCt" +

0 commit comments

Comments
 (0)