Skip to content

Commit 10f7c87

Browse files
committed
Improve data validation
1 parent b2f6e9c commit 10f7c87

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<query xmlns="http://labkey.org/data/xml/query">
2+
<metadata>
3+
<tables xmlns="http://labkey.org/data/xml">
4+
<table tableName="duplicatePVLs" tableDbType="NOT_IN_DB">
5+
<tableTitle>Duplicate PVLs</tableTitle>
6+
<columns>
7+
8+
</columns>
9+
</table>
10+
</tables>
11+
</metadata>
12+
</query>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
SELECT
2+
t.Id,
3+
t.date,
4+
t.sampleType,
5+
t.assayType,
6+
t.target,
7+
t.result,
8+
t.dataSource
9+
10+
FROM study.viralLoads t
11+
12+
WHERE t.lsid IN (SELECT lsid FROM study.viralLoads v GROUP BY v.Id, v.date, v.sampleType, v.assayType HAVING count(*) > 1)

SivStudies/src/org/labkey/sivstudies/etl/PerformManualIdrStepsTask.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ private void pruneSivChallenges(PipelineJob pipelineJob) throws PipelineJobExcep
9595
private static final Pattern mir126_RE = Pattern.compile("miR[- ]{0,1}126", Pattern.CASE_INSENSITIVE);
9696
private static final Pattern mir142_RE = Pattern.compile("miR[- ]{0,1}142", Pattern.CASE_INSENSITIVE);
9797
private static final Pattern mir126_142_RE = Pattern.compile("miR[- ]{0,1}142[ ,-]{1,2}126", Pattern.CASE_INSENSITIVE);
98+
private static final Pattern pp71_RE = Pattern.compile("pp71", Pattern.CASE_INSENSITIVE);
9899

99100
private void updateVaccineInformation(PipelineJob pipelineJob) throws PipelineJobException
100101
{
@@ -133,6 +134,10 @@ else if (treatment.contains("RhCMV") && treatment.contains("d186-189"))
133134
{
134135
updatedRow.put("backbone", "68-1 d186-189");
135136
}
137+
else if (treatment.contains("RhCMV") && treatment.contains("pp71"))
138+
{
139+
updatedRow.put("backbone", "68-1 delta-pp71");
140+
}
136141
}
137142

138143
if (treatment.toUpperCase().contains("MOCK"))

0 commit comments

Comments
 (0)