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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16fa9dd102f38e28071366b53da9752f8e332785
4
- data.tar.gz: 49cc905bc4a42fcaef78c882d3082567ef3fa705
3
+ metadata.gz: dce3f739814e5f5dcb459a2d1c2f66f40adf6a54
4
+ data.tar.gz: 0b9ba146d61529716fb2f2afe3d7418bcc45ed95
5
5
  SHA512:
6
- metadata.gz: 22047cc300354bc3a0f0c5f018dfd442ba53583069e9d3c34c1d0a78e181580d7ea54e8076d8f5b10496876577a9fb35c729d80e071cd840db1c1b596c5a4f18
7
- data.tar.gz: 4550945464c1112d256248333203cdbd46e6b2611ec84c61e6de3a98674120accf441944690ef276bf73b72ba0e8594ac7e240af22e6f7b134b4295216de4bec
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
- This one
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
 
@@ -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
- require 'cell_cycle'
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
- = S_phase_start.in :s
34
- = S_phase_end.in :s
35
- = A_phase_start.in :s
36
- = A_phase_end.in :s
37
- Cdc20Aα = Cdc20A_start.in :s
38
- Cdc20Aω = Cdc20A_end.in :s
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
- A_phase_ϝ = Transition assignment: -> t { t > && t < ? 1 : 0 },
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
- S_phase_ϝ = Transition assignment: -> t { t > && t < ? 1 : 0 },
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
- Cdc20A_ϝ = Transition assignment: -> t { t < Cdc20Aω || t > Cdc20Aα ? 1 : 0 },
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 << A_phase_ϝ << S_phase_ϝ << Cdc20A_ϝ
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 ),
@@ -1,5 +1,5 @@
1
1
  module CellCycle
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  # TODO: Once Net class is made a subclass of module, I can define
4
4
  # VERSION constant directly on it. If it turns out plausible.
5
5
  end
@@ -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
- require 'cell_cycle'
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/mammalian_constants'; rescue LoadError
46
- require './virginia_tech/mammalian_constants'
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 [ :A_phase_ϝ, :S_phase_ϝ, :Cdc20A_ϝ ]
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 :pseudo_euler
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
@@ -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: This is how far I came.
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.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: 2014-10-15 00:00:00.000000000 Z
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/mammalian_constants.rb
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.2.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.