Skip to content

Commit 322e952

Browse files
committed
Support dual indexes for 10x import
1 parent b0f6588 commit 322e952

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

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

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,19 +496,29 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
496496
field.up('panel').down('#requireCITE').setValue(!val);
497497
}
498498
}
499+
},{
500+
xtype: 'checkbox',
501+
fieldLabel: 'Use 10x V2/HT (Dual Index)',
502+
itemId: 'useDualIndex',
503+
listeners: {
504+
change: function(field, val){
505+
field.up('panel').down('#barcodeSeries').setValue(field.getValue() ? 'SI-TT' : 'SI-GA');
506+
field.up('panel').down('#citeseqBarcodeSeries').setValue(field.getValue() ? 'SI-TN' : 'SI-NA');
507+
}
508+
}
499509
},{
500510
xtype: 'ldk-simplecombo',
501511
fieldLabel: '10x GEX/TCR Barcode Series',
502512
itemId: 'barcodeSeries',
503513
forceSelection: true,
504-
storeValues: ['SI-GA'],
514+
storeValues: ['SI-GA', 'SI-TT'],
505515
value: 'SI-GA'
506516
},{
507517
xtype: 'ldk-simplecombo',
508518
fieldLabel: '10x Cite-Seq Barcode Series',
509519
itemId: 'citeseqBarcodeSeries',
510520
forceSelection: true,
511-
storeValues: ['SI-NA'],
521+
storeValues: ['SI-NA', 'SI-TN'],
512522
value: 'SI-NA'
513523
},{
514524
xtype: 'ldk-simplelabkeycombo',
@@ -913,10 +923,11 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
913923
}
914924
workbook = workbook.length === 1 ? workbook[0] : null;
915925

916-
var subjectid = this.getUniqueValues(rowArr, 'subjectId');
926+
let subjectid = this.getUniqueValues(rowArr, 'subjectId');
917927
subjectid = subjectid.length === 1 ? subjectid[0] : null;
918928

919-
var requireConc = this.down('#requireConc').getValue();
929+
const requireConc = this.down('#requireConc').getValue();
930+
const isDualIndex = this.down('#useDualIndex').getValue();
920931

921932
if (idxValues.length === 1){
922933
if (requireConc && !conc[0]) {
@@ -927,7 +938,8 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
927938
LDK.Assert.assertNotEmpty('Expected non-null workbook', workbook);
928939
readsetRows.push({
929940
name: poolName + '-' + type,
930-
barcode5: idxValues[0],
941+
barcode5: isDualIndex ? idxValues[0] + '_F' : idxValues[0],
942+
barcode3: isDualIndex ? idxValues[0] + '_R' : null,
931943
concentration: conc[0],
932944
fragmentSize: fragment[0],
933945
platform: 'ILLUMINA',

0 commit comments

Comments
 (0)