File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @platforma-open/milaboratories.3d-structure-based-liabilities.model ' : patch
3+ ---
4+
5+ Fix Open button for bulk dataset
Original file line number Diff line number Diff line change @@ -218,7 +218,8 @@ export const platforma = BlockModelV3.create(dataModel)
218218 if ( ! parsed . isComplete ) return undefined ;
219219 return parsed . data ;
220220 } )
221- // Axis id of the scClonotypeKey axis, used to attach the viewer-trigger
221+ // Axis id of the clonotype-key axis (scClonotypeKey for single-cell,
222+ // clonotypeKey for bulk), used to attach the viewer-trigger
222223 // button to that column in the table. Derive from the actual scoresData
223224 // column (which is what populates the table), so the AxisId matches the
224225 // table column's id byte-for-byte. Deriving from the PDB col's spec
@@ -232,7 +233,12 @@ export const platforma = BlockModelV3.create(dataModel)
232233 return undefined ;
233234 }
234235 const first = cols ?. [ 0 ] ;
235- const found = first ?. spec . axesSpec . find ( ( a ) => a . name === "pl7.app/vdj/scClonotypeKey" ) ;
236+ // The clonotype-key axis is named `scClonotypeKey` for single-cell data
237+ // and `clonotypeKey` for bulk; match either so the viewer-trigger button
238+ // attaches in both regimes (the scores column is single-keyed on it).
239+ const found = first ?. spec . axesSpec . find (
240+ ( a ) => a . name === "pl7.app/vdj/scClonotypeKey" || a . name === "pl7.app/vdj/clonotypeKey" ,
241+ ) ;
236242 if ( ! found ) return undefined ;
237243 return getAxisId ( found ) ;
238244 } )
You can’t perform that action at this time.
0 commit comments