Skip to content

Commit

Permalink
UPD project service with assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
eboileau committed Feb 10, 2024
1 parent d1a9b9e commit fcea64e
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions server/src/scimodom/services/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
DetectionTechnology,
Organism,
Selection,
Assembly,
)
import scimodom.database.queries as queries
from scimodom.services.annotation import AnnotationService
from scimodom.services.assembly import AssemblyService
import scimodom.utils.specifications as specs
import scimodom.utils.utils as utils

Expand Down Expand Up @@ -281,15 +280,11 @@ def create_project(self, wo_assembly: bool = False) -> None:
self._write_metadata()

if not wo_assembly:
pass
# instantiate AssemblyService
# one per species/assembly

# TODO
# msg = "Preparing annotation for selected organisms"
# logger.info(msg)
# for taxid in self._taxa_ids:
# service = AnnotationService.from_taxid(self._session, taxid=taxid)
for assembly in self._assemblies:
taxid, name = assembly
msg = f"Calling AssemblyService for {name} ({taxid})"
logger.debug(msg)
AssemblyService.from_new(self._session, name=name, taxa_id=taxid)

def get_smid(self) -> str:
return self._smid

0 comments on commit fcea64e

Please sign in to comment.