Skip to content

Commit 7b4d0f1

Browse files
committed
app: fix export for ontology data, #TASK-8156
1 parent a9b1a69 commit 7b4d0f1

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)