-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Evgeny Metelkin
committed
Jan 24, 2024
1 parent
fa08628
commit f599d0e
Showing
10 changed files
with
307 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
### Basic .gitattributes for a Heta repo. | ||
# Note that binary is a macro for -text -diff. | ||
|
||
* text=auto | ||
|
||
# main files | ||
# to have heta files in linux style line endings | ||
*.heta text eol=lf | ||
*.xlsx binary | ||
|
||
# auxilary files | ||
*.bash text eol=lf | ||
*.sh text eol=lf | ||
*.xlsm binary | ||
*.xls binary | ||
*.pptx binary | ||
*.ppt binary | ||
|
||
# code | ||
*.md text | ||
*.m text | ||
# -diff | ||
*.slv text eol=crlf diff=slv | ||
*.dat text eol=crlf diff=dat | ||
*.cpp text | ||
*.svg text diff=xml | ||
*.xml text diff=xml | ||
*.sbml text diff=xml | ||
|
||
# LFS (large files) | ||
large/* filter=lfs diff=lfs merge=lfs -text | ||
literature/* filter=lfs diff=lfs merge=lfs -text | ||
*.zip filter=lfs diff=lfs merge=lfs -text | ||
*.rar filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Heta specific files and dirs | ||
/dist | ||
/draft | ||
/drafts | ||
/meta | ||
|
||
### temporal files | ||
*.tmp | ||
~$*.* | ||
*.log | ||
.Rhistory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"builderVersion": "*", | ||
"id": "template", | ||
"notes": "platform notes", | ||
"version": "v0.1.0", | ||
"license": "UNLICENSED", | ||
"options": { | ||
"unitsCheck": true | ||
}, | ||
"importModule": { | ||
"type": "heta", | ||
"source": "src/index.heta" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
template file for creating platform | ||
*/ | ||
// add qsp units | ||
include ./qsp-units.heta; | ||
t {units: h}; | ||
|
||
p1 @Record .= 1 {units: uM}; | ||
c1 @Compartment .= 3 {units: L}; | ||
c2 @Compartment .= 4 {units: mL}; | ||
c3 @Compartment .= 5 {units: m}; | ||
|
||
s1 @Species {compartment: c1, units: mM} .= 10; | ||
s2 @Species {compartment: c2, units: mM} .= 10; | ||
s3 @Species {compartment: c3, units: mmole/m} .= 10; | ||
|
||
r1 @Reaction {actors: s1=>s2, units: mmole/h} := k1 * s1 * c1; | ||
/* | ||
d(s1*c1)/dt = - r1; left: mMole*L/minute, right: 1/h*mMole*h !!! | ||
d(s2*c2)/dt = r1; left: mMole*mL/minute, right: 1/h*mMole*h !!! | ||
*/ | ||
|
||
k1 @Const = 1e-3 {units: 1/h}; | ||
|
||
// exports | ||
#export { format: JSON, filepath: output }; | ||
//#export { format: YAML }; | ||
//#export { format: XLSX, omitRows: 3, splitByClass: true }; | ||
//#export { format: SBML, version: L2V4 }; | ||
//#export { format: SLV, eventsOff: false }; | ||
//#export { format: DBSolve }; | ||
//#export { format: Simbio }; | ||
//#export { format: Mrgsolve }; | ||
//#export { format: Matlab }; | ||
//#export { format: Julia }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
fmole #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-15 } ] | ||
}; | ||
pmole #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-12 } ] | ||
}; | ||
nmole #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-9 } ] | ||
}; | ||
umole #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-6 } ] | ||
}; | ||
mmole #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-3 } ] | ||
}; | ||
fM #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-15 }, { kind: litre, exponent: -1} ] | ||
}; | ||
|
||
pM #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-12 }, { kind: litre, exponent: -1} ] | ||
}; | ||
nM #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-9 }, { kind: litre, exponent: -1} ] | ||
}; | ||
uM #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-6 }, { kind: litre, exponent: -1} ] | ||
}; | ||
mM #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e-3 }, { kind: litre, exponent: -1} ] | ||
}; | ||
M #defineUnit { | ||
units: [ { kind: mole }, { kind: litre, exponent: -1} ] | ||
}; | ||
kM #defineUnit { | ||
units: [ { kind: mole, multiplier: 1e3 }, { kind: litre, exponent: -1 } ] | ||
}; | ||
|
||
fL #defineUnit { | ||
units: [ { kind: litre, multiplier: 1e-15 } ] | ||
}; | ||
pL #defineUnit { | ||
units: [ { kind: litre, multiplier: 1e-12 } ] | ||
}; | ||
nL #defineUnit { | ||
units: [ { kind: litre, multiplier: 1e-9 } ] | ||
}; | ||
uL #defineUnit { | ||
units: [ { kind: litre, multiplier: 1e-6 } ] | ||
}; | ||
mL #defineUnit { | ||
units: [ { kind: litre, multiplier: 1e-3 } ] | ||
}; | ||
dL #defineUnit { | ||
units: [ { kind: litre, multiplier: 1e-1 } ] | ||
}; | ||
L #defineUnit { | ||
units: [ { kind: litre } ] | ||
}; | ||
|
||
fs #defineUnit { | ||
units: [ { kind: second, multiplier: 1e-15 } ] | ||
}; | ||
ps #defineUnit { | ||
units: [ { kind: second, multiplier: 1e-12 } ] | ||
}; | ||
ns #defineUnit { | ||
units: [ { kind: second, multiplier: 1e-9 } ] | ||
}; | ||
us #defineUnit { | ||
units: [ { kind: second, multiplier: 1e-6 } ] | ||
}; | ||
ms #defineUnit { | ||
units: [ { kind: second, multiplier: 1e-3 } ] | ||
}; | ||
s #defineUnit { | ||
units: [ { kind: second } ] | ||
}; | ||
h #defineUnit { | ||
units: [ { kind: hour, multiplier: 1 } ] | ||
}; | ||
week #defineUnit { | ||
units: [ { kind: day, multiplier: 7 } ] | ||
}; | ||
|
||
fg #defineUnit { | ||
units: [ { kind: kilogram, multiplier: 1e-18 } ] | ||
}; | ||
pg #defineUnit { | ||
units: [ { kind: kilogram, multiplier: 1e-15 } ] | ||
}; | ||
ng #defineUnit { | ||
units: [ { kind: kilogram, multiplier: 1e-12 } ] | ||
}; | ||
ug #defineUnit { | ||
units: [ { kind: kilogram, multiplier: 1e-9 } ] | ||
}; | ||
mg #defineUnit { | ||
units: [ { kind: kilogram, multiplier: 1e-6 } ] | ||
}; | ||
g #defineUnit { | ||
units: [ { kind: kilogram, multiplier: 1e-3 } ] | ||
}; | ||
kg #defineUnit { | ||
units: [ { kind: kilogram } ] | ||
}; | ||
|
||
kat #defineUnit { | ||
units: [ { kind: katal } ] | ||
}; | ||
|
||
cell #defineUnit { | ||
units: [ { kind: item } ] | ||
}; | ||
kcell #defineUnit { | ||
units: [ { kind: item, multiplier: 1e3 } ] | ||
}; | ||
|
||
cal #defineUnit { | ||
units: [ { kind: joule, multiplier: 4.1868 } ] | ||
}; | ||
kcal #defineUnit { | ||
units: [ { kind: joule, multiplier: 4.1868e3 } ] | ||
}; | ||
|
||
fm #defineUnit { | ||
units: [ { kind: metre, multiplier: 1e-15 } ] | ||
}; | ||
pm #defineUnit { | ||
units: [ { kind: metre, multiplier: 1e-12 } ] | ||
}; | ||
nm #defineUnit { | ||
units: [ { kind: metre, multiplier: 1e-9 } ] | ||
}; | ||
um #defineUnit { | ||
units: [ { kind: metre, multiplier: 1e-6 } ] | ||
}; | ||
mm #defineUnit { | ||
units: [ { kind: metre, multiplier: 1e-13 } ] | ||
}; | ||
cm #defineUnit { | ||
units: [ { kind: metre, multiplier: 1e-2 } ] | ||
}; | ||
m #defineUnit { | ||
units: [ { kind: metre } ] | ||
}; | ||
|
||
UL #defineUnit { | ||
units: [ { kind: dimensionless } ] | ||
}; | ||
percent #defineUnit { | ||
units: [ { kind: dimensionless, multiplier: 1e-2 } ] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters