cell_cycle 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/cell_cycle/simple.rb +11 -11
- data/lib/cell_cycle/version.rb +1 -1
- data/lib/cell_cycle/virginia_tech.rb +3 -3
- data/lib/cell_cycle/virginia_tech/{mammalian_constants.rb → parameters.rb} +3 -4
- data/test/simple_test.rb +2 -2
- data/test/virginia_test.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dce3f739814e5f5dcb459a2d1c2f66f40adf6a54
|
4
|
+
data.tar.gz: 0b9ba146d61529716fb2f2afe3d7418bcc45ed95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 341fcbf722125071761ea284641b6daf130960830ce51b4904b531917b5fa5c0e51b9029f65d52f891b558caef7eae640010320d5159b6ea6111a46a3581ceb0
|
7
|
+
data.tar.gz: 1fcc82fa61087b0e92237a926cbde6c7345b79ab06f50e66e427fa3b4e2d2c9f767da25b6c2e0f86d616ea9e3ebba478d44238d71ae661ac4ed37cbc0525ae27
|
data/README.md
CHANGED
@@ -29,7 +29,12 @@ And a more complex one, developed at Virginia Institute of Technology, and calle
|
|
29
29
|
|
30
30
|
require 'cell_cycle/virginia_tech'
|
31
31
|
|
32
|
-
|
32
|
+
You can then try
|
33
|
+
|
34
|
+
run!
|
35
|
+
|
36
|
+
The current version of the Virginia Tech cell cycle takes a long time to execute, but
|
37
|
+
once the waiting is over, you can display the results
|
33
38
|
|
34
39
|
## Contributing
|
35
40
|
|
data/lib/cell_cycle/simple.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# phase. Cdc20A represents the APC (Anaphase Promoting Complex). When present,
|
7
7
|
# it degrades the cell cycle enzyme machinery.
|
8
8
|
|
9
|
-
|
9
|
+
require_relative '../cell_cycle'
|
10
10
|
|
11
11
|
# Constants that control the cell cycle settings.
|
12
12
|
S_phase_duration = 12.h
|
@@ -30,12 +30,12 @@ Cdc20A_end = 20.min
|
|
30
30
|
=end
|
31
31
|
|
32
32
|
# Figure them out as numbers in seconds.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
33
|
+
S_s = S_phase_start.in :s
|
34
|
+
S_e = S_phase_end.in :s
|
35
|
+
A_s = A_phase_start.in :s
|
36
|
+
A_e = A_phase_end.in :s
|
37
|
+
Cdc20A_s = Cdc20A_start.in :s
|
38
|
+
Cdc20A_e = Cdc20A_end.in :s
|
39
39
|
|
40
40
|
# Timer place
|
41
41
|
Timer = Place m!: 0
|
@@ -54,18 +54,18 @@ CELL_CYCLE << Timer << Clock << A_phase << S_phase << Cdc20A
|
|
54
54
|
# Assignment transitions that control the state of the places A_phase, S_phase
|
55
55
|
# and Cdc20A.
|
56
56
|
#
|
57
|
-
|
57
|
+
A_phase_f = Transition assignment: -> t { t > A_s && t < A_e ? 1 : 0 },
|
58
58
|
domain: Timer,
|
59
59
|
codomain: A_phase
|
60
|
-
|
60
|
+
S_phase_f = Transition assignment: -> t { t > S_s && t < S_e ? 1 : 0 },
|
61
61
|
domain: Timer,
|
62
62
|
codomain: S_phase
|
63
|
-
|
63
|
+
Cdc20A_f = Transition assignment: -> t { t < Cdc20A_e || t > Cdc20A_s ? 1 : 0 },
|
64
64
|
domain: Timer,
|
65
65
|
codomain: Cdc20A
|
66
66
|
|
67
67
|
# Include the A transitions in the CELL_CYCLE net.
|
68
|
-
CELL_CYCLE <<
|
68
|
+
CELL_CYCLE << A_phase_f << S_phase_f << Cdc20A_f
|
69
69
|
|
70
70
|
def CELL_CYCLE.default_simulation
|
71
71
|
simulation time: 0..36.h.in( :s ),
|
data/lib/cell_cycle/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Generic cell cycle published in Csikasznagy2006agm. Mammalian constants used.
|
4
4
|
# Initial state was obtained as described in Csikasznagy2006agm.
|
5
5
|
|
6
|
-
|
6
|
+
require_relative '../cell_cycle'
|
7
7
|
|
8
8
|
# == TRICKS =====================================================================
|
9
9
|
|
@@ -42,8 +42,8 @@ CASE = 1; G2_MODULE = true
|
|
42
42
|
# cell_cycle/virginia/mammalian_constants.rb
|
43
43
|
# ==============================================================================
|
44
44
|
|
45
|
-
begin; require_relative 'virginia_tech/
|
46
|
-
require './
|
45
|
+
begin; require_relative 'virginia_tech/parameters'; rescue LoadError
|
46
|
+
require './parameters'
|
47
47
|
end
|
48
48
|
|
49
49
|
# begin
|
@@ -5,7 +5,6 @@
|
|
5
5
|
# PUBLICATION ID: Csikasznagy2006agm
|
6
6
|
# ==============================================================================
|
7
7
|
|
8
|
-
|
9
8
|
require 'sy'; require 'y_nelson' and include YNelson
|
10
9
|
|
11
10
|
# Golbeter-Koshland function used in Csikasznagy2006agm.
|
@@ -121,9 +120,6 @@ DATA = {
|
|
121
120
|
CycD⁰: { BY: 0.108, MA: 0.5, FY: 0.05, G2: nil, XE: nil }
|
122
121
|
}
|
123
122
|
|
124
|
-
# We choose the mammalian parameter set.
|
125
|
-
PARAMETER_SET = :MA
|
126
|
-
|
127
123
|
# Singleton method that chooses a given set of constants. Constants starting
|
128
124
|
# with "K" are considered rate constants in min⁻¹. All values are converted to
|
129
125
|
# floats (Using #to_f method). Using eval, the keys are defined as constants
|
@@ -141,5 +137,8 @@ def DATA.choose which
|
|
141
137
|
}
|
142
138
|
end
|
143
139
|
|
140
|
+
# Mammalian parameter set will be chosen.
|
141
|
+
PARAMETER_SET = :MA
|
142
|
+
|
144
143
|
# Choose the parameter set.
|
145
144
|
DATA.choose PARAMETER_SET
|
data/test/simple_test.rb
CHANGED
@@ -22,12 +22,12 @@ describe :simple_cell_cycle do
|
|
22
22
|
A_phase_end.must_equal 17.h
|
23
23
|
Cdc20A_start.must_equal 22.h
|
24
24
|
Cdc20A_end.must_equal 1.h
|
25
|
-
CELL_CYCLE.A_tt.names.must_equal [ :
|
25
|
+
CELL_CYCLE.A_tt.names.must_equal [ :A_phase_f, :S_phase_f, :Cdc20A_f ]
|
26
26
|
# the simulation should look good
|
27
27
|
sim = CELL_CYCLE.simulation time: 0..36.h.in( :s ),
|
28
28
|
step: 1.min.in( :s ),
|
29
29
|
sampling: 20.min.in( :s )
|
30
|
-
sim.simulation_method.must_equal :
|
30
|
+
sim.simulation_method.must_equal :basic
|
31
31
|
sim.run!
|
32
32
|
sim.recording.marking( S_phase, A_phase, Cdc20A ).plot
|
33
33
|
sleep 15
|
data/test/virginia_test.rb
CHANGED
@@ -11,7 +11,7 @@ describe "virginia tech cell cycle" do
|
|
11
11
|
require './../lib/cell_cycle/virginia_tech'
|
12
12
|
end
|
13
13
|
|
14
|
-
# TODO:
|
14
|
+
# TODO: There are unwritten tests for some cell cycle modules.
|
15
15
|
|
16
16
|
describe "basic elements" do
|
17
17
|
it "should have basic interface places" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cell_cycle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- boris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,7 +60,7 @@ files:
|
|
60
60
|
- lib/cell_cycle/simple.rb
|
61
61
|
- lib/cell_cycle/version.rb
|
62
62
|
- lib/cell_cycle/virginia_tech.rb
|
63
|
-
- lib/cell_cycle/virginia_tech/
|
63
|
+
- lib/cell_cycle/virginia_tech/parameters.rb
|
64
64
|
- test/simple_test.rb
|
65
65
|
- test/virginia_test.rb
|
66
66
|
homepage: ''
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.5.1
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: A model of eukaryotic cell cycle.
|