From 71794dee855e242ebfc91a31379549527c187e79 Mon Sep 17 00:00:00 2001 From: cb-Hades <81743695+cb-Hades@users.noreply.github.com> Date: Thu, 22 Aug 2024 15:00:58 +0200 Subject: [PATCH] Fixed CMPB workflow #8 --- dev/CB_test_modules.ipynb | 89 ++++++----------------- src/specimen/cmpb/workflow.py | 12 ++- src/specimen/data/config/cmpb_config.yaml | 11 ++- src/specimen/util/set_up.py | 6 +- 4 files changed, 39 insertions(+), 79 deletions(-) diff --git a/dev/CB_test_modules.ipynb b/dev/CB_test_modules.ipynb index 3999831..d0b0457 100644 --- a/dev/CB_test_modules.ipynb +++ b/dev/CB_test_modules.ipynb @@ -1549,13 +1549,16 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ + "/Users/brune/miniconda3/envs/sprg/lib/python3.10/site-packages/pydantic/_internal/_config.py:322: UserWarning: Valid config keys have changed in V2:\n", + "* 'underscore_attrs_are_private' has been removed\n", + " warnings.warn(message, UserWarning)\n", "WARNING:root:Keyword USER detected in config (gram). Either due to skipped options or missing required information.\n", "Reminder: This may lead to downstream problems.\n", "WARNING:root:Keyword USER detected in config (gene-table). Either due to skipped options or missing required information.\n", @@ -1575,19 +1578,28 @@ ] }, { - "name": "stdout", - "output_type": "stream", - "text": [ - "Running in debugging mode.\n", - "fill_model: Running in debugging mode\n" - ] + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "571a86b91c4b4bfd97d7510cbf21dfc0", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + " 0%| | 0/3 [00:00 Future update! - # annotated_genome: USER # Some alternative input if not model is given + # If not given, runs CarveMe mediapath: __USER__ # Path to a media config to test growth with # General options @@ -50,10 +50,11 @@ tech-resources: # Build a model using CarveMe # --------------------------- carveme: - # requires protein_fasta under general to be set + # CarveMe requires protein_fasta under general to be set instead of modelpath # if CarveMe should be run, # fill out the params below - gram: USER # grampos or gramneg? + gram: USER # Choose either grampos or gramneg, depending on the Gram-test + # resilts of your organism # Polish a CarveMe model # Only neccessary, if the model will or has been build with CarveMe @@ -67,6 +68,7 @@ cm-polish: # Filling gaps, optional # ---------------------- gapfilling: + ########### general options ########### # parameters, that apply to all the gap filling algorithmns idprefix: 'CMPB' # prefix to use for fantasy IDs, if IDs for @@ -79,6 +81,7 @@ gapfilling: # from being added to the model. exclude-rna: True # Exclude reactions containing 'RNA' in their name # from being added to the model. + ########## enable algorithms ########## # via KEGG ................... # requires KEGG organism ID to be set diff --git a/src/specimen/util/set_up.py b/src/specimen/util/set_up.py index 7cd1e26..44614e0 100644 --- a/src/specimen/util/set_up.py +++ b/src/specimen/util/set_up.py @@ -33,8 +33,10 @@ HQTB_CONFIG_PATH_REQUIRED = ['annotated_genome','full_sequence','model','diamond', 'mnx_chem_prop', 'mnx_chem_xref','mnx_reac_prop','mnx_reac_xref', 'media_analysis'] #: :meta: -CMPB_CONFIG_PATHS_REQUIRED = ['mediapath','protein_fasta','refseq_gff','annotated_genome'] #: :meta: -CMPB_CONFIG_PATHS_OPTIONAL = ['modelpath','biocyc_files','full_genome_sequence'] # :meta: +CMPB_CONFIG_PATHS_REQUIRED = ['mediapath'] #: :meta: +CMPB_CONFIG_PATHS_OPTIONAL = ['modelpath','full_genome_sequence','refseq_gff', 'protein_fasta', + 'gene-table','reacs-table','gff','swissprot-dmnd', + 'swissprot-mapping'] # :meta: PIPELINE_PATHS_OPTIONAL = {'hqtb':HQTB_CONFIG_PATH_OPTIONAL, 'cmpb':CMPB_CONFIG_PATHS_OPTIONAL} #: :meta: PIPELINE_PATHS_REQUIRED = {'hqtb':HQTB_CONFIG_PATH_REQUIRED,