Skip to content

Commit 65db685

Browse files
committed
Expand duplicated prototype query
1 parent 4501fe3 commit 65db685

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

singlecell/resources/queries/singlecell/duplicatePrototypes.query.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<metadata>
33
<tables xmlns="http://labkey.org/data/xml">
44
<table tableName="" useColumnOrder="false" tableDbType="TABLE">
5-
<tableTitle>Duplicated Seurat Object Prototypes</tableTitle>
5+
<tableTitle>Duplicated Seurat Object Prototypes and Loupe Files</tableTitle>
66
<columns>
77
<column columnName="readset">
88
<columnTitle>Readset Id</columnTitle>

singlecell/resources/queries/singlecell/duplicatePrototypes.sql

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,24 @@ SELECT
22
o.readset,
33
min(o.rowId) as minRowId,
44
min(o.analysis_id) as minAnalysisId,
5-
count(*) as totalPrototypes
5+
count(*) as totalPrototypes,
6+
o.category
67

78
FROM sequenceanalysis.outputfiles o
89
WHERE o.category = 'Seurat Object Prototype'
910
GROUP BY o.readset
11+
HAVING COUNT(*) > 1
12+
13+
UNION ALL
14+
15+
SELECT
16+
o.readset,
17+
min(o.rowId) as minRowId,
18+
min(o.analysis_id) as minAnalysisId,
19+
count(*) as totalPrototypes,
20+
o.category
21+
22+
FROM sequenceanalysis.outputfiles o
23+
WHERE o.category = '10x Loupe File'
24+
GROUP BY o.readset
1025
HAVING COUNT(*) > 1

singlecell/resources/views/singleCellDataManagement.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
queryName: 'stalePrototypes'
131131
})
132132
}, {
133-
name: 'Duplicate Seurat Object Prototypes',
133+
name: 'Duplicate Seurat Object Prototypes and Loupe Files',
134134
url: LABKEY.ActionURL.buildURL('query', 'executeQuery.view', null, {
135135
schemaName: 'singlecell',
136136
queryName: 'duplicatePrototypes'

0 commit comments

Comments
 (0)