@@ -113,7 +113,6 @@ new Vue({
113113 sortable : true ,
114114 formatter : Formatters . tpmFormatter ,
115115 } ,
116- { key : "expand" , label : "Gene expression by variable" } ,
117116 ] ,
118117 queryParam : "gene" ,
119118 subtableEndpoint : "single-cell-bulk-melted" ,
@@ -204,7 +203,9 @@ new Vue({
204203 return null ;
205204 }
206205 let items = Object . keys ( allComps ) ;
207- return items . filter ( i => allComps [ i ] . type === this . $store . state . selectedCompType ) ;
206+ return items . filter ( i =>
207+ allComps [ i ] . type === this . $store . state . selectedCompType
208+ && allComps [ i ] . amp === this . $store . state . selectedAMP ) ;
208209 } ,
209210 comptypes ( ) {
210211 if ( ! this . $store . state . currentComparisons ) {
@@ -217,6 +218,17 @@ new Vue({
217218 }
218219 return typeArray ;
219220 } ,
221+ amps ( ) {
222+ if ( ! this . $store . state . currentComparisons ) {
223+ return null ;
224+ }
225+ let types = Object . values ( this . $store . state . currentComparisons ) . map ( v => v . amp ) ;
226+ let typeArray = Array . from ( new Set ( types ) ) ;
227+ if ( this . $store . state . selectedAMP === "" ) {
228+ this . $store . state . selectedAMP = typeArray [ 0 ] ;
229+ }
230+ return typeArray ;
231+ } ,
220232 upregulatedIn ( ) {
221233 if ( this . $store . state . selectedDataset === 'bulkRNA_Emont2022_Humans_SAT' ) {
222234 return 'insulin resistant' ;
@@ -276,8 +288,6 @@ new Vue({
276288 }
277289 this . getParams ( ) ;
278290 await this . $store . dispatch ( "queryBulkFile" ) ;
279- await this . $store . dispatch ( "queryBulk" ) ;
280-
281291 await this . populateEnrichr ( ) ;
282292 this . dataReady = true ;
283293 } ,
@@ -350,7 +360,6 @@ new Vue({
350360 // Reset highlighted gene upon changing dataset
351361 await this . $store . dispatch ( "firstGene" ) ;
352362 await this . $store . dispatch ( "queryBulkFile" ) ;
353- await this . $store . dispatch ( "queryBulk" ) ;
354363 if ( newData !== "" ) {
355364 this . getBulkMetadata ( ) ;
356365 }
@@ -366,7 +375,6 @@ new Vue({
366375 selectedComparison ( newData , oldData ) {
367376 if ( newData !== oldData ) {
368377 keyParams . set ( { comparison : newData } ) ;
369- this . $store . dispatch ( "queryBulk" ) ;
370378 }
371379 } ,
372380 selectedGene ( newData , oldData ) {
@@ -398,6 +406,11 @@ new Vue({
398406 if ( ! ! newData ) {
399407 this . tableHidden = false ;
400408 }
409+ } ,
410+ async bulkData19K ( newData ) {
411+ if ( newData . length > 0 ) {
412+ await this . populateEnrichr ( ) ;
413+ }
401414 }
402415 } ,
403416
0 commit comments