SB Course

From CSBLwiki

(Difference between revisions)
Jump to: navigation, search
(Readings)
(2009 Fall)
Line 46: Line 46:
****download pathway map - [ftp://ftp.genome.jp/pub/kegg/pathway_gif/ KEGG pathway_gif ftp] - The final GIF version of KEGG PATHWAY (to be removed)
****download pathway map - [ftp://ftp.genome.jp/pub/kegg/pathway_gif/ KEGG pathway_gif ftp] - The final GIF version of KEGG PATHWAY (to be removed)
<pre>
<pre>
-
library(SBMLR)
+
source("http://bioconductor.org/biocLite.R")
-
library(odesolve)
+
biocLite()
 +
biocLite(c("KEGGgraph","SBMLR"))
 +
library(KEGGgraph)
 +
##
 +
##---- The following example performs a perturbation in PRPP from 5 to 50 uM in Curto et
 +
library(SBMLR)  
 +
library(odesolve)
 +
curto=readSBML(file.path(system.file(package="SBMLR"), "models/curto.xml"))
 +
summary(curto)
 +
names(curto)
 +
out1=simulate(curto,seq(-20,0,1))
 +
curto$species$PRPP$ic=50
 +
out2=simulate(curto,0:70)
 +
outs=data.frame(rbind(out1,out2))
 +
 
 +
attach(outs)
 +
par(mfrow=c(2,1))
 +
plot(time,IMP,type="l")
 +
plot(time,HX,type="l")
 +
par(mfrow=c(1,1))
 +
detach(outs)
 +
 
 +
# which should be the same plots as
 +
curto=readSBMLR(file.path(system.file(package="SBMLR"), "models/curto.r"))
 +
out1=simulate(curto,seq(-20,0,1))
 +
curto$species$PRPP$ic=50
 +
out2=simulate(curto,0:70)
 +
outs=data.frame(rbind(out1,out2))
 +
 
 +
attach(outs)
 +
par(mfrow=c(2,1))
 +
plot(time,IMP,type="l")
 +
plot(time,HX,type="l")
 +
par(mfrow=c(1,1))
 +
detach(outs)
 +
 
 +
##---- The following example uses fderiv to generate Morrison's folate system response to
 +
morr=readSBMLR(file.path(system.file(package="SBMLR"), "models/morrison.r"))
 +
out1=simulate(morr,seq(-20,0,1))
 +
morr$species$EMTX$ic=1
 +
out2=simulate(morr,0:30)
 +
outs=data.frame(rbind(out1,out2))
 +
 
 +
attach(outs)
 +
pdf(file="output.pdf",paper="A4")
 +
par(mfrow=c(3,4))
 +
plot(time,FH2b,type="l",xlab="Hours")
 +
plot(time,FH2f,type="l",xlab="Hours")
 +
plot(time,DHFRf,type="l",xlab="Hours")
 +
plot(time,DHFRtot,type="l",xlab="Hours")
 +
plot(time,CHOFH4,type="l",xlab="Hours")
 +
plot(time,FH4,type="l",xlab="Hours")
 +
plot(time,CH2FH4,type="l",xlab="Hours")
 +
plot(time,CH3FH4,type="l",xlab="Hours")
 +
plot(time,AICARsyn,type="l",xlab="Hours")
 +
plot(time,MTR,type="l",xlab="Hours")
 +
plot(time,TYMS,type="l",xlab="Hours")
 +
#plot(time,EMTX,type="l",xlab="Hours")
 +
plot(time,DHFReductase,type="l",xlab="Hours")
 +
dev.off()
</pre>
</pre>

Revision as of 04:14, 28 November 2009

Contents

Biomodel database

Running SBML

R-project

Matlab

M = getstoichmatrix(modelObj)
[M,objSpecies] = getstoichmatrix(modelObj)
[M,objSpecies,objReactions] = getstoichmatrix(modelObj)

Readings

Term project

2009 Fall

source("http://bioconductor.org/biocLite.R")
biocLite()
biocLite(c("KEGGgraph","SBMLR"))
library(KEGGgraph)
##
##---- The following example performs a perturbation in PRPP from 5 to 50 uM in Curto et 
library(SBMLR) 
library(odesolve) 
curto=readSBML(file.path(system.file(package="SBMLR"), "models/curto.xml"))
summary(curto)
names(curto)
out1=simulate(curto,seq(-20,0,1)) 
curto$species$PRPP$ic=50 
out2=simulate(curto,0:70) 
outs=data.frame(rbind(out1,out2))

attach(outs) 
par(mfrow=c(2,1)) 
plot(time,IMP,type="l") 
plot(time,HX,type="l") 
par(mfrow=c(1,1)) 
detach(outs)

# which should be the same plots as 
curto=readSBMLR(file.path(system.file(package="SBMLR"), "models/curto.r")) 
out1=simulate(curto,seq(-20,0,1)) 
curto$species$PRPP$ic=50 
out2=simulate(curto,0:70) 
outs=data.frame(rbind(out1,out2)) 

attach(outs) 
par(mfrow=c(2,1)) 
plot(time,IMP,type="l") 
plot(time,HX,type="l") 
par(mfrow=c(1,1)) 
detach(outs)

##---- The following example uses fderiv to generate Morrison's folate system response to 
morr=readSBMLR(file.path(system.file(package="SBMLR"), "models/morrison.r")) 
out1=simulate(morr,seq(-20,0,1)) 
morr$species$EMTX$ic=1 
out2=simulate(morr,0:30) 
outs=data.frame(rbind(out1,out2)) 

attach(outs)
pdf(file="output.pdf",paper="A4")
par(mfrow=c(3,4)) 
plot(time,FH2b,type="l",xlab="Hours") 
plot(time,FH2f,type="l",xlab="Hours") 
plot(time,DHFRf,type="l",xlab="Hours") 
plot(time,DHFRtot,type="l",xlab="Hours") 
plot(time,CHOFH4,type="l",xlab="Hours") 
plot(time,FH4,type="l",xlab="Hours") 
plot(time,CH2FH4,type="l",xlab="Hours") 
plot(time,CH3FH4,type="l",xlab="Hours") 
plot(time,AICARsyn,type="l",xlab="Hours") 
plot(time,MTR,type="l",xlab="Hours") 
plot(time,TYMS,type="l",xlab="Hours") 
#plot(time,EMTX,type="l",xlab="Hours") 
plot(time,DHFReductase,type="l",xlab="Hours")
dev.off()
Personal tools
Namespaces
Variants
Actions
Site
Choi lab
Resources
Toolbox