bix 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/bix/gtf.rb +7 -3
  2. metadata +2 -2
@@ -13,10 +13,10 @@ module Bix
13
13
  raise if @start < 1
14
14
  @stop = f[4].to_i
15
15
  raise if @stop < 1
16
- @score = f[5].to_f
16
+ @score = f[5]
17
17
  @strand = f[6]
18
18
  raise if @strand.size > 1
19
- @frame = f[7].to_i
19
+ @frame = f[7]
20
20
 
21
21
  group = f[8]
22
22
 
@@ -68,7 +68,11 @@ module Bix
68
68
  if i > 0
69
69
  propstr << " "
70
70
  end
71
- propstr << "#{key} \"#{value}\";"
71
+ if value.include?(" ")
72
+ propstr << "#{key} \"#{value}\";"
73
+ else
74
+ propstr << "#{key} #{value};"
75
+ end
72
76
  i += 1
73
77
  end
74
78
  return [@chr, @prog, @feature, @start, @stop, @score, @strand, @frame, propstr].join("\t")
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bix
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jesse Rodriguez
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-07-02 00:00:00 Z
13
+ date: 2013-01-21 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: swak