Skip to content

Commit 8e8b741

Browse files
authored
Merge pull request #741 from opencb/TASK-8156
TASK-8156 - Fix the command 'export' for ontology data
2 parents badf325 + 7cf12c6 commit 8e8b741

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cellbase-app/src/main/java/org/opencb/cellbase/app/cli/admin/executors/ExportCommandExecutor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ private int exportOntologyData() throws CellBaseException, IOException {
417417
int counter = 0;
418418
CellBaseFileSerializer serializer = new CellBaseJsonFileSerializer(output, ONTOLOGY_DATA);
419419
OntologyManager ontologyManager = managerFactory.getOntologyManager(species, assembly);
420-
CellBaseIterator<OntologyTerm> iterator = ontologyManager.iterator(new OntologyQuery());
420+
OntologyQuery ontologyQuery = new OntologyQuery();
421+
ontologyQuery.setDataRelease(dataRelease);
422+
CellBaseIterator<OntologyTerm> iterator = ontologyManager.iterator(ontologyQuery);
421423
while (iterator.hasNext()) {
422424
serializer.serialize(iterator.next());
423425
counter++;

0 commit comments

Comments
 (0)