bio-samtools 2.3.1 → 2.3.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b8fc60d0e2728d7069923ed6c1efa52e5bafe85
4
- data.tar.gz: 3e190a21f82d735ddf376c85586df45bd7c60b28
3
+ metadata.gz: 2e898f0be5b6f4b1638776a6c6deddf2a6b184cc
4
+ data.tar.gz: ecba19c430831daa153829151cbbc26b41596f82
5
5
  SHA512:
6
- metadata.gz: 999c438419b28abcab58633c24e16937ee267671384762a5d81d24650d95daa04a1789053302adc4eebf3984b9b8d4acbb72c604fedfc26c182c20216af704fb
7
- data.tar.gz: 048b2fb95ebbf7ada3f34ed1701f24bc4897a89da8efdfe018a9b441ae9cacb3d0e89b52affa38b779823f64167ad7dc15c99dd791e78b061f0df77f20cbd7b4
6
+ metadata.gz: 3588293b3d0455ed39eeae45054d2c29a7f5276a2cf6c3a7b3a68937c5a5733b15fcfdbaa73f2f2c462fc335409e27331a00b0536b6d5e9894fdc8cb744f83b1
7
+ data.tar.gz: 540714f4e6cb193ee69b45600b460a99bdf21bba02d376c0a561d2849d9a9fac7794b3eae89e2b306e1726c5b8ae154a8203760dc9ab765ab6333a51d7ae5395
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.3.2
data/bio-samtools.gemspec CHANGED
@@ -2,17 +2,17 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bio-samtools 2.3.1 ruby lib
5
+ # stub: bio-samtools 2.3.2 ruby lib
6
6
  # stub: ext/mkrf_conf.rb
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = "bio-samtools"
10
- s.version = "2.3.1"
10
+ s.version = "2.3.2"
11
11
 
12
12
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
13
  s.require_paths = ["lib"]
14
14
  s.authors = ["Ricardo Ramirez-Gonzalez", "Dan MacLean", "Raoul J.P. Bonnal"]
15
- s.date = "2015-02-25"
15
+ s.date = "2015-02-26"
16
16
  s.description = "Binder of samtools for ruby, on the top of FFI. \n\n This project was born from the need to add support of BAM files to \n the gee_fu genome browser (http://github.com/danmaclean/gee_fu)."
17
17
  s.email = "ilpuccio.febo@gmail.com"
18
18
  s.executables = ["bam_consensus.rb"]
data/lib/bio/db/sam.rb CHANGED
@@ -79,7 +79,7 @@ module Bio
79
79
  end
80
80
  command = String.new
81
81
  command = form_opt_string(@samtools, 'view', opts, [:b, :h, :H, :S, :u, '1', :x, :X, :c, :B])
82
- commad = command + " '#{region}'" if region.size > 0
82
+ command = command + " '#{region}'" if region.size > 0
83
83
  @last_command = command
84
84
  type = (opts[:u] or opts[:b]) ? :binary : :text
85
85
  klass = (type == :binary) ? String : Bio::DB::Alignment
data/test/test_sam.rb CHANGED
@@ -110,8 +110,18 @@ class TestBioDbSam < Test::Unit::TestCase
110
110
 
111
111
  def test_fetch_with_function
112
112
  #pass the assert to method
113
- block = Proc.new {|a| assert_equal(a.class, Bio::DB::Alignment)}
113
+ count = 0
114
+ block = Proc.new do |a|
115
+ assert_equal(a.class, Bio::DB::Alignment)
116
+ count += 1
117
+ end
118
+
114
119
  @sam.fetch_with_function("chr_1", 10, 1000, &block)
120
+ assert_equal(count, 9)
121
+
122
+ count = 0
123
+ @sam.fetch_with_function("chr_1", 82, 140, &block)
124
+ assert_equal(count, 4)
115
125
  end
116
126
 
117
127
  def test_chromosome_coverage
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-samtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Ramirez-Gonzalez
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-02-25 00:00:00.000000000 Z
13
+ date: 2015-02-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bio-svgenes