cell_cycle 0.0.3 → 0.1.1

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: 1978860782bfef5d19a9c73abe03674cf897f164
4
- data.tar.gz: f31be75edc485cd6da503c0d30360ae292b9dee7
3
+ metadata.gz: 16fa9dd102f38e28071366b53da9752f8e332785
4
+ data.tar.gz: 49cc905bc4a42fcaef78c882d3082567ef3fa705
5
5
  SHA512:
6
- metadata.gz: 70af9f3658d83a79f36b18f8e8543c6bf63dd66d26ec2d57a0eab052fb23903e72bdacf99ad709caed2f14648bd8c28c56e8e1f85e48765aa8360a7180c3ee29
7
- data.tar.gz: 88d81199e0e9a52c46da6a6462ba147b24665d43c209497793d9e0280a2438801d2aa47ae1fcec3639c6d7b61963aa0473d0b31b686c71472e509d2eef0677aa
6
+ metadata.gz: 22047cc300354bc3a0f0c5f018dfd442ba53583069e9d3c34c1d0a78e181580d7ea54e8076d8f5b10496876577a9fb35c729d80e071cd840db1c1b596c5a4f18
7
+ data.tar.gz: 4550945464c1112d256248333203cdbd46e6b2611ec84c61e6de3a98674120accf441944690ef276bf73b72ba0e8594ac7e240af22e6f7b134b4295216de4bec
@@ -6,8 +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 'y_nelson' and include YNelson
10
- require 'sy'
9
+ require 'cell_cycle'
11
10
 
12
11
  # Constants that control the cell cycle settings.
13
12
  S_phase_duration = 12.h
@@ -50,7 +49,7 @@ S_phase = Place m!: 0
50
49
  Cdc20A = Place m!: 1
51
50
 
52
51
  # Include them in the CELL_CYCLE net.
53
- CELL_CYCLE = Net() << Timer << Clock << A_phase << S_phase << Cdc20A
52
+ CELL_CYCLE << Timer << Clock << A_phase << S_phase << Cdc20A
54
53
 
55
54
  # Assignment transitions that control the state of the places A_phase, S_phase
56
55
  # and Cdc20A.
@@ -1,3 +1,5 @@
1
1
  module CellCycle
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.1"
3
+ # TODO: Once Net class is made a subclass of module, I can define
4
+ # VERSION constant directly on it. If it turns out plausible.
3
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 'sy'; require 'y_nelson' and include YNelson
6
+ require 'cell_cycle'
7
7
 
8
8
  # == TRICKS =====================================================================
9
9
 
@@ -419,52 +419,35 @@ finalize # YNelson command that finishes the net from the prescribed commands.
419
419
  # ==============================================================================
420
420
 
421
421
 
422
+ CELL_CYCLE.merge! net # This is quite fragile, since it assumes that no places
423
+ # and/or transitions have been created before requiring
424
+ # the cell cycle gem.
422
425
 
423
426
 
427
+ # Net that defines cell growth, to be used eg. for testing or separate use.
428
+ CELL_GROWTH_NET = Net()
429
+ CELL_GROWTH_NET << Mass << Cell_growth << CycD <<
430
+ transition( :CycD_ϝ ) << CycB << ActCycB << # cyclin B
431
+ Ck_license << Cytokinesis << License_cocking # cytokinesis
424
432
 
433
+ # cell growth
434
+ def CELL_CYCLE.default_simulation
435
+ simulation time: 0..96.h.in( :s ),
436
+ step: 5,
437
+ sampling: 300
438
+ # FIXME: This method #default_simulation doesn't work, and I don't know why,
439
+ # while standard way of simulation works. I can just use the standard way
440
+ # of simulation by simply calling run! command, and fix this later.
441
+ end
425
442
 
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
- =begin
439
-
440
- # === Whole CELL_CYCLE Nelson net ===
441
-
442
- CELL_CYCLE = Net() << A_phase << S_phase << Cdc20A
443
-
444
- # === Cell growh net ===
445
-
446
- CELL_GROWTH_NET = Net() <<
447
- Mass << Cell_growth << CycD << transition( :CycD_ϝ ) << # cell growth
448
- CycB << ActCycB << # cyclin B
449
- Ck_license << Cytokinesis << License_cocking # cytokinesis
450
-
451
- set_step 5 # simulation settings
443
+ set_step 5
444
+ set_target_time 96.h.in( :s )
452
445
  set_sampling 300
453
- set_target_time 3600 * 24 * 4
454
-
455
- new_simulation
456
-
457
-
458
- pm # prints marking of the newly created simulation
459
- simulation.step! # peforms a single simulation step
460
- pm # prints marking again
461
-
462
- # simulation.run! upto: 3600 # we can run 1 hour of this simulation
463
-
464
- recording.plot # and plot the recording
465
446
 
466
- # and do other things with the recording, such as resampling,
467
- # feature extraction, saving to a file, reconstruction of a new
468
- # simulation object at a given time etc.
447
+ # I commented this out, I don't really want to run this lengthy simulation upon
448
+ # requiring the gem.
449
+ # run!
469
450
 
470
- =end
451
+ # Note: Possible things to do with the recording, such as resampling, feature
452
+ # extraction, saving to a file, reconstruction of a new simulation object at
453
+ # a given time etc.
data/lib/cell_cycle.rb CHANGED
@@ -1,5 +1,16 @@
1
1
  # encoding: utf-8
2
2
 
3
- # YSupport is a collection of methods used in Y gems.
4
- #
5
- require "cell_cycle/version"
3
+ # Mammalian cell cycle model. 2 versions available at the moment,
4
+ # 'cell_cycle/simple' and 'cell_cycle/virginia_tech'. This is the
5
+ # common 'cell_cycle.rb' file.
6
+
7
+ # Require dependencies.
8
+ require 'sy'
9
+ require 'y_nelson' and include YNelson
10
+
11
+ # Define the empty CELL_CYCLE net (its contents is to be added by
12
+ # the particular implemented cell cycle types).
13
+ CELL_CYCLE = Net()
14
+
15
+ # Cell cycle version.
16
+ require_relative "cell_cycle/version"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cell_cycle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris