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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b279cc91b177efae9a32de303f23d582e1f061b5
4
- data.tar.gz: 39b00bc0f002c0c7b676621ab58825271d92f30d
3
+ metadata.gz: 1978860782bfef5d19a9c73abe03674cf897f164
4
+ data.tar.gz: f31be75edc485cd6da503c0d30360ae292b9dee7
5
5
  SHA512:
6
- metadata.gz: c5b2008d7d4144bd1ee6a8b35d8e4fb9310e89c3a36b377b2b26455ed675dd106c9fbd73ded3f389b22ff646a92a9f63e2275461bdfdd68d41bc048ac85b8299
7
- data.tar.gz: d1b26d72b9f5c4ac1ced003eae61312ebacbec63330fb64babe858b91799c05458fe693460d3e1ad85507c08d6b76f946e3a1eb9b3619226881ae028d5f9990e
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
- Add this line to your application's Gemfile:
7
+ You can install it by
8
8
 
9
- gem 'cell_cycle'
9
+ $ gem install cell_cycle
10
10
 
11
- And then execute:
11
+ ## Usage
12
12
 
13
- $ bundle
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
- Or install it yourself as:
17
+ Simple version of the cell cycle is called by:
16
18
 
17
- $ gem install cell_cycle
19
+ require 'cell_cycle/simple'
18
20
 
19
- ## Usage
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
- TODO: Write usage instructions here
32
+ This one
22
33
 
23
34
  ## Contributing
24
35
 
@@ -1,3 +1,3 @@
1
1
  module CellCycle
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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 './virginia_tech/mammalian_constants'; rescue LoadError
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
@@ -5,6 +5,7 @@
5
5
  # PUBLICATION ID: Csikasznagy2006agm
6
6
  # ==============================================================================
7
7
 
8
+
8
9
  require 'sy'; require 'y_nelson' and include YNelson
9
10
 
10
11
  # Golbeter-Koshland function used in Csikasznagy2006agm.
@@ -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
- bp = './../../lib/'
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
- require_once.( 'ttp_pathway/version' )
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
- describe "sanity of this test itself" do
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.2
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-14 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler