newick-ruby 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +1 -0
  2. data/bin/newickDraw +2 -1
  3. data/lib/Newick.rb +1 -1
  4. metadata +4 -4
data/README CHANGED
@@ -16,6 +16,7 @@ jhbadger@gmail.com
16
16
 
17
17
  UPDATES:
18
18
  1.0.2 -- faster distance matrix calculation
19
+ 1.0.3 -- fixed colors in highlights when drawing trees
19
20
 
20
21
  License
21
22
  (The MIT License)
data/bin/newickDraw CHANGED
@@ -40,11 +40,12 @@ ARGV.options {|o|
40
40
  highlights = Hash.new
41
41
  if (opt.highlights)
42
42
  opt.highlights.split(",").each {|highlight|
43
- highlights[highlight] = [255, 0, 0]
43
+ highlights[highlight] = "red"
44
44
  }
45
45
  elsif (opt.file)
46
46
  File.new(opt.file).each {|line|
47
47
  name, color = line.chomp.split(" ")
48
+ color = "red" if color.nil?
48
49
  highlights[name] = color
49
50
  }
50
51
  end
data/lib/Newick.rb CHANGED
@@ -735,7 +735,7 @@ class NewickTree
735
735
  yUnit = 0.25
736
736
  lineWidth = 0.01
737
737
  elsif (taxa.size < 150)
738
- fontSize = 8
738
+ fontSize = 6
739
739
  yUnit = 0.197
740
740
  lineWidth = 0.01
741
741
  elsif (taxa.size < 300)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newick-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan Badger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-08 00:00:00 -08:00
18
+ date: 2010-12-07 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency