@@ -1093,7 +1093,7 @@ export class ResultsViewPageStore extends AnalysisStore
1093
1093
this . studyIds ,
1094
1094
this . clinicalAttributes_profiledIn ,
1095
1095
this . clinicalAttributes_comparisonGroupMembership ,
1096
- this . clinicalAttributes_customCharts ,
1096
+ this . customAttributes ,
1097
1097
this . samples ,
1098
1098
this . patients ,
1099
1099
] ,
@@ -1142,7 +1142,7 @@ export class ResultsViewPageStore extends AnalysisStore
1142
1142
...specialAttributes ,
1143
1143
...this . clinicalAttributes_profiledIn . result ! ,
1144
1144
...this . clinicalAttributes_comparisonGroupMembership . result ! ,
1145
- ...this . clinicalAttributes_customCharts . result ! ,
1145
+ ...this . customAttributes . result ! ,
1146
1146
] ;
1147
1147
} ,
1148
1148
} ) ;
@@ -1187,7 +1187,7 @@ export class ResultsViewPageStore extends AnalysisStore
1187
1187
this . studyToDataQueryFilter ,
1188
1188
this . clinicalAttributes_profiledIn ,
1189
1189
this . clinicalAttributes_comparisonGroupMembership ,
1190
- this . clinicalAttributes_customCharts ,
1190
+ this . customAttributes ,
1191
1191
] ,
1192
1192
invoke : async ( ) => {
1193
1193
let clinicalAttributeCountFilter : ClinicalAttributeCountFilter ;
@@ -1270,7 +1270,7 @@ export class ResultsViewPageStore extends AnalysisStore
1270
1270
) ;
1271
1271
}
1272
1272
// add counts for custom chart clinical attributes
1273
- for ( const attr of this . clinicalAttributes_customCharts . result ! ) {
1273
+ for ( const attr of this . customAttributes . result ! ) {
1274
1274
ret [ attr . clinicalAttributeId ] = attr . data ! . filter (
1275
1275
d => d . value !== 'NA'
1276
1276
) . length ;
@@ -2723,7 +2723,17 @@ export class ResultsViewPageStore extends AnalysisStore
2723
2723
default : [ ] ,
2724
2724
} ) ;
2725
2725
2726
- readonly clinicalAttributes_customCharts = remoteData ( {
2726
+ readonly plotClinicalAttributes = remoteData < ExtendedClinicalAttribute [ ] > ( {
2727
+ await : ( ) => [ this . clinicalAttributes , this . customAttributes ] ,
2728
+ invoke : async ( ) => {
2729
+ return _ . filter (
2730
+ this . clinicalAttributes . result ! ,
2731
+ attr => ! this . customAttributes . result ! . includes ( attr )
2732
+ ) ;
2733
+ } ,
2734
+ } ) ;
2735
+
2736
+ readonly customAttributes = remoteData ( {
2727
2737
await : ( ) => [ this . sampleMap ] ,
2728
2738
invoke : async ( ) => {
2729
2739
let ret : ExtendedClinicalAttribute [ ] = [ ] ;
@@ -5693,7 +5703,7 @@ export class ResultsViewPageStore extends AnalysisStore
5693
5703
this . coverageInformation ,
5694
5704
this . filteredSampleKeyToSample ,
5695
5705
this . filteredPatientKeyToPatient ,
5696
- this . clinicalAttributes_customCharts
5706
+ this . customAttributes
5697
5707
) ;
5698
5708
5699
5709
public mutationCache = new MobxPromiseCache <
0 commit comments