{ "cells": [ { "cell_type": "markdown", "id": "fb270ec2-29da-4100-9485-39da5cce1663", "metadata": {}, "source": [ "# Loading and inspecting ME-models\n", "\n", "In this tutorial we will load and inspect the reconstructed _Bacillus subtilis_ ME-model." ] }, { "cell_type": "markdown", "id": "d37fa4bb-3c8f-4a62-923c-6c1747ebb652", "metadata": {}, "source": [ "## Import libraries" ] }, { "cell_type": "code", "execution_count": 1, "id": "d048f35f-6a3b-4642-86cd-49e4c4e4a187", "metadata": { "ExecuteTime": { "end_time": "2022-12-12T06:27:35.182100Z", "start_time": "2022-12-12T06:27:35.157355Z" } }, "outputs": [], "source": [ "from coralme.builder.main import MEBuilder\n", "import coralme" ] }, { "cell_type": "markdown", "id": "051e8ee6-15ba-4017-8fc0-5f54da314cd8", "metadata": {}, "source": [ "## Load as a JSON" ] }, { "cell_type": "markdown", "id": "77a83a0a-a0b6-4b74-b0b8-9331a34162d7", "metadata": {}, "source": [ "Load the ME-model coming out of the Troubleshooter" ] }, { "cell_type": "code", "execution_count": 2, "id": "b0d86d92-b978-402c-b16a-439986ea2904", "metadata": { "ExecuteTime": { "end_time": "2022-12-12T06:30:28.060280Z", "start_time": "2022-12-12T06:30:01.706785Z" } }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Adding Metabolites into the ME-model... : 100.0%|██████████| 4630/ 4630 [00:00<00:00]\n", "Adding ProcessData into the ME-model... : 100.0%|██████████| 4752/ 4752 [00:00<00:00]\n", "Adding Reactions into the ME-model... : 100.0%|██████████| 7758/ 7758 [00:14<00:00]\n", "Updating ME-model Reactions... : 100.0%|██████████| 6369/ 6369 [00:21<00:00]\n" ] } ], "source": [ "me = coralme.io.json.load_json_me_model(\"./bsubtilis/MEModel-step3-bsubtilis-TS.json\")" ] }, { "cell_type": "markdown", "id": "dd9c7e29-7a95-4cd7-a3f4-46a189be9e2a", "metadata": {}, "source": [ "## Load as a pickle" ] }, { "cell_type": "code", "execution_count": null, "id": "08fda213-38ab-4a84-9d72-6e3008848f5b", "metadata": { "ExecuteTime": { "end_time": "2022-12-12T06:30:28.060280Z", "start_time": "2022-12-12T06:30:01.706785Z" } }, "outputs": [], "source": [ "# me = coralme.io.pickle.load_pickle_me_model(\"./bsubtilis/MEModel-step3-bsubtilis-TS.pkl\")" ] }, { "cell_type": "markdown", "id": "b8874ac5-e7a4-473b-80e5-5b3bca962fe5", "metadata": {}, "source": [ "## Inspecting ME-model properties" ] }, { "cell_type": "markdown", "id": "caca0f28-cbf2-437e-b2ef-9af6bee233ff", "metadata": {}, "source": [ "### Summary of the ME-model" ] }, { "cell_type": "code", "execution_count": 3, "id": "a6c4835c-97d5-4583-8ccd-cec067baa26e", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t\t\n", "\t\t\t\t\n", "\t\t\t\n", "\t\t\t
NamecoralME
Memory address7f1c5c495b10
Number of metabolites4630
Number of reactions7758
Number of genes1154
Number of mRNA genes1038
Number of rRNA genes30
Number of tRNA genes86
Objective expressiondummy_reaction_FWD_SPONT
Compartmentsmc, c, e
" ], "text/plain": [ "" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "me" ] }, { "cell_type": "code", "execution_count": 4, "id": "bf36850f-1484-4f61-a501-8d3356fa3f31", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "ME-model has 7758 reactions\n" ] } ], "source": [ "print(\"ME-model has {} reactions\".format(len(me.reactions)))" ] }, { "cell_type": "code", "execution_count": 5, "id": "78545e33-afe5-4b86-87b1-6236cbb8d4f0", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "ME-model has 4630 metabolites\n" ] } ], "source": [ "print(\"ME-model has {} metabolites\".format(len(me.metabolites)))" ] }, { "cell_type": "code", "execution_count": 6, "id": "b49bbb17-4e2a-4b62-bad7-51a4322557e6", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "ME-model has 1154 genes\n" ] } ], "source": [ "print(\"ME-model has {} genes\".format(len(me.all_genes)))" ] }, { "cell_type": "markdown", "id": "3d86778d-1cee-400e-89d4-9c3503a44288", "metadata": {}, "source": [ "### Reactions" ] }, { "cell_type": "markdown", "id": "6ec98d84-41ca-4c08-bd6f-3b9815c01795", "metadata": {}, "source": [ "#### Metabolic reaction" ] }, { "cell_type": "code", "execution_count": 7, "id": "4aa94f07-6bef-4df1-884e-ea9463e164e7", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t
Reaction identifier23CN2P1_REV_BSU07840-MONOMER
Name
Memory address0x7f1b98d6c9d0
Stoichiometry\n", "\t\t\t\n", "\t\t\t\t

1.0 3amp_c + [4.47434028634533e-6*mu1] BSU07840-MONOMER + 1.0 h_c --> 1.0 23camp_c + 1.0 h2o_c

\n", "\t\t\t\t

1.0 3 AMP C10H12N5O7P + [4.47434028634533e-6*mu1] BSU07840-MONOMER + 1.0 H+ --> 1.0 2',3'-Cyclic AMP + 1.0 H2O H2O

\n", "\t\t\t
GPR
Lower bound0
Upper bound999999.0
Reaction typecoralme.core.reaction.MetabolicReaction
FluxME-model not optimized/feasible
Reduced costME-model not optimized/feasible
Bound violationME-model not optimized/feasible
\n", "\t\t" ], "text/plain": [ "" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "r = next(i for i in me.reactions if isinstance(i,coralme.core.reaction.MetabolicReaction))\n", "r" ] }, { "cell_type": "markdown", "id": "4317c596-0f55-438c-b0da-6a98b6fff590", "metadata": {}, "source": [ "#### Translation reaction" ] }, { "cell_type": "code", "execution_count": 8, "id": "795539fb-e1b3-489b-8ea2-3e5efd200435", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t
Reaction identifiertranslation_BSU00090
Name
Memory address0x7f1b9abcb310
Stoichiometry\n", "\t\t\t\n", "\t\t\t\t

1.0 10fthf_c + [0.00208119658119658*mu1] BSU01120-MONOMER + [4.27350427350427e-6*mu1] BSU01390-MONOMER + [4.27350427350427e-6*mu1] BSU15720-MONOMER + [4.27350427350427e-6*mu1] BSU15730-MONOMER + [0.00208119658119658*mu1] BSU16500-MONOMER + [4.27350427350427e-6*mu1] BSU16520-MONOMER + [8.54700854700855e-6*mu1] BSU16630-MONOMER + [4.27350427350427e-6*mu1] BSU25460-MONOMER + [4.27350427350427e-6*mu1] BSU25470-MONOMER + [4.27350427350427e-6*mu1] BSU25480-MONOMER + [4.27350427350427e-6*mu1] BSU28870-MONOMER + [0.000498399634202103*mu1 + 0.000195123456790123 + 0.0269135802469136*(0.222222222222222*mu1 + 0.087)/mu1] RNA_BSU00090 + [2.55589556001079e-8*mu1 + 1.00063311174422e-8] RNA_degradosome + 36.0 ala__L_c + 23.0 arg__L_c + 14.0 asn__L_c + 27.0 asp__L_c + [488.0 + 9.86382716049383*(0.222222222222222*mu1 + 0.087)/mu1] atp_c + 3.0 cys__L_c + [8.54700854700855e-6*mu1] generic_RF + [0.00208119658119658*mu1] generic_Tuf + 29.0 generic_tRNA_AAA_lys__L_c + 8.0 generic_tRNA_AAC_asn__L_c + 8.0...

\n", "\t\t\t\t

1.0 10-Formyltetrahydrofolate + [0.00208119658119658*mu1] BSU01120-MONOMER + [4.27350427350427e-6*mu1] BSU01390-MONOMER + [4.27350427350427e-6*mu1] BSU15720-MONOMER + [4.27350427350427e-6*mu1] BSU15730-MONOMER + [0.00208119658119658*mu1] BSU16500-MONOMER + [4.27350427350427e-6*mu1] BSU16520-MONOMER + [8.54700854700855e-6*mu1] BSU16630-MONOMER + [4.27350427350427e-6*mu1] BSU25460-MONOMER + [4.27350427350427e-6*mu1] BSU25470-MONOMER + [4.27350427350427e-6*mu1] BSU25480-MONOMER + [4.27350427350427e-6*mu1] BSU28870-MONOMER + [0.000498399634202103*mu1 + 0.000195123456790123 + 0.0269135802469136*(0.222222222222222*mu1 + 0.087)/mu1] RNA_BSU00090 + [2.55589556001079e-8*mu1 + 1.00063311174422e-8] RNA_degradosome + 36.0 L-Alanine + 23.0 L-Arginine + 14.0 L-Asparagine + 27.0 L-Aspartate + [488.0 + 9.86382716049383*(0.222222222222222*mu1 + 0.087)/mu1] ATP C10H12N5O13P3 + 3.0 L-Cysteine + [8.54700854700855e-6*mu1] generic_RF + [0.00208119658119658*mu1] generic_Tuf + 29.0...

\n", "\t\t\t
GPR
Lower bound0.0
Upper bound1000.0
Reaction typecoralme.core.reaction.TranslationReaction
FluxME-model not optimized/feasible
Reduced costME-model not optimized/feasible
Bound violationME-model not optimized/feasible
\n", "\t\t" ], "text/plain": [ "" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "r = next(i for i in me.reactions if isinstance(i,coralme.core.reaction.TranslationReaction))\n", "r" ] }, { "cell_type": "markdown", "id": "41b5c71b-c4b4-4bf8-a411-d35c7edf14ed", "metadata": {}, "source": [ "#### Transcription reaction" ] }, { "cell_type": "code", "execution_count": 9, "id": "18f8b2c0-1880-4b74-8330-73d82834888b", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t
Reaction identifiertranscription_TU8J2-1243_from_BSU25200-MONOMER
Name
Memory address0x7f1b9aea4700
Stoichiometry\n", "\t\t\t\n", "\t\t\t\t

[4.27350427350427e-6*mu1] BSU00550-MONOMER_mod_mg2(1) + [4.27350427350427e-6*mu1] BSU01010-MONOMER + [4.27350427350427e-6*mu1] BSU16600-MONOMER + [4.27350427350427e-6*mu1] BSU27320-MONOMER + [4.27350427350427e-6*mu1] BSU37080-MONOMER_mod_mg2(3) + [0.00273829471591343*mu1 + 0.00107204238128011] RNAP_BSU25200MONOMER + 189.0 atp_c + 122 ctp_c + 111 gtp_c + 3.0 h2o_c + 154 utp_c --> 1.0 RNA_BSU23050 + 3.0 adp_c + 3.0 h_c + 183.35422381299998 mRNA_biomass + 3.0 pi_c + 573 ppi_c

\n", "\t\t\t\t

[4.27350427350427e-6*mu1] BSU00550-MONOMER_mod_mg2(1) + [4.27350427350427e-6*mu1] BSU01010-MONOMER + [4.27350427350427e-6*mu1] BSU16600-MONOMER + [4.27350427350427e-6*mu1] BSU27320-MONOMER + [4.27350427350427e-6*mu1] BSU37080-MONOMER_mod_mg2(3) + [0.00273829471591343*mu1 + 0.00107204238128011] RNAP_BSU25200MONOMER + 189.0 ATP C10H12N5O13P3 + 122 CTP C9H12N3O14P3 + 111 GTP C10H12N5O14P3 + 3.0 H2O H2O + 154 UTP C9H11N2O15P3 --> 1.0 RNA_BSU23050 + 3.0 ADP C10H12N5O10P2 + 3.0 H+ + 183.35422381299998 mRNA_biomass + 3.0 Phosphate + 573 Diphosphate

\n", "\t\t\t
GPR
Lower bound0.0
Upper bound1000.0
Reaction typecoralme.core.reaction.TranscriptionReaction
FluxME-model not optimized/feasible
Reduced costME-model not optimized/feasible
Bound violationME-model not optimized/feasible
\n", "\t\t" ], "text/plain": [ "" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "r = next(i for i in me.reactions if isinstance(i,coralme.core.reaction.TranscriptionReaction))\n", "r" ] }, { "cell_type": "markdown", "id": "20aa4477-0812-4847-a821-298f192e4422", "metadata": {}, "source": [ "#### Formation reaction" ] }, { "cell_type": "code", "execution_count": 10, "id": "f6ff8a2f-db4f-42de-9aa7-81ccec048f32", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t
Reaction identifierformation_BSU00090-MONOMER
Name
Memory address0x7f1b98def070
Stoichiometry\n", "\t\t\t\n", "\t\t\t\t

4.0 protein_BSU00090 --> 1.0 BSU00090-MONOMER

\n", "\t\t\t\t

4.0 protein_BSU00090 --> 1.0 BSU00090-MONOMER

\n", "\t\t\t
GPR
Lower bound0.0
Upper bound1000.0
Reaction typecoralme.core.reaction.ComplexFormation
FluxME-model not optimized/feasible
Reduced costME-model not optimized/feasible
Bound violationME-model not optimized/feasible
\n", "\t\t" ], "text/plain": [ "" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "r = next(i for i in me.reactions if isinstance(i,coralme.core.reaction.ComplexFormation))\n", "r" ] }, { "cell_type": "markdown", "id": "76375a81-5b21-4cb5-8ce7-b0f71f4d1633", "metadata": {}, "source": [ "#### tRNA Charging reaction" ] }, { "cell_type": "code", "execution_count": 11, "id": "51ed8187-c1e9-4f74-a0f6-b8b1c18c712e", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t
Reaction identifiercharging_tRNA_BSU_tRNA_5_AUU
Name
Memory address0x7f1b9918bbe0
Stoichiometry\n", "\t\t\t\n", "\t\t\t\t

[4.27350427350427e-6*mu1*(0.000116266666666667*mu1 + 1.0000455184)] BSU15430-MONOMER_mod_zn2(2) + [0.000116266666666667*mu1 + 4.55184e-5] RNA_BSU_tRNA_5 + [0.000116266666666667*mu1 + 4.55184e-5] ile__L_c --> 1.0 generic_tRNA_AUU_ile__L_c

\n", "\t\t\t\t

[4.27350427350427e-6*mu1*(0.000116266666666667*mu1 + 1.0000455184)] BSU15430-MONOMER_mod_zn2(2) + [0.000116266666666667*mu1 + 4.55184e-5] RNA_BSU_tRNA_5 + [0.000116266666666667*mu1 + 4.55184e-5] L-Isoleucine --> 1.0 generic_tRNA_AUU_ile__L_c

\n", "\t\t\t
GPR
Lower bound0.0
Upper bound1000.0
Reaction typecoralme.core.reaction.tRNAChargingReaction
FluxME-model not optimized/feasible
Reduced costME-model not optimized/feasible
Bound violationME-model not optimized/feasible
\n", "\t\t" ], "text/plain": [ "" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "r = next(i for i in me.reactions if isinstance(i,coralme.core.reaction.tRNAChargingReaction))\n", "r" ] }, { "cell_type": "markdown", "id": "e679e38e-a30e-4ba7-b52e-055b98f5bf1a", "metadata": {}, "source": [ "#### Post-translational modification reaction" ] }, { "cell_type": "code", "execution_count": 12, "id": "6e50059c-3399-41cd-b262-42107adeea12", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t\t\n", "\t\t
Reaction identifiertranslocation_BSU07840_Cell_Wall
Name
Memory address0x7f1b98956650
Stoichiometry\n", "\t\t\t\n", "\t\t\t\t

[0.101527777777778*mu1] BSU27650-MONOMER + [0.101527777777778*mu1] BSU35300-MONOMER + 58.480000000000004 atp_c + 58.480000000000004 h2o_c + 1.0 protein_BSU07840 + [0.101527777777778*mu1] secYEG --> 58.480000000000004 adp_c + 58.480000000000004 h_c + 58.480000000000004 pi_c + 1.0 protein_BSU07840_Cell_Wall

\n", "\t\t\t\t

[0.101527777777778*mu1] BSU27650-MONOMER + [0.101527777777778*mu1] BSU35300-MONOMER + 58.480000000000004 ATP C10H12N5O13P3 + 58.480000000000004 H2O H2O + 1.0 protein_BSU07840 + [0.101527777777778*mu1] secYEG --> 58.480000000000004 ADP C10H12N5O10P2 + 58.480000000000004 H+ + 58.480000000000004 Phosphate + 1.0 protein_BSU07840_Cell_Wall

\n", "\t\t\t
GPR
Lower bound0.0
Upper bound1000.0
Reaction typecoralme.core.reaction.PostTranslationReaction
FluxME-model not optimized/feasible
Reduced costME-model not optimized/feasible
Bound violationME-model not optimized/feasible
\n", "\t\t" ], "text/plain": [ "" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "r = next(i for i in me.reactions if isinstance(i,coralme.core.reaction.PostTranslationReaction))\n", "r" ] }, { "cell_type": "markdown", "id": "81bff06d-8661-4cac-96a6-abe5c21a606e", "metadata": {}, "source": [ "### Mapped gene functions" ] }, { "cell_type": "code", "execution_count": 13, "id": "4d80e172-b737-42bd-b513-0e7ec54e791f", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
count
Translation209
tRNA-Charging135
Metabolic:S_Nucleotides_and_nucleic_acids67
Metabolic:S_Coenzymes_and_prosthetic_groups76
Metabolic:S_Amino_acids_and_related_molecules155
Metabolic:S_Other_function16
Transcription46
Metabolic:S_Carbohydrates_and_related_molecules148
Metabolic:S_Cell_wall40
Metabolic:S_Lipids55
Post-translation13
Metabolic:S_Transport235
Metabolic:Not Determined14
Metabolic:S_Membrane_bioenergetics47
Metabolic: No subsystem8
Metabolic:S_Phosphate_and_sulfur7
\n", "
" ], "text/plain": [ " count\n", "Translation 209\n", "tRNA-Charging 135\n", "Metabolic:S_Nucleotides_and_nucleic_acids 67\n", "Metabolic:S_Coenzymes_and_prosthetic_groups 76\n", "Metabolic:S_Amino_acids_and_related_molecules 155\n", "Metabolic:S_Other_function 16\n", "Transcription 46\n", "Metabolic:S_Carbohydrates_and_related_molecules 148\n", "Metabolic:S_Cell_wall 40\n", "Metabolic:S_Lipids 55\n", "Post-translation 13\n", "Metabolic:S_Transport 235\n", "Metabolic:Not Determined 14\n", "Metabolic:S_Membrane_bioenergetics 47\n", "Metabolic: No subsystem 8\n", "Metabolic:S_Phosphate_and_sulfur 7" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from collections import defaultdict\n", "import pandas\n", "d = defaultdict(int)\n", "for g in me.all_genes:\n", " for f in g.functions:\n", " d[f] += 1\n", "pandas.DataFrame.from_dict({\"count\":d})" ] }, { "cell_type": "markdown", "id": "65a23350-93b7-4906-8d37-ca9df6bb4789", "metadata": {}, "source": [ "#### Inspecting functions of a gene" ] }, { "cell_type": "code", "execution_count": 14, "id": "a00a0fc0-43fe-4bb9-bf82-cfa4f3fb37c6", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'Transcription'}" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "g = me.all_genes.get_by_id(\"RNA_BSU37160\")\n", "g.functions" ] }, { "cell_type": "markdown", "id": "d9bb3773-92ef-4246-955e-e115df91fe8a", "metadata": {}, "source": [ "### Complexes formed by a gene" ] }, { "cell_type": "code", "execution_count": 15, "id": "f46a78f0-dec4-4962-8b58-b0366beeca66", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " }" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "g = me.all_genes.get_by_id(\"RNA_BSU37160\")\n", "g.complexes" ] }, { "cell_type": "markdown", "id": "7571bdfa-d692-4566-bff0-1b5a9a0da869", "metadata": {}, "source": [ "### Sinks to be curated through manual curation" ] }, { "cell_type": "markdown", "id": "da4c045f-1299-4024-ba99-56c3ffeed7d8", "metadata": {}, "source": [ "The Troubleshooter finds gaps that need to be curated to allow for growth. Most of these are cofactors that will require some synthesis pathways (e.g. 4fe4s), but others will only need some transporters (e.g. metal ions). This was run with curated files, so the following is empty." ] }, { "cell_type": "code", "execution_count": 16, "id": "7ddb17fc-d49b-4547-bfa8-042ad83f7840", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[]" ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "me.reactions.query(\"^TS_\")" ] } ], "metadata": { "kernelspec": { "display_name": "coralme-1.1.7", "language": "python", "name": "coralme-1.1.7" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.12" }, "toc-autonumbering": true, "toc-showcode": true }, "nbformat": 4, "nbformat_minor": 5 }