bio-rocker 0.1.02 → 0.1.03

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ROCker +2 -1
  3. data/lib/rocker.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 820871c854cb75ab6a7f98140ea50952dd145fd1
4
- data.tar.gz: 83df9b12b3509f02ec4c9dcf1bed4185de817b43
3
+ metadata.gz: 63b71b4681de7b50aab9c01eb60eed5ce6dc3e7b
4
+ data.tar.gz: 3ec94f33007a8535f77c2878e32bf51d5bc33395
5
5
  SHA512:
6
- metadata.gz: 0be6f74849a011d4a39450759a52c86e3bbf47e90174077872860c1334f4179114af4d295aecbfa712d847a5eafe92884645fb193d7beb4143740982ade9f75a
7
- data.tar.gz: 01e7ee056e0a9dbf66dcaf4b31af34d1ef0daaae76593101b8dad9d27732776b521f7aef6a2f7beb9007dcf72346ae81cfb8fa7523cf06952e6eb83b7a5578b9
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 Feb-09-2015
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 Feb-04-2015
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-rocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.02
4
+ version: 0.1.03
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis (Coto) Orellana