CellML Discussion List

Text archives Help


[cellml-discussion] Best Import/Encapsulation methods


Chronological Thread 
  • From: habib_lafir at hotmail.com (----- -----)
  • Subject: [cellml-discussion] Best Import/Encapsulation methods
  • Date: Mon, 06 Aug 2007 17:15:08 +0400

Hi everyone,

Ive been creating a few models and Importing them and such to create more
complex model.

Example :
I have 2 existing files (models) promoter-RBS_repressed and protein.
These 2 respectively contain components promoter-RBS_repressed and Protein.

promoter-RBS_repressed has an input of repressorConcentration and an output
of synthesisRate.
protein has an input of synthesisRate and an output of proteinConcentration.

I want to create a single file with input: repressor concentration and
output: protein concentration.


What I have done is to create a 3rd file : repressed_protein-generator ,
create a component : repressed_protein-generator,
create connections and groups such that variables are recieved (from other
models) by repressed protein generator and 'relayed' to
promoter-RBS_repressed and any output variables from Protein are relayed to
repressed_protein-generator which can output them.

Segments of code from repressed_protein-generator:

<group>
<relationship_ref name="repressed_protein-generator"
relationship="encapsulation"/>
<component_ref component="repressed_protein-generator">
<component_ref component="promoter-RBS_repressed"/>
<component_ref component="Protein"/>
</component_ref>
</group>
......................................................

<component name="repressed_protein-generator">

<variable name="proteinConcentration" private_interface="in"
public_interface="out" units="mole"/>
<variable name="repressorConcentration" private_interface="out"
public_interface="in" units="mole"/>

</component>
.....................................................

<connection>
<map_components component_1="repressed_protein-generator"
component_2="promoter-RBS_repressed"/>
<map_variables variable_1="repressorConcentration"
variable_2="repressorConcentration"/>
</connection>

<connection>
<map_components component_1="promoter-RBS_repressed"
component_2="Protein"/>
<map_variables variable_1="synthesisRate"
variable_2="synthesisRate"/>
</connection>

<connection>
<map_components component_1="Protein"
component_2="repressed_protein-generator"/>
<map_variables variable_1="proteinConcentration"
variable_2="proteinConcentration"/>
</connection>




My question is : Is there a better way (more natural way..) to do this in
CellML ?


Thank you.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





Archive powered by MHonArc 2.6.18.

Top of page