Groovy web console

subscribe to the feed Subscribe
to this
site
embed in your blog Embed
this
script
Biomedical DSL for antimalaria drug resistance studies (via #groovywebconsole)
tweet this snippet Tweet
this
script

To embed this script in your site, just drop the content below where you want to embed it.

Biomedical DSL for antimalaria drug resistance studies

Published 1 month ago by glaforge with tags dsl
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
cqCompound = Compound(name: "Chloroquinine", abbreviation: "cq", halfLife: 45)

cqDrug = Drug(name: "Chloroquinine", abbreviation: "cq")
cqDrug.include 300.mg, of: cqCompound

regimen {
    take 2.pills, of: cqDrug, in: 0.day
    take 2.pills, of: cqDrug, in: 1.day
    take 1.pill,  of: cqDrug, in: 2.days
}

effect(
    name: "General"
    formula: { 3.8 / ( 1 + km1 / cq ) }
    parameters: [km1: 68.0]
)

Recent scripts