cell_cycle 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -8
- data/lib/cell_cycle/version.rb +1 -1
- data/lib/cell_cycle/virginia_tech.rb +11 -4
- data/lib/cell_cycle/virginia_tech/mammalian_constants.rb +1 -0
- data/test/virginia_test.rb +4 -29
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1978860782bfef5d19a9c73abe03674cf897f164
|
4
|
+
data.tar.gz: f31be75edc485cd6da503c0d30360ae292b9dee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70af9f3658d83a79f36b18f8e8543c6bf63dd66d26ec2d57a0eab052fb23903e72bdacf99ad709caed2f14648bd8c28c56e8e1f85e48765aa8360a7180c3ee29
|
7
|
+
data.tar.gz: 88d81199e0e9a52c46da6a6462ba147b24665d43c209497793d9e0280a2438801d2aa47ae1fcec3639c6d7b61963aa0473d0b31b686c71472e509d2eef0677aa
|
data/README.md
CHANGED
@@ -4,21 +4,32 @@ Cell cycle model.
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
You can install it by
|
8
8
|
|
9
|
-
gem
|
9
|
+
$ gem install cell_cycle
|
10
10
|
|
11
|
-
|
11
|
+
## Usage
|
12
12
|
|
13
|
-
|
13
|
+
This gem contains two versions of cell cycle. Both of them contain an engine,
|
14
|
+
a Petri net whose execution results in cycling, and 3 output places: A_phase,
|
15
|
+
S_phase and Cdc20A.
|
14
16
|
|
15
|
-
|
17
|
+
Simple version of the cell cycle is called by:
|
16
18
|
|
17
|
-
|
19
|
+
require 'cell_cycle/simple'
|
18
20
|
|
19
|
-
|
21
|
+
You can then try
|
22
|
+
|
23
|
+
s = CELL_CYCLE.default_simulation
|
24
|
+
s.run!
|
25
|
+
s.recording.print
|
26
|
+
s.recording.plot except: [ Timer ] # relies on Gnuplot
|
27
|
+
|
28
|
+
And a more complex one, developed at Virginia Institute of Technology, and called by:
|
29
|
+
|
30
|
+
require 'cell_cycle/virginia_tech'
|
20
31
|
|
21
|
-
|
32
|
+
This one
|
22
33
|
|
23
34
|
## Contributing
|
24
35
|
|
data/lib/cell_cycle/version.rb
CHANGED
@@ -22,9 +22,6 @@ end
|
|
22
22
|
|
23
23
|
def fod &nullary_block; FirstOrderDegradation.new &nullary_block end
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
25
|
# ==============================================================================
|
29
26
|
# THE MODEL ITSELF
|
30
27
|
# ==============================================================================
|
@@ -45,10 +42,20 @@ CASE = 1; G2_MODULE = true
|
|
45
42
|
# cell_cycle/virginia/mammalian_constants.rb
|
46
43
|
# ==============================================================================
|
47
44
|
|
48
|
-
begin; require_relative '
|
45
|
+
begin; require_relative 'virginia_tech/mammalian_constants'; rescue LoadError
|
49
46
|
require './virginia_tech/mammalian_constants'
|
50
47
|
end
|
51
48
|
|
49
|
+
# begin
|
50
|
+
# require_relative 'mammalian_constants'
|
51
|
+
# rescue LoadError
|
52
|
+
# begin
|
53
|
+
# require './mammalian_constants'
|
54
|
+
# rescue LoadError
|
55
|
+
# require 'cell_cycle/mammalian_constants.rb'
|
56
|
+
# end
|
57
|
+
# end
|
58
|
+
|
52
59
|
# == PLACES =====================================================================
|
53
60
|
|
54
61
|
# Cell mass
|
data/test/virginia_test.rb
CHANGED
@@ -1,42 +1,17 @@
|
|
1
1
|
#! /usr/bin/ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
|
+
|
4
5
|
require 'minitest/autorun'
|
5
6
|
require 'sy'
|
6
7
|
require 'y_nelson' and include YNelson
|
7
8
|
|
8
|
-
|
9
|
-
.tap { |s| s.singleton_class.class_exec do attr_accessor :loaded end }
|
10
|
-
.tap { |s| s.loaded = {} }
|
11
|
-
|
12
|
-
require_once = -> path do
|
13
|
-
bp.loaded[ path ] or
|
14
|
-
require( bp + path ) && bp.loaded.update( path => true )
|
15
|
-
end
|
16
|
-
|
17
|
-
describe :mammalian_cell_cycle do
|
9
|
+
describe "virginia tech cell cycle" do
|
18
10
|
before do
|
19
|
-
|
20
|
-
require_once.( 'michaelis_menten' )
|
21
|
-
require_once.( 'general_assumptions' )
|
22
|
-
require_once.( 'cell_cycle/virginia' )
|
11
|
+
require './../lib/cell_cycle/virginia_tech'
|
23
12
|
end
|
24
13
|
|
25
|
-
|
26
|
-
it "should have version loaded" do
|
27
|
-
TtpPathway::VERSION.must_be_kind_of String
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should have michaelis_menten loaded" do
|
31
|
-
[ Vmax, Km_reduced, Occupancy, MMi ].all? &[ :kind_of?, Proc ]
|
32
|
-
end
|
33
|
-
|
34
|
-
it "should have general_assumptions loaded" do
|
35
|
-
assert defined? Cell_diameter
|
36
|
-
assert defined? Cytoplasm_volume
|
37
|
-
assert defined? Pieces_per_µM
|
38
|
-
end
|
39
|
-
end
|
14
|
+
# TODO: This is how far I came.
|
40
15
|
|
41
16
|
describe "basic elements" do
|
42
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.0.
|
4
|
+
version: 0.0.3
|
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-
|
11
|
+
date: 2014-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|