bio-tm_hmm 0.1.0 → 0.2.0
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/VERSION +1 -1
- data/bin/biotm_hmm +8 -8
- data/bio-tm_hmm.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/bin/biotm_hmm
CHANGED
@@ -23,11 +23,11 @@ if $0 == __FILE__
|
|
23
23
|
"\tfasta file can also be piped in on STDIN.",
|
24
24
|
"\twithout arguments, a description of the transmembranes is printed out for each input sequence"
|
25
25
|
]
|
26
|
-
opts.on('-f','--filter-in','Print those sequences that have a transmembrane domain') do
|
27
|
-
options[:filter_in] =
|
26
|
+
opts.on('-f','--filter-in [MIN_TRANSMEMBRANE_DOMAINS]','Print those sequences that have a transmembrane domain. If MIN_TRANSMEMBRANE_DOMAINS is defined, only those proteins with that many TMDs or more are printed out') do |m|
|
27
|
+
options[:filter_in] = m.to_i #gets set to 0 when optional MIN_TRANSMEMBRANE_DOMAINS is omitted
|
28
28
|
end
|
29
|
-
opts.on('-g','--filter-out','Print those sequences that do NOT have a transmembrane domain') do
|
30
|
-
options[:filter_out] =
|
29
|
+
opts.on('-g','--filter-out [MIN_TRANSMEMBRANE_DOMAINS]','Print those sequences that do NOT have a transmembrane domain. If MIN_TRANSMEMBRANE_DOMAINS is defined, only those proteins with that many TMDs or more are filtered out') do |m|
|
30
|
+
options[:filter_out] = m.to_i #gets set to 0 when optional MIN_TRANSMEMBRANE_DOMAINS is omitted
|
31
31
|
end
|
32
32
|
end
|
33
33
|
o.parse!
|
@@ -58,12 +58,12 @@ if $0 == __FILE__
|
|
58
58
|
].join("\t")
|
59
59
|
end
|
60
60
|
|
61
|
-
elsif options[:filter_in]
|
62
|
-
if result.
|
61
|
+
elsif options[:filter_in] != false
|
62
|
+
if result.transmembrane_domains.length >= options[:filter_in]
|
63
63
|
puts seq
|
64
64
|
end
|
65
|
-
elsif options[:filter_out]
|
66
|
-
unless result.
|
65
|
+
elsif options[:filter_out] != false
|
66
|
+
unless result.transmembrane_domains.length >= options[:filter_out]
|
67
67
|
puts seq
|
68
68
|
end
|
69
69
|
end
|
data/bio-tm_hmm.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{bio-tm_hmm}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ben J. Woodcroft"]
|
12
|
-
s.date = %q{2011-04-
|
12
|
+
s.date = %q{2011-04-06}
|
13
13
|
s.default_executable = %q{biotm_hmm}
|
14
14
|
s.description = %q{A bioruby plugin for interaction with the transmembrane predictor TMHMM}
|
15
15
|
s.email = %q{donttrustben@gmail.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-tm_hmm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 2
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ben J. Woodcroft
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-06 00:00:00 +10:00
|
19
19
|
default_executable: biotm_hmm
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|