bio-locus 0.0.6 → 0.0.7
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/.travis.yml +1 -3
- data/Gemfile +1 -10
- data/README.md +11 -2
- data/Rakefile +0 -22
- data/VERSION +1 -1
- data/spec/bio-locus_spec.rb +23 -21
- metadata +5 -106
- data/features/bio-locus.feature +0 -9
- data/features/step_definitions/bio-locus_steps.rb +0 -0
- data/features/support/env.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30ec4f125a6e6d4971587c53a5f11172804afb49
|
4
|
+
data.tar.gz: 978cf00bc3bda07691f8b745367831d6c27d11e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b4bc52e81b78c5f7bc67dbc208307f3e8e2a4def494e6dcaae22b5fb71d648076a6adaadf4b2e3bcf8f1d3c4891ed295972d1ec7bffbbd36e6c22ca79abd96e
|
7
|
+
data.tar.gz: d5b4425888c841f65c42f4bea159a6f7987fdd7d548a96ee1edbbb5436ed363bd32eda77f6447d33b02e4fc0621da59999c4956846763f304312966668dac3fe
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,14 +1,5 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
group :development do
|
3
|
-
gem "
|
4
|
-
gem "jeweler"
|
5
|
-
gem "bundler"
|
3
|
+
gem "rake"
|
6
4
|
gem "rspec"
|
7
|
-
gem "tokyocabinet"
|
8
|
-
gem "localmemcache"
|
9
|
-
gem "moneta"
|
10
5
|
end
|
11
|
-
# The following are optional (Ruby serialize is the default)
|
12
|
-
# gem "tokyocabinet"
|
13
|
-
# gem "localmemcache"
|
14
|
-
# gem "moneta"
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# bio-locus
|
2
2
|
|
3
|
-
[](http://travis-ci.org/pjotrp/bio-locus)
|
4
4
|
|
5
5
|
Bio-locus is a tool for fast querying of genome locations. Many file
|
6
6
|
formats in bioinformatics contain records that start with a chromosome
|
@@ -16,6 +16,15 @@ Why would you use bio-locus?
|
|
16
16
|
3. See what positions match an EVS or GoNL database
|
17
17
|
4. Compare locations from databases such as the TCGA and COSMIC
|
18
18
|
5. Comparison of overlap or difference
|
19
|
+
6. Parse and store values to reuse later (nyi)
|
20
|
+
7. Store seek positions (nyi)
|
21
|
+
|
22
|
+
How does bio-locus differ from tabix? Tabix is a fast indexer for
|
23
|
+
tabular data. bio-locus does something similar. The difference is that
|
24
|
+
bio-locus is more flexible in matching location data, is line
|
25
|
+
based with regex options, can use other back-ends (RAM,
|
26
|
+
NoSQL, SQL), and does *not* use bgzip. In other words, bio-locus
|
27
|
+
is friendly and more flexible.
|
19
28
|
|
20
29
|
In principle any of the Moneta supported backends can be used,
|
21
30
|
including LocalMemCache, RubySerialize and TokyoCabinet. The default
|
@@ -203,7 +212,7 @@ So now we have 99 INDELs for this dataset which are not common INDELs.
|
|
203
212
|
Information on the source tree, documentation, examples, issues and
|
204
213
|
how to contribute, see
|
205
214
|
|
206
|
-
http://github.com/pjotrp/
|
215
|
+
http://github.com/pjotrp/bio-locus
|
207
216
|
|
208
217
|
The BioRuby community is on IRC server: irc.freenode.org, channel: #bioruby.
|
209
218
|
|
data/Rakefile
CHANGED
@@ -1,30 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
|
-
require 'bundler'
|
5
|
-
begin
|
6
|
-
Bundler.setup(:default, :development)
|
7
|
-
rescue Bundler::BundlerError => e
|
8
|
-
$stderr.puts e.message
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
-
exit e.status_code
|
11
|
-
end
|
12
4
|
require 'rake'
|
13
5
|
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gem|
|
16
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
-
gem.name = "bio-locus"
|
18
|
-
gem.homepage = "http://github.com/pjotrp/bioruby-locus"
|
19
|
-
gem.license = "MIT"
|
20
|
-
gem.summary = %Q{Fast storage and comparison of chr+pos(+alt) locations}
|
21
|
-
gem.description = %Q{A tool for fast querying and filtering of genome locations in VCF and other formats}
|
22
|
-
gem.email = "pjotr.public01@thebird.nl"
|
23
|
-
gem.authors = ["Pjotr Prins"]
|
24
|
-
# dependencies defined in Gemfile
|
25
|
-
end
|
26
|
-
Jeweler::RubygemsDotOrgTasks.new
|
27
|
-
|
28
6
|
require 'rspec/core'
|
29
7
|
require 'rspec/core/rake_task'
|
30
8
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
data/spec/bio-locus_spec.rb
CHANGED
@@ -12,26 +12,28 @@ describe "BioLocus with Serialize" do
|
|
12
12
|
File.unlink(fn)
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
15
|
+
if false
|
16
|
+
describe "BioLocus with Moneta" do
|
17
|
+
fn = 'biolocus_moneta_localmemcache.db'
|
18
|
+
store = BioLocus::MonetaMapper.new(:LocalMemCache,fn)
|
19
|
+
store['test'] = 'yes'
|
20
|
+
store['test2'] = 'no'
|
21
|
+
a = store['test']
|
22
|
+
store['test'].should == 'yes'
|
23
|
+
store['test2'].should == 'no'
|
24
|
+
store.close
|
25
|
+
File.unlink(fn)
|
26
|
+
end
|
26
27
|
|
27
|
-
describe "BioLocus with TokyoCabinet" do
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
28
|
+
describe "BioLocus with TokyoCabinet" do
|
29
|
+
fn = 'biolocus_tokyocabinet.db'
|
30
|
+
store = BioLocus::TokyoCabinetMapper.new(fn)
|
31
|
+
store['test'] = 'yes'
|
32
|
+
store['test2'] = 'no'
|
33
|
+
a = store['test']
|
34
|
+
store['test'].should == 'yes'
|
35
|
+
store['test2'].should == 'no'
|
36
|
+
store.close
|
37
|
+
File.unlink(fn)
|
38
|
+
end
|
37
39
|
end
|
metadata
CHANGED
@@ -1,113 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-locus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pjotr Prins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: cucumber
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: jeweler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: tokyocabinet
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: localmemcache
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: moneta
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
11
|
+
date: 2015-09-14 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
111
13
|
description: A tool for fast querying and filtering of genome locations in VCF and
|
112
14
|
other formats
|
113
15
|
email: pjotr.public01@thebird.nl
|
@@ -127,9 +29,6 @@ files:
|
|
127
29
|
- Rakefile
|
128
30
|
- VERSION
|
129
31
|
- bin/bio-locus
|
130
|
-
- features/bio-locus.feature
|
131
|
-
- features/step_definitions/bio-locus_steps.rb
|
132
|
-
- features/support/env.rb
|
133
32
|
- lib/bio-locus.rb
|
134
33
|
- lib/bio-locus/dbmapper.rb
|
135
34
|
- lib/bio-locus/locus.rb
|
@@ -141,7 +40,7 @@ files:
|
|
141
40
|
- test/data/input/multisample.vcf
|
142
41
|
- test/data/input/somaticsniper.vcf
|
143
42
|
- test/data/input/test.snv1
|
144
|
-
homepage: http://github.com/pjotrp/
|
43
|
+
homepage: http://github.com/pjotrp/bio-locus
|
145
44
|
licenses:
|
146
45
|
- MIT
|
147
46
|
metadata: {}
|
@@ -161,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
60
|
version: '0'
|
162
61
|
requirements: []
|
163
62
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.4.5.1
|
165
64
|
signing_key:
|
166
65
|
specification_version: 4
|
167
66
|
summary: Fast storage and comparison of chr+pos(+alt) locations
|
data/features/bio-locus.feature
DELETED
File without changes
|
data/features/support/env.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'bundler'
|
2
|
-
begin
|
3
|
-
Bundler.setup(:default, :development)
|
4
|
-
rescue Bundler::BundlerError => e
|
5
|
-
$stderr.puts e.message
|
6
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
7
|
-
exit e.status_code
|
8
|
-
end
|
9
|
-
|
10
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
|
11
|
-
require 'bio-locus'
|
12
|
-
|
13
|
-
require 'rspec/expectations'
|