Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

statistical test kit

  • Loading branch information...
commit 7b3db1ac829d51b0bb3b1b18fd3588d2922e5924 1 parent bf8f67d
@nushio3 authored
Showing with 25 additions and 12 deletions.
  1. +16 −9 examples/GA/batch_submit.rb
  2. +9 −3 examples/GA/make_task.rb
View
25 examples/GA/batch_submit.rb
@@ -8,23 +8,30 @@
ret = []
[2,1,0].each{|instance|
- [true,false].each{|triang|
- [true,false].each{|island|
+ ['no3','on3','333'].each{|triang|
+ [false].each{|island|
tag = ''
- tag += if triang then '-wt' else '-nt' end
- tag += if island then 'i' else 'c' end
+ tag += '-'+triang
+ tag += if island then '-i' else '-c' end
tag += "-#{instance}"
- dir = '/data0/t2g-ppc-all/nushio/GACT' + tag
+ dir = '/data0/t2g-ppc-all/nushio/GACC' + tag
- no3 = ''
- no3 = '--no3' unless triang
+ no3 = '--' + triang
islandFlag = ''
islandFlag = '--island' if island
- # job = ''
- # job = '-i genomeBank/Izanami-Gen2.dna'
+
+ #job = '-i genomeBank/Izanami-Gen2.dna'
+ #ret << "./make_task.rb -w #{dir} #{no3} #{job} #{islandFlag}"
+ #job = '-i genomeBank/Shinatsuhiko-Gen2.dna'
+ #ret << "./make_task.rb -w #{dir} #{no3} #{job} #{islandFlag}"
+ #job = '-i genomeBank/Hayaakitsuhime-Gen2.dna'
+ #ret << "./make_task.rb -w #{dir} #{no3} #{job} #{islandFlag}"
+ #job = '-i genomeBank/Iwatsuchibiko-Gen2.dna'
+ #ret << "./make_task.rb -w #{dir} #{no3} #{job} #{islandFlag}"
+
job = "-n 10 -s stat#{tag}"
ret << "./make_task.rb -w #{dir} #{no3} #{job} #{islandFlag}"
}
View
12 examples/GA/make_task.rb
@@ -54,9 +54,15 @@ def choice_by()
$mutateProb = 0.33333333333333
$crossProb = 0.33333333333333
+opt.on('--333') {
+}
opt.on('--no3') {
- $mutateProb = 0.5
- $crossProb = 0.5
+ $mutateProb = 0.33333333
+ $crossProb = 0.66666667
+}
+opt.on('--on3') {
+ $mutateProb = 0.33333333
+ $crossProb = 0.0
}
@@ -144,7 +150,7 @@ def initialize()
def loadSpecies(id, dir)
begin
- return @record[id] if id < @record.length - 30
+ return @record[id] if id < @record.length - 50
ret = Species.new
ret.id = id
Please sign in to comment.
Something went wrong with that request. Please try again.