Skip to content

Commit 9c8b91d

Browse files
committed
Add more metadata normalization
1 parent 2a67d91 commit 9c8b91d

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

singlecell/resources/chunks/SubsetSeurat.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ for (datasetId in names(seuratObjects)) {
22
seuratObj <- seuratObjects[[datasetId]]
33
seuratObjects[[datasetId]] <- NULL
44

5-
#TODO: remove
6-
if (!'HTO.Classification' %in% names(seuratObj@meta.data) && 'consensuscall.global' %in% names(seuratObj@meta.data)) {
7-
seuratObj$HTO.Classification <- seuratObj$consensuscall.global
8-
}
9-
10-
115
<SUBSETS>
126

137
newSeuratObjects[[datasetId]] <- seuratObj

singlecell/resources/queries/singlecell/sorts.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,25 @@ function beforeUpsert(row, oldRow, errors){
2020
row.well = row.well.toUpperCase();
2121
}
2222

23-
if (['TNF+', 'TNF Pos', 'CD69/TNF', 'CD69+/TNF+', 'CD69-Pos/TNF-Pos', 'CD69/TNFa', 'TNF+/CD69+'].indexOf(row.population) !== -1){
23+
if (['TNF+', 'TNF Pos', 'CD69/TNF', 'CD69+/TNF+', 'CD69-Pos/TNF-Pos', 'CD69/TNFa', 'TNF+/CD69+', 'CD69+/TNFa+'].indexOf(row.population) !== -1){
2424
row.population = 'TNF-Pos';
2525
}
2626
else if (['TNF-', 'CD69-/TNF-', 'TNF Neg', 'CD69-Neg/TNF-Neg'].indexOf(row.population) !== -1){
2727
row.population = 'TNF-Neg';
2828
}
29-
else if (['Bulk CD8', 'Bulk CD8 T-cells', 'Bulk-CD8', 'CD8+', 'CD8', 'CD8s'].indexOf(row.population) !== -1){
29+
else if (['Bulk CD8', 'Bulk CD8 T-cells', 'Bulk-CD8', 'CD8+', 'CD8', 'CD8s', 'BULK CD8'].indexOf(row.population) !== -1){
3030
row.population = 'Bulk CD8s';
3131
}
3232
else if (['CD8-CD69-Pos', 'CD69-Pos/TNF-Neg', 'TNF-/CD69+', 'CD69+', 'CD69+/TNF-'].indexOf(row.population) !== -1){
3333
row.population = 'CD69-Pos';
3434
}
35+
else if (['perLN', 'PerLN'].indexOf(row.population) !== -1){
36+
row.population = 'pLN';
37+
}
38+
39+
if (['perLN', 'PerLN'].indexOf(row.tissue) !== -1){
40+
row.tissue = 'pLN';
41+
}
3542

3643
//Naive cells
3744
if (row.population && row.population.match(/ï/)){

singlecell/resources/web/singlecell/panel/PoolImportPanel.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
100100
},{
101101
name: 'hto_library_conc',
102102
labels: ['HTO Library Conc', 'HTO Library Conc (ng/uL)', 'HTO (qubit) ng/uL', 'HTO (quibit) ng/uL', 'MultiSeq Library Conc', 'MultiSeq Library (qubit) ng/uL', 'MultiSeq Library Conc (qubit) ng/uL'],
103-
allowRowSpan: true
103+
allowRowSpan: true,
104+
transform: 'citeSeqPanel'
104105
},{
105106
name: 'citeseqpanel',
106107
labels: ['Cite-Seq Panel', 'Cite-Seq Panel Name', 'CiteSeq Panel', 'citeseqpanel'],
@@ -213,6 +214,12 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
213214
return val;
214215
},
215216

217+
citeSeqPanel: function(val, panel) {
218+
if (val && val.toLower() === 'no') {
219+
return null;
220+
}
221+
},
222+
216223
citeSeqTenXBarcode: function(val, panel){
217224
if (!val){
218225
return;
@@ -858,7 +865,7 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
858865
}
859866

860867
var requireTCR = this.down('#requireTCR').getValue();
861-
rs = this.processReadsetForGroup(poolName, rowArr, ret.readsetRows, 'tcr', 'TCR', 'RNA-seq, Single Cell', '10x 5\' VDJ (Rhesus A/B/G)');
868+
rs = this.processReadsetForGroup(poolName, rowArr, ret.readsetRows, 'tcr', 'TCR', 'RNA-seq, Single Cell', '10x 5\' VDJ (Rhesus A/B/D/G)');
862869
if (Ext4.isString(rs)) {
863870
readsetGUIDs.tcrReadsetGUID = rs;
864871
}

0 commit comments

Comments
 (0)