Skip to content

Commit fe16b3d

Browse files
committed
Merge discvr-25.11 to develop
2 parents 5f310dc + 6373564 commit fe16b3d

33 files changed

+430
-41
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ updates:
44
- package-ecosystem: "github-actions"
55
directory: "/"
66
schedule:
7-
interval: "daily"
7+
interval: "weekly"

IDR/resources/queries/bimber_data/idrAnchorDateSource.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PID0 as date,
77

88
FROM bimber_data.subjects
99
WHERE PID0 IS NOT NULL
10+
AND Cohort NOT IN ('PC549', 'PC585', 'PC529') AND Cohort NOT LIKE 'W%'
1011

1112
UNION ALL
1213

@@ -18,4 +19,5 @@ D0 as date,
1819
'Hansen/IDR' as dataSource
1920

2021
FROM bimber_data.subjects
21-
WHERE D0 IS NOT NULL
22+
WHERE D0 IS NOT NULL
23+
AND Cohort NOT IN ('PC549', 'PC585', 'PC529') AND Cohort NOT LIKE 'W%'

IDR/resources/queries/bimber_data/idrOutcomeSource.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ END as outcome,
1212
'Hansen/IDR' as dataSource
1313

1414
FROM bimber_data.subjects
15-
WHERE contprog IS NOT NULL AND contprog != ''
15+
WHERE contprog IS NOT NULL AND contprog != ''
16+
AND Cohort NOT IN ('PC549', 'PC585', 'PC529') AND Cohort NOT LIKE 'W%'

SivStudies/resources/etls/idr-data.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
<setting name="dataSourceColumns" value="Rh,PID0"/>
126126
<setting name="dataSourceColumnMapping" value="Rh=Id,PID0=date"/>
127127
<setting name="dataSourceColumnDefaults" value="dataSource=Hansen/IDR;category=SIV Infection;treatment=SIV - Unknown"/>
128-
<setting name="dataSourceAdditionalFilters" value="PID0~isnonblank="/>
128+
<setting name="dataSourceAdditionalFilters" value="PID0~isnonblank=;Cohort~neqornull=PC549;Cohort~neqornull=PC585;Cohort~neqornull=W1170;Cohort~neqornull=W1173;Cohort~neqornull=PC529"/>
129129

