public
Description:
Homepage: http://www.michaelbarton.me.uk
Clone URL: git://github.com/michaelbarton/cost_in_evolution.git
generate_fixtures.rb now produces fixtures for alignment codon costs
michaelbarton (author)
Thu Oct 09 04:16:58 -0700 2008
commit  70c5d4b972f0677c6855f586581729ab16093986
tree    2e8148a8424b9e1cabe83d3f9c39482a6dc1473e
parent  b38513681039a6b39033434e631b6a7ce198a50f
...
1
2
 
 
 
 
 
3
4
5
...
33
34
35
 
 
 
...
1
 
2
3
4
5
6
7
8
9
...
37
38
39
40
41
42
0
@@ -1,5 +1,9 @@
0
 require 'pathname'
0
-require Pathname.new(File.join(File.join(File.dirname(__FILE__),'..','..','config','environment.rb'))).cleanpath.to_s
0
+
0
+ROOT = Pathname.new(File.join(File.join(File.dirname(__FILE__),'..','..'))).cleanpath.to_s
0
+$:.unshift(ROOT)
0
+
0
+require 'config/environment'
0
 
0
 FIXTURES_DIR = Pathname.new(File.join(File.join(File.dirname(__FILE__)))).cleanpath.to_s
0
 
0
@@ -33,3 +37,6 @@ dump_models(mutations)
0
 
0
 frequencies = codons.map{|c| c.amino_acid_frequencies}.flatten
0
 dump_models(frequencies)
0
+
0
+codon_costs = codons.map{|c| c.alignment_codon_costs}.flatten
0
+dump_models(codon_costs)

Comments