bio-rocker 0.1.02 → 0.1.03
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ROCker +2 -1
- data/lib/rocker.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63b71b4681de7b50aab9c01eb60eed5ce6dc3e7b
|
4
|
+
data.tar.gz: 3ec94f33007a8535f77c2878e32bf51d5bc33395
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29f73a171685a48322299ab1d1c18a470b1a4292cb3aea93a9f52636011e726ceb097aa7f7bdb690cb837fdc7e8b1b64d3ef02b03cc9bda5176cd939fe8e189d
|
7
|
+
data.tar.gz: e54a0e01bf15e5b6a054096ac0f8158c7c390fb568d7447cd75c5ffe2e89405ee797ad71afa2667201ef3e9fcf89307d1802e8601abb6737559a81ebce4e770c
|
data/bin/ROCker
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# @author Luis M. Rodriguez-R <lmrodriguezr at gmail dot com>
|
4
4
|
# @author Luis (Coto) Orellana
|
5
5
|
# @license artistic license 2.0
|
6
|
-
# @update
|
6
|
+
# @update Mar-23-2015
|
7
7
|
#
|
8
8
|
|
9
9
|
require 'rocker'
|
@@ -128,6 +128,7 @@ opts = OptionParser.new do |opt|
|
|
128
128
|
opt.on( "--no-transparency", "Do not use (semi-)transparencies."){ |v| o[:transparency] = v }
|
129
129
|
opt.on( "--min-score NUMBER", "Minimum Bit-Score to consider a hit. By default: #{ROCker.default :minscore}"){ |v| o[:minscore]=v.to_f }
|
130
130
|
opt.on( "--stats-impact", "Plot impact on statistics, instead of absolute values per window."){ o[:impact]=true }
|
131
|
+
opt.on( "--stats-ylim", "Limits of the Y-axis in the bottom panel. By default: '-2,.1' if --stats-impact is set, '50,100' otherwise."){ |v| o[:ylim]=v }
|
131
132
|
opt.on("-s", "--subject SBJ1,SBJ2,...", Array,
|
132
133
|
"Plot only information regarding this(ese) subject(s). If multiple, separate by comma. By default, all hits are plotted."){ |v| o[:sbj]=v }
|
133
134
|
opt.on("-f", "--plot-format STRING",
|
data/lib/rocker.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# @author Luis M. Rodriguez-R <lmrodriguezr at gmail dot com>
|
3
3
|
# @author Luis (Coto) Orellana
|
4
4
|
# @license artistic license 2.0
|
5
|
-
# @update
|
5
|
+
# @update Mar-23-2015
|
6
6
|
#
|
7
7
|
|
8
8
|
require 'rocker/blasthit'
|
@@ -433,7 +433,7 @@ class ROCker
|
|
433
433
|
|
434
434
|
puts "Plotting statistics." unless @o[:q]
|
435
435
|
data.rrun "par(mar=c(5,4,0,0.5)+.1);"
|
436
|
-
data.rrun "plot(1, t='n', xlim=c(0,#{data.aln.cols}),ylim=c(#{@o[:impact] ? "-2,.1" : "50,100"}),xlab='Alignment position (amino acids)',ylab='Precision',xaxs='i');"
|
436
|
+
data.rrun "plot(1, t='n', xlim=c(0,#{data.aln.cols}),ylim=c(#{@o[:ylim].nil? ? (@o[:impact] ? "-2,.1" : "50,100") : @o[:ylim]}),xlab='Alignment position (amino acids)',ylab='Precision',xaxs='i');"
|
437
437
|
if some_thr
|
438
438
|
sn = data.rrun "100*sum(w$tp)/(sum(w$tp)+sum(w$fn))", :float
|
439
439
|
sp = data.rrun "100*sum(w$tn)/(sum(w$fp)+sum(w$tn))", :float
|