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 +4 -4
- data/VERSION +1 -1
- data/bio-samtools.gemspec +3 -3
- data/lib/bio/db/sam.rb +1 -1
- data/test/test_sam.rb +11 -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: 2e898f0be5b6f4b1638776a6c6deddf2a6b184cc
|
|
4
|
+
data.tar.gz: ecba19c430831daa153829151cbbc26b41596f82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3588293b3d0455ed39eeae45054d2c29a7f5276a2cf6c3a7b3a68937c5a5733b15fcfdbaa73f2f2c462fc335409e27331a00b0536b6d5e9894fdc8cb744f83b1
|
|
7
|
+
data.tar.gz: 540714f4e6cb193ee69b45600b460a99bdf21bba02d376c0a561d2849d9a9fac7794b3eae89e2b306e1726c5b8ae154a8203760dc9ab765ab6333a51d7ae5395
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.3.
|
|
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.
|
|
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.
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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-
|
|
13
|
+
date: 2015-02-26 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bio-svgenes
|