SilkSlider 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/VERSION +1 -1
- data/bin/silk_slider +16 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad393f3f24c8137ec1817bb55295068dd5ce4af6
|
4
|
+
data.tar.gz: d3376592a5646b87db935532e8de336403c24f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9a00a8bb7641df0c92e7c85956266d6c003f591bb6897e7168b46e67e79a85b1ff4f013436cfa3e991d5473a501ff087dcce1f014f7372713352beee0666492
|
7
|
+
data.tar.gz: 350b0eadbb521d99ae82868c9127c51df7b0bab7a805256144d8ee78ee447c4e88e05441407af63e7937d566c2c13588ebb0e87d7bc1ef2d7c0ed71b2719db78
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/bin/silk_slider
CHANGED
@@ -35,6 +35,9 @@ o = OptionParser.new do |opts|
|
|
35
35
|
opts.on("--min-glycines NUM", Integer, "Number of glycines in a window for the protein to be considered silk-like, as an absolute number (not percentage) [default: #{options[:min_glycines] }]") do |arg|
|
36
36
|
options[:min_glycines] = arg
|
37
37
|
end
|
38
|
+
opts.on("--signalp-binary PATH", "Path to signalp binary to use [default: use 'signalp' on $PATH }]") do |arg|
|
39
|
+
options[:signalp_binary] = arg
|
40
|
+
end
|
38
41
|
opts.separator "\nVerbosity:\n\n"
|
39
42
|
opts.on("-q", "--quiet", "Run quietly, set logging to ERROR level [default INFO]") {options[:log_level] = 'error'}
|
40
43
|
opts.on("--logger filename",String,"Log to file [default #{options[:logger]}]") { |name| options[:logger] = name}
|
@@ -52,12 +55,21 @@ Bio::Log::CLI.logger(options[:logger]); Bio::Log::CLI.trace(options[:log_level])
|
|
52
55
|
signalp_runner = Bio::SignalP::Wrapper.new
|
53
56
|
tmhmm_runner = Bio::TMHMM::TmHmmWrapper.new
|
54
57
|
|
58
|
+
example_result = nil
|
59
|
+
num_predicted = 0
|
60
|
+
num_considered = 0
|
61
|
+
|
55
62
|
Bio::FlatFile.open(Bio::FastaFormat, ARGF).each do |seq|
|
56
|
-
signalp_result = signalp_runner.calculate(seq.seq)
|
63
|
+
signalp_result = signalp_runner.calculate(seq.seq, :binary_path => options[:signalp_binary])
|
57
64
|
if signalp_result.nil?
|
58
65
|
$stderr.puts "Unexpected empty sequence detected, ignoring: #{seq.definition}"
|
59
66
|
next
|
60
67
|
end
|
68
|
+
if example_result.nil?
|
69
|
+
example_result = signalp_result
|
70
|
+
log.info "Using SignalP version: #{example_result.class}" if log.info?
|
71
|
+
end
|
72
|
+
num_considered += 1
|
61
73
|
|
62
74
|
log.debug "Sequence #{seq.definition} predicted by SignalP? #{signalp_result.prediction}" if log.debug?
|
63
75
|
if signalp_result.prediction
|
@@ -75,7 +87,10 @@ Bio::FlatFile.open(Bio::FastaFormat, ARGF).each do |seq|
|
|
75
87
|
# We have a winner. Output.
|
76
88
|
puts ">#{seq.definition}"
|
77
89
|
puts seq.seq
|
90
|
+
num_predicted += 1
|
78
91
|
end
|
79
92
|
end
|
80
93
|
end
|
81
94
|
end
|
95
|
+
|
96
|
+
log.info "Predicted #{num_predicted} out of #{num_considered} as silk-like" if log.info?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: SilkSlider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carmel McDougall
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-07-
|
13
|
+
date: 2014-07-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bio-signalp
|