Skip to content

Commit f91af88

Browse files
committed
Minor cleanup
1 parent 1061b15 commit f91af88

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

Studies/src/org/labkey/studies/query/ResultsOOODisplayColumn.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ public Object getDisplayValue(RenderContext ctx)
3131
return null;
3232
}
3333

34-
String oor = ctx.get(getOOR(), String.class);
35-
if (StringUtils.isEmpty(oor))
36-
{
37-
return result;
38-
}
39-
4034
if (getBoundColumn().getFormat() != null)
4135
{
4236
DecimalFormat fmt = new DecimalFormat(getBoundColumn().getFormat());
4337
result = fmt.format(result);
4438
}
4539

40+
String oor = ctx.get(getOOR(), String.class);
41+
if (StringUtils.isEmpty(oor))
42+
{
43+
return result;
44+
}
45+
4646
return oor + result;
4747
}
4848

singlecell/resources/queries/singlecell/samples.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ function beforeUpsert(row, oldRow, errors){
2323
else if (['No stim', 'No Stim'].indexOf(row.stim) !== -1){
2424
row.stim = 'NoStim';
2525
}
26+
else if (['Infected cells: SIV+', 'Infected Cells: SIV+'].indexOf(row.stim) !== -1){
27+
row.stim = 'SIV-Infected CD4s';
28+
}
29+
else if (['Infected cells: SIV-', 'Infected Cells: SIV-'].indexOf(row.stim) !== -1){
30+
row.stim = 'SIV-Infected CD4s / SIV-';
31+
}
32+
else if (['Infected cells: Mock', 'Infected Cells: Mock'].indexOf(row.stim) !== -1){
33+
row.stim = 'Mock-Infected CD4s';
34+
}
2635

2736
var lookupFields = ['stim'];
2837
for (var i=0;i<lookupFields.length;i++){

0 commit comments

Comments
 (0)