@@ -84,9 +84,9 @@ public ExportCommandExecutor(AdminCliOptionsParser.ExportCommandOptions exportCo
8484 if (exportCommandOptions .data .equals ("all" )) {
8585 this .dataToExport = new String []{EtlCommons .GENOME_DATA , EtlCommons .GENE_DATA , EtlCommons .REFSEQ_DATA ,
8686 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 ,
8888 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 };
9090 } else {
9191 this .dataToExport = exportCommandOptions .data .split ("," );
9292 }
@@ -200,38 +200,6 @@ public void execute() throws CellBaseException {
200200 counterMsg = counter + " CADD items" ;
201201 break ;
202202 }
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- }
235203 case EtlCommons .CONSERVATION_DATA : {
236204 // Export data
237205 CellBaseFileSerializer serializer = new CellBaseJsonFileSerializer (output );
@@ -271,7 +239,7 @@ public void execute() throws CellBaseException {
271239 counterMsg = counter + " proteins" ;
272240 break ;
273241 }
274- case EtlCommons .PROTEIN_FUNCTIONAL_PREDICTION_DATA : {
242+ case EtlCommons .PROTEIN_SUBSTITUTION_PREDICTION_DATA : {
275243 ProteinManager proteinManager = managerFactory .getProteinManager (species , assembly );
276244 Map <String , List <String >> transcriptsMap = new HashMap <>();
277245 for (Gene gene : genes ) {
@@ -290,7 +258,7 @@ public void execute() throws CellBaseException {
290258 }
291259 serializer .close ();
292260
293- counterMsg = counter + " protein functional predictions" ;
261+ counterMsg = counter + " protein substitution predictions" ;
294262 break ;
295263 }
296264 case EtlCommons .CLINICAL_VARIANTS_DATA : {
0 commit comments