@@ -126,7 +126,15 @@ Ext4.define('SingleCell.panel.cDNAImportPanel', {
126126 xtype : 'checkbox' ,
127127 fieldLabel : 'Combined Hashing and Cite-Seq Libraries' ,
128128 itemId : 'combineHashingCite' ,
129- checked : false
129+ checked : false ,
130+ listeners : {
131+ change : function ( field , val ) {
132+ if ( val ) {
133+ // The combined library only makes sense if using BioLegend:
134+ field . up ( 'panel' ) . down ( '#hashingType' ) . setValue ( 'BioLegend' ) ;
135+ }
136+ }
137+ }
130138 } , {
131139 xtype : 'checkbox' ,
132140 fieldLabel : 'Require Library Concentrations' ,
@@ -343,7 +351,7 @@ Ext4.define('SingleCell.panel.cDNAImportPanel', {
343351 var toInsert = data . readsetRows . filter ( r => r . doInsert )
344352 if ( ! toInsert . length ) {
345353 Ext4 . Msg . hide ( ) ;
346- Ext4 . Msg . alert ( 'Success ' , 'Data Saved ' , function ( ) {
354+ Ext4 . Msg . alert ( 'No Rows To Save ' , 'None of the rows needed to be saved. This might mean they already exist, or could indicate a problem with the import ' , function ( ) {
347355 window . location = LABKEY . ActionURL . buildURL ( 'query' , 'executeQuery.view' , Laboratory . Utils . getQueryContainerPath ( ) , { 'query.queryName' : 'cdna_libraries' , schemaName : 'singlecell' , 'query.sort' : '-created' } ) ;
348356 } , this ) ;
349357 }
@@ -378,12 +386,12 @@ Ext4.define('SingleCell.panel.cDNAImportPanel', {
378386 baseRow . tcrReadsetId = tcrReadsetId ;
379387 }
380388
381- var htoReadsetId = readsetMap [ row . plateId + '-HTO' ] ;
389+ var htoReadsetId = readsetMap [ row . plateId + '-HTO' ] || readsetMap [ row . plateId + '-HTO-CITE' ] ;
382390 if ( htoReadsetId ) {
383391 baseRow . hashingReadsetId = htoReadsetId ;
384392 }
385393
386- var citeseqReadsetId = readsetMap [ row . plateId + '-CITE' ] ;
394+ var citeseqReadsetId = readsetMap [ row . plateId + '-CITE' ] || readsetMap [ row . plateId + '-HTO-CITE' ] ;
387395 if ( citeseqReadsetId ) {
388396 baseRow . citeseqReadsetId = citeseqReadsetId ;
389397 }
@@ -421,6 +429,16 @@ Ext4.define('SingleCell.panel.cDNAImportPanel', {
421429 scope : this
422430 } ) ;
423431 }
432+ else {
433+ Ext4 . Msg . hide ( ) ;
434+ Ext4 . Msg . alert ( 'Success' , 'Data Saved' , function ( ) {
435+ window . location = LABKEY . ActionURL . buildURL ( 'query' , 'executeQuery.view' , Laboratory . Utils . getQueryContainerPath ( ) , {
436+ 'query.queryName' : 'cdna_libraries' ,
437+ schemaName : 'singlecell' ,
438+ 'query.sort' : '-created'
439+ } ) ;
440+ } , this ) ;
441+ }
424442 } ,
425443 failure : LDK . Utils . getErrorCallback ( ) ,
426444 scope : this
0 commit comments