Skip to content
Snippets Groups Projects
Commit 07f20010 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion :recycle:
Browse files

add logs and dependencies to build UML

parent 9c7e3bb2
No related branches found
No related tags found
1 merge request!71add logs and dependencies to build UML
Pipeline #52538 failed
......@@ -30,6 +30,7 @@ pytest-factoryboy = "*"
pylint = "*"
mock = "*"
snakeviz = "*"
pydotplus = "*"
[packages]
certifi = "*"
......@@ -67,6 +68,7 @@ django-health-check = "==3.0.0"
django-redis = "*"
kombu = "*"
dabeplech = "*"
pydotplus = "*"
[requires]
python_version = "3.7"
......@@ -40,6 +40,7 @@ class ImportEggNOG(object):
def load_all(self, test=False, version=None):
self._build_functional_category_dict()
self.total_eggnog_nb = file_len(self.annotation_file)
logger.info("Preparing to load %s items...", self.total_eggnog_nb)
with open(self.annotation_file, "r") as file:
for line in file:
eggnog_dict = self.eggnog_parser.get_dict(line)
......
......@@ -28,6 +28,7 @@ class ImportKEGGKO(object):
all_ko_response.raise_for_status()
all_ko = all_ko_response.text.splitlines()
self.total_nb = len(all_ko)
logger.info("%s KEGG KO retrieved from KEGG API...", self.total_nb)
for chunk in list_chunks(all_ko, chunk_size):
ko_chunk = [KEGGLineParser.ko_list(i) for i in chunk]
for i in ko_chunk:
......
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment