Skip to content

Commit 702a1c8

Browse files
[UPDATE] README.md and diel_models_docs.md files that now includes development/contributing instructions, pip from github option, mention to the examples scripts and how to export the final xml diel model + [UPDATE] package version 1.2.2 to 1.2.3
1 parent 5274beb commit 702a1c8

4 files changed

Lines changed: 76 additions & 14 deletions

File tree

README.md

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,36 @@ With this in mind, this package aims to accelerate this process by being able to
2323
### Table of contents:
2424

2525
- [Installation](#installation)
26-
- [Pip](#pip)
27-
- [Getting Started](#getting-started)
26+
- [Using pip from PyPi](#using-pip-from-pypi)
27+
- [Using pip directly from GitHub](#using-pip-directly-from-github)
28+
- [Development (or Contributing)](#development-or-contributing)
29+
- [Using the tool](#using-the-tool)
2830
- [Expanding the pipeline](#expanding-the-pipeline)
2931
- [Where to find the publication results](#where-to-find-the-publication-results)
3032

3133
## Installation
32-
### Pip
34+
### Using pip from PyPi
3335

34-
``` pip install diel_models==1.2.2 ```
36+
``` pip install diel_models==1.2.3 ```
3537

36-
## Getting Started
38+
### Using pip directly from GitHub
39+
40+
``` pip install git+https://github.com/BioSystemsUM/diel_models.git ```
41+
42+
## Development (or Contributing)
43+
44+
Cloning the repository and setting the conda environment:
45+
46+
```
47+
git clone https://github.com/BioSystemsUM/diel_models.git
48+
conda create -n dielmodels
49+
conda activate dielmodels
50+
51+
pip install -r requirements.txt
52+
pip install -e .
53+
```
54+
55+
## Using the tool
3756
Using this package, you can handle generic or multi-tissue models by:
3857

3958
* Assigning day and night;
@@ -44,7 +63,11 @@ Using this package, you can handle generic or multi-tissue models by:
4463

4564
If each method is to be applied individually it is essential that the first 3 steps are applied in that order specifically.
4665

47-
**Alternatively, it is possible to apply all methods to a given model, running the entire pipeline (where the arguments are all relative to the original model), as shown below:**
66+
**Alternatively, you can apply all methods to a given model by running the entire pipeline, with all arguments relative to the original model**
67+
68+
This approach has been applied to multiple models, as demonstrated in the [Examples](examples) folder, both generic (e.g. [_Athaliana13_](examples/Athaliana_cheung13.py)) and multi-tissue (e.g. [_MultiQuercus_](examples/MultiQuercus.py)).
69+
70+
Briefly, the pipeline is applied as follows:
4871

4972
- Generic model:
5073

@@ -57,6 +80,8 @@ model = cobra.io.read_sbml_model('.../.../desired_single_tissue_model.xml')
5780
storage_pool_metabolites = ['Metabolite_ID_1', 'Metabolite_ID_2', 'Metabolite_ID_3']
5881

5982
diel_models_creator(model, storage_pool_metabolites, ['Photon_Reaction_ID'], ['Nitrate_Reaction_ID'], 'Biomass_Reaction_ID')
83+
84+
cobra.io.write_sbml_model(model, desired_path)
6085
```
6186

6287
where the nitrate uptake ratio is 3:2, since _day_ratio_value_ is 3 and _night_ratio_value_ is 2.
@@ -72,6 +97,7 @@ model = cobra.io.read_sbml_model('.../.../desired_single_tissue_model.xml')
7297
storage_pool_metabolites = ['Metabolite_ID_1', 'Metabolite_ID_2', 'Metabolite_ID_3']
7398

7499
diel_models_creator(model, storage_pool_metabolites, ['Photon_Reaction_ID'], ['Nitrate_Reaction_ID'], 'Biomass_Reaction_ID', day_ratio_value=desired_value_1, night_ratio_value=desired_value_2)
100+
cobra.io.write_sbml_model(model, desired_path)
75101
```
76102

77103
- Multi-tissue model:
@@ -87,6 +113,7 @@ storage_pool_metabolites = ['Metabolite_ID_1', 'Metabolite_ID_2', 'Metabolite_ID
87113
tissues = ['Tissue_ID_1', 'Tissue_ID_2']
88114

89115
diel_models_creator(model, storage_pool_metabolites, ['Photon_Reaction_ID'], ['Nitrate_Reaction_ID'], 'Biomass_Reaction_ID', tissues)
116+
cobra.io.write_sbml_model(model, desired_path)
90117
```
91118

92119
where the nitrate uptake ratio is 3:2, but it's also possible to adjust this ratio to different values.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
1111

1212
project = 'diel_models'
13-
copyright = '2023, Luciana Martins and João Capela'
13+
copyright = '2024, Luciana Martins and João Capela'
1414
author = 'Luciana Martins and João Capela'
15-
release = 'v1.2.2'
15+
release = 'v1.2.3'
1616

1717
sys.path.insert(0, os.path.abspath('../src/'))
1818

docs/diel_models_docs.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,45 @@ Python 3.12
1313
```
1414

1515
### Description
16-
*diel_models* is a python package generated from this project and has its own [ReadtheDocs](https://dielmodels.readthedocs.io/) file.
1716

1817
Despite numerous successful studies, modeling plant metabolism remains challenging for several reasons, such as limited information, incomplete annotations, and dynamic changes in plant metabolism that occur under different conditions, including night and day.
1918
In particular, the integration of these day-night cycles (diel cycles) is complex, laborious, and time-consuming.
2019

21-
With this in mind, this package aims to accelerate this process by being able to transform a non-diel model into a diel model.
20+
With this in mind, *diel_models* was created to accelerate this process by being able to transform a non-diel model into a diel model.
21+
22+
### Table of contents:
23+
24+
- [Installation](#installation)
25+
- [Using pip from PyPi](#using-pip-from-pypi)
26+
- [Using pip directly from GitHub](#using-pip-directly-from-github)
27+
- [Development (or Contributing)](#development-or-contributing)
28+
- [Using the tool](#using-the-tool)
29+
- [Expanding the pipeline](#expanding-the-pipeline)
30+
- [Where to find the publication results](#where-to-find-the-publication-results)
2231

2332
## Installation
33+
### Using pip from PyPi
34+
35+
``` pip install diel_models==1.2.3 ```
36+
37+
### Using pip directly from GitHub
2438

25-
``` pip install diel_models==1.2.2 ```
39+
``` pip install git+https://github.com/BioSystemsUM/diel_models.git ```
2640

27-
## Getting Started
41+
## Development (or Contributing)
42+
43+
Cloning the repository and setting the conda environment:
44+
45+
```
46+
git clone https://github.com/BioSystemsUM/diel_models.git
47+
conda create -n dielmodels
48+
conda activate dielmodels
49+
50+
pip install -r requirements.txt
51+
pip install -e .
52+
```
53+
54+
## Using the tool
2855
Using this package, you can handle generic or multi-tissue models by:
2956

3057
* Assigning day and night;
@@ -35,7 +62,11 @@ Using this package, you can handle generic or multi-tissue models by:
3562

3663
If each method is to be applied individually it is essential that the first 3 steps are applied in that order specifically.
3764

38-
**Alternatively, it is possible to apply all methods to a given model, running the entire pipeline (where the arguments are all relative to the original model), as shown below:**
65+
**Alternatively, you can apply all methods to a given model by running the entire pipeline, with all arguments relative to the original model**
66+
67+
This approach has been applied to multiple models, as demonstrated in the [Examples](examples) folder, both generic (e.g. [_Athaliana13_](examples/Athaliana_cheung13.py)) and multi-tissue (e.g. [_MultiQuercus_](examples/MultiQuercus.py)).
68+
69+
Briefly, the pipeline is applied as follows:
3970

4071
- Generic model:
4172

@@ -48,6 +79,8 @@ model = cobra.io.read_sbml_model('.../.../desired_single_tissue_model.xml')
4879
storage_pool_metabolites = ['Metabolite_ID_1', 'Metabolite_ID_2', 'Metabolite_ID_3']
4980

5081
diel_models_creator(model, storage_pool_metabolites, ['Photon_Reaction_ID'], ['Nitrate_Reaction_ID'], 'Biomass_Reaction_ID')
82+
83+
cobra.io.write_sbml_model(model, desired_path)
5184
```
5285

5386
where the nitrate uptake ratio is 3:2, since _day_ratio_value_ is 3 and _night_ratio_value_ is 2.
@@ -63,6 +96,7 @@ model = cobra.io.read_sbml_model('.../.../desired_single_tissue_model.xml')
6396
storage_pool_metabolites = ['Metabolite_ID_1', 'Metabolite_ID_2', 'Metabolite_ID_3']
6497

6598
diel_models_creator(model, storage_pool_metabolites, ['Photon_Reaction_ID'], ['Nitrate_Reaction_ID'], 'Biomass_Reaction_ID', day_ratio_value=desired_value_1, night_ratio_value=desired_value_2)
99+
cobra.io.write_sbml_model(model, desired_path)
66100
```
67101

68102
- Multi-tissue model:
@@ -78,6 +112,7 @@ storage_pool_metabolites = ['Metabolite_ID_1', 'Metabolite_ID_2', 'Metabolite_ID
78112
tissues = ['Tissue_ID_1', 'Tissue_ID_2']
79113

80114
diel_models_creator(model, storage_pool_metabolites, ['Photon_Reaction_ID'], ['Nitrate_Reaction_ID'], 'Biomass_Reaction_ID', tissues)
115+
cobra.io.write_sbml_model(model, desired_path)
81116
```
82117

83118
where the nitrate uptake ratio is 3:2, but it's also possible to adjust this ratio to different values.

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = diel_models
3-
version = 1.2.2
3+
version = 1.2.3
44
description = diel_models:
55
long_description = file: README.md
66
long_description_content_type = text/markdown

0 commit comments

Comments
 (0)