Skip to content

Commit

Permalink
statistical test kit
Browse files Browse the repository at this point in the history
  • Loading branch information
nushio3 committed Jan 12, 2012
1 parent bf8f67d commit 7b3db1a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
25 changes: 16 additions & 9 deletions examples/GA/batch_submit.rb
Expand Up @@ -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}"
}
Expand Down
12 changes: 9 additions & 3 deletions examples/GA/make_task.rb
Expand Up @@ -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
}


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7b3db1a

Please sign in to comment.