130130
<setting name="targetSchema" value="study"/>
131131
<setting name="targetQuery" value="treatments"/>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<query xmlns="http://labkey.org/data/xml/query">
2+
<metadata>
3+
<tables xmlns="http://labkey.org/data/xml">
4+
<table tableName="studies" tableDbType="TABLE" useColumnOrder="false">
5+
<columns>
6+
<column columnName="studySummary" wrappedColumnName="rowId">
7+
<isUnselectable>true</isUnselectable>
8+
<shownInInsertView>false</shownInInsertView>
9+
<shownInUpdateView>false</shownInUpdateView>
10+
<columnTitle>Summary Information</columnTitle>
11+
<fk>
12+
<fkDbSchema>studies</fkDbSchema>
13+
<fkTable>studiesSummary</fkTable>
14+
<fkColumnName>rowId</fkColumnName>
15+
</fk>
16+
</column>
17+
</columns>
18+
</table>
19+
</tables>
20+
</metadata>
21+
</query>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<customView xmlns="http://labkey.org/data/xml/queryCustomView" hidden="false" canOverride="false">
2+
<columns>
3+
<column name="rowId"/>
4+
<column name="studyName"/>
5+
<column name="label"/>
6+
<column name="category"/>
7+
<column name="description"/>
8+
<column name="cohorts"/>
9+
<column name="studySummary/numAnimals"/>
10+
<column name="studySummary/sexes"/>
11+
<column name="studySummary/challenges"/>
12+
<column name="studySummary/artInitiationsDPI"/>
13+
<column name="studySummary/interventions"/>
14+
</columns>
15+
<sorts>
16+
<sort column="studyName" descending="false"/>
17+
</sorts>
18+
</customView>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<query xmlns="http://labkey.org/data/xml/query">
2+
<metadata>
3+
<tables xmlns="http://labkey.org/data/xml">
4+
<table tableName="studiesSummary" tableDbType="TABLE" useColumnOrder="true">
5+
<tableTitle>Studies Summary</tableTitle>
6+
<columns>
7+
<column columnName="rowId">
8+
9+
</column>
10+
<column columnName="labelOrName">
11+
12+
</column>
13+
<column columnName="description">
14+
15+
</column>
16+
<column columnName="cohorts">
17+
18+
</column>
19+
<column columnName="numAnimals">
20+
<columnTitle># Animals</columnTitle>
21+
</column>
22+
<column columnName="sexes">
23+
<columnTitle>Sex(es)</columnTitle>
24+
</column>
25+
<column columnName="challenges">
26+
<columnTitle>SIV Challenges</columnTitle>
27+
</column>
28+
<column columnName="artInitiationsDPI">
29+
<columnTitle>ART Initiation(s) (DPI)</columnTitle>
30+
</column>
31+
<column columnName="interventions">
32+
<columnTitle>Interventions</columnTitle>
33+
</column>
34+
</columns>
35+
</table>
36+
</tables>
37+
</metadata>
38+
</query>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SELECT
2+
s.rowId,
3+
s.labelOrName,
4+
s.description,
5+
group_concat(DISTINCT a.cohortId.labelOrName, char(10)) as cohorts,
6+
count(DISTINCT a.Id) as numAnimals,
7+
group_concat(DISTINCT a.DataSets.Demographics.sex) as sexes,
8+
group_concat(DISTINCT a.sivArt.allInfections, char(10)) as challenges,
9+
group_concat(DISTINCT a.sivArt.artInitiationDPI, char(10)) as artInitiationsDPI,
10+
group_concat(DISTINCT a.interventions.allInterventions, char(10)) as interventions,
11+
12+
13+
FROM studies.studies s
14+
LEFT JOIN study.assignment a ON (a.cohortId.studyId = s.rowId)
15+
16+
GROUP BY s.rowId, s.labelOrName, s.description
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<query xmlns="http://labkey.org/data/xml/query">
2+
<metadata>
3+
<tables xmlns="http://labkey.org/data/xml">
4+
<table tableName="studiesSummary" tableDbType="TABLE" useColumnOrder="true">
5+
<tableTitle>Study Cohort Summary</tableTitle>
6+
<columns>
7+
<column columnName="rowId">
8+
9+
</column>
10+
<column columnName="studyName">
11+
<columnTitle>Study Name</columnTitle>
12+
</column>
13+
<column columnName="description">
14+
15+
</column>
16+
<column columnName="labelOrName">
17+
<columnTitle>Cohort Name</columnTitle>
18+
</column>
19+
<column columnName="numAnimals">
20+
<columnTitle># Animals</columnTitle>
21+
</column>
22+
<column columnName="sexes">
23+
<columnTitle>Sex(es)</columnTitle>
24+
</column>
25+
<column columnName="challenges">
26+
<columnTitle>SIV Challenges</columnTitle>
27+
</column>
28+
<column columnName="artInitiationsDPI">
29+
<columnTitle>ART Initiation(s) (DPI)</columnTitle>
30+
</column>
31+
<column columnName="interventions">
32+
<columnTitle>Interventions</columnTitle>
33+
</column>
34+
</columns>
35+
</table>
36+
</tables>
37+
</metadata>
38+
</query>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SELECT
2+
sc.rowId,
3+
sc.studyId.labelOrName as studyName,
4+
sc.labelOrName,
5+
sc.studyId.description,
6+
count(DISTINCT a.Id) as numAnimals,
7+
group_concat(DISTINCT a.DataSets.Demographics.sex) as sexes,
8+
group_concat(DISTINCT a.sivArt.allInfections, char(10)) as challenges,
9+
group_concat(DISTINCT a.sivArt.artInitiationDPI, char(10)) as artInitiationsDPI,
10+
group_concat(DISTINCT a.interventions.allInterventions, char(10)) as interventions
11+
12+
13+
FROM studies.studyCohorts sc
14+
LEFT JOIN study.assignment a ON (a.cohortId = sc.rowId)
15+
16+
GROUP BY sc.rowId, sc.labelOrName, sc.studyId.description, sc.studyId.labelOrName

0 commit comments

Comments
 (0)