bix 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/bix/gtf.rb +5 -1
- metadata +2 -2
data/lib/bix/gtf.rb
CHANGED
@@ -5,7 +5,7 @@ module Bix
|
|
5
5
|
attr_accessor :chr, :prog, :feature, :start, :stop, :score, :strand, :frame, :props
|
6
6
|
|
7
7
|
def from_line(line)
|
8
|
-
f = line.chomp.split("\t", -1)
|
8
|
+
f = line.chomp.rstrip.split("\t", -1)
|
9
9
|
@chr = f[0]
|
10
10
|
@prog = f[1]
|
11
11
|
@feature = f[2]
|
@@ -34,6 +34,10 @@ module Bix
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
+
def size
|
38
|
+
return @stop - @start + 1
|
39
|
+
end
|
40
|
+
|
37
41
|
# E.g. to get all exons
|
38
42
|
def self.get_all(io, feature_regex=//)
|
39
43
|
gtfs = []
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: bix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.6
|
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-02
|
13
|
+
date: 2012-07-02 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: swak
|