@@ -84,9 +84,9 @@ public ExportCommandExecutor(AdminCliOptionsParser.ExportCommandOptions exportCo
84
84
if (exportCommandOptions .data .equals ("all" )) {
85
85
this .dataToExport = new String []{EtlCommons .GENOME_DATA , EtlCommons .GENE_DATA , EtlCommons .REFSEQ_DATA ,
86
86
EtlCommons .CONSERVATION_DATA , EtlCommons .REGULATION_DATA , EtlCommons .PROTEIN_DATA ,
87
- EtlCommons . PROTEIN_FUNCTIONAL_PREDICTION_DATA , EtlCommons .VARIATION_DATA ,
87
+ PROTEIN_SUBSTITUTION_PREDICTION_DATA , EtlCommons .VARIATION_DATA ,
88
88
EtlCommons .VARIATION_FUNCTIONAL_SCORE_DATA , EtlCommons .CLINICAL_VARIANTS_DATA , EtlCommons .REPEATS_DATA ,
89
- OBO_DATA , EtlCommons .MISSENSE_VARIATION_SCORE_DATA , EtlCommons . SPLICE_SCORE_DATA , EtlCommons .PHARMACOGENOMICS_DATA };
89
+ OBO_DATA , EtlCommons .SPLICE_SCORE_DATA , EtlCommons .PHARMACOGENOMICS_DATA };
90
90
} else {
91
91
this .dataToExport = exportCommandOptions .data .split ("," );
92
92
}
@@ -200,38 +200,6 @@ public void execute() throws CellBaseException {
200
200
counterMsg = counter + " CADD items" ;
201
201
break ;
202
202
}
203
- case EtlCommons .MISSENSE_VARIATION_SCORE_DATA : {
204
- CellBaseFileSerializer serializer = new CellBaseJsonFileSerializer (output );
205
- ProteinManager proteinManager = managerFactory .getProteinManager (species , assembly );
206
- Map <String , List <Integer >> positionMap = new HashMap <>();
207
- for (Variant variant : variants ) {
208
- if (!positionMap .containsKey (variant .getChromosome ())) {
209
- positionMap .put (variant .getChromosome (), new ArrayList <>());
210
- }
211
- positionMap .get (variant .getChromosome ()).add (variant .getStart ());
212
- if (positionMap .get (variant .getChromosome ()).size () >= 200 ) {
213
- CellBaseDataResult <MissenseVariantFunctionalScore > results = proteinManager
214
- .getMissenseVariantFunctionalScores (variant .getChromosome (),
215
- positionMap .get (variant .getChromosome ()), null , dataRelease );
216
- counter += writeExportedData (results .getResults (), "missense_variation_functional_score" , serializer );
217
- positionMap .put (variant .getChromosome (), new ArrayList <>());
218
- }
219
- }
220
-
221
- // Process map
222
- for (Map .Entry <String , List <Integer >> entry : positionMap .entrySet ()) {
223
- if (CollectionUtils .isEmpty (entry .getValue ())) {
224
- continue ;
225
- }
226
- CellBaseDataResult <MissenseVariantFunctionalScore > results = proteinManager
227
- .getMissenseVariantFunctionalScores (entry .getKey (), entry .getValue (), null , dataRelease );
228
- counter += writeExportedData (results .getResults (), "missense_variation_functional_score" , serializer );
229
- }
230
- serializer .close ();
231
-
232
- counterMsg = counter + " missense variation functional scores" ;
233
- break ;
234
- }
235
203
case EtlCommons .CONSERVATION_DATA : {
236
204
// Export data
237
205
CellBaseFileSerializer serializer = new CellBaseJsonFileSerializer (output );
@@ -271,7 +239,7 @@ public void execute() throws CellBaseException {
271
239
counterMsg = counter + " proteins" ;
272
240
break ;
273
241
}
274
- case EtlCommons .PROTEIN_FUNCTIONAL_PREDICTION_DATA : {
242
+ case EtlCommons .PROTEIN_SUBSTITUTION_PREDICTION_DATA : {
275
243
ProteinManager proteinManager = managerFactory .getProteinManager (species , assembly );
276
244
Map <String , List <String >> transcriptsMap = new HashMap <>();
277
245
for (Gene gene : genes ) {
@@ -290,7 +258,7 @@ public void execute() throws CellBaseException {
290
258
}
291
259
serializer .close ();
292
260
293
- counterMsg = counter + " protein functional predictions" ;
261
+ counterMsg = counter + " protein substitution predictions" ;
294
262
break ;
295
263
}
296
264
case EtlCommons .CLINICAL_VARIANTS_DATA : {
0 commit comments