bio-blastxmlparser 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/Gemfile +6 -6
  2. data/Gemfile.lock +7 -19
  3. data/README.rdoc +12 -3
  4. data/Rakefile +11 -11
  5. data/VERSION +1 -1
  6. metadata +54 -113
  7. data/bio-blastxmlparser.gemspec +0 -88
data/Gemfile CHANGED
@@ -5,14 +5,14 @@ source "http://rubygems.org"
5
5
 
6
6
  # Runtime dependencies
7
7
  # gem "bio", ">= 1.3.1"
8
- gem "bio-logger", "> 0.8.0"
9
- gem "nokogiri", ">= 1.4.4"
8
+ gem "bio-logger", ">= 1.0.0"
9
+ gem "nokogiri", ">= 1.5.0"
10
10
 
11
11
  # Add dependencies to develop your gem here.
12
12
  # Include everything needed to run rake, tests, features, etc.
13
13
  group :development do
14
- gem "rspec", "~> 2.3.0"
15
- gem "bundler", "~> 1.0.0"
16
- gem "jeweler", "~> 1.5.2"
17
- gem "rcov", ">= 0"
14
+ # gem "rspec", "~> 2.3.0"
15
+ gem "bundler", "~> 1.0.15"
16
+ gem "jeweler", "~> 1.6.4"
17
+ # gem "rcov", ">= 0"
18
18
  end
@@ -1,34 +1,22 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- bio-logger (0.9.0)
4
+ bio-logger (1.0.0)
5
5
  log4r (>= 1.1.9)
6
- diff-lcs (1.1.2)
7
6
  git (1.2.5)
8
- jeweler (1.5.2)
9
- bundler (~> 1.0.0)
7
+ jeweler (1.6.4)
8
+ bundler (~> 1.0)
10
9
  git (>= 1.2.5)
11
10
  rake
12
11
  log4r (1.1.9)
13
12
  nokogiri (1.5.0)
14
13
  rake (0.9.2)
15
- rcov (0.9.9)
16
- rspec (2.3.0)
17
- rspec-core (~> 2.3.0)
18
- rspec-expectations (~> 2.3.0)
19
- rspec-mocks (~> 2.3.0)
20
- rspec-core (2.3.1)
21
- rspec-expectations (2.3.0)
22
- diff-lcs (~> 1.1.2)
23
- rspec-mocks (2.3.0)
24
14
 
25
15
  PLATFORMS
26
16
  ruby
27
17
 
28
18
  DEPENDENCIES
29
- bio-logger (> 0.8.0)
30
- bundler (~> 1.0.0)
31
- jeweler (~> 1.5.2)
32
- nokogiri (>= 1.4.4)
33
- rcov
34
- rspec (~> 2.3.0)
19
+ bio-logger (>= 1.0.0)
20
+ bundler (~> 1.0.15)
21
+ jeweler (~> 1.6.4)
22
+ nokogiri (>= 1.5.0)
@@ -1,6 +1,9 @@
1
+ blastxmlparser is listed at http://biogems.info/
2
+
1
3
  = bio-blastxmlparser
2
4
 
3
- blastxmlparser is a fast big-data BLAST XML file parser. Rather than
5
+ blastxmlparser is a very fast big-data BLAST XML file parser, which can be
6
+ used as command line utility, or as a Ruby library. Rather than
4
7
  loading everything in memory, XML is parsed by BLAST query
5
8
  (Iteration). Not only has this the advantage of low memory use, it
6
9
  also shows results early, and it may be faster when IO continues in
@@ -9,6 +12,13 @@ parallel (disk read-ahead).
9
12
  Next to the API, blastxmlparser comes as a command line utility, which
10
13
  can be used to filter results and requires no understanding of Ruby.
11
14
 
15
+ = Quick start
16
+
17
+ gem install bio-blastxmlparser
18
+ blastxmlparser --help
19
+
20
+ (see Installation, below, if it does not work)
21
+
12
22
  == Performance
13
23
 
14
24
  XML parsing is expensive. blastxmlparser uses the fast Nokogiri C, or Java, XML
@@ -45,12 +55,11 @@ Timings for parsing test/data/nt_example_blastn.m7 (file size 3.4Mb)
45
55
 
46
56
  == Install
47
57
 
48
- Quick install:
49
-
50
58
  gem install bio-blastxmlparser
51
59
 
52
60
  Important: the parser is written for Ruby >= 1.9. You can check with
53
61
 
62
+ ruby -v
54
63
  gem env
55
64
 
56
65
  Nokogiri XML parser is required. To install it,
data/Rakefile CHANGED
@@ -15,8 +15,8 @@ Jeweler::Tasks.new do |gem|
15
15
  gem.name = "bio-blastxmlparser"
16
16
  gem.homepage = "http://github.com/pjotrp/blastxmlparser"
17
17
  gem.license = "MIT"
18
- gem.summary = %Q{BLAST XML parser}
19
- gem.description = %Q{Fast big data XML parser and library, written in Ruby}
18
+ gem.summary = %Q{Very fast BLAST XML parser and library for big data}
19
+ gem.description = %Q{Fast big data XML parser and library, libxml2 based 50x faster than BioRuby}
20
20
  gem.email = "pjotr.public01@thebird.nl"
21
21
  gem.authors = ["Pjotr Prins"]
22
22
  # Include your dependencies below. Runtime dependencies are required when using your gem,
@@ -26,16 +26,16 @@ Jeweler::Tasks.new do |gem|
26
26
  end
27
27
  Jeweler::RubygemsDotOrgTasks.new
28
28
 
29
- require 'rspec/core'
30
- require 'rspec/core/rake_task'
31
- RSpec::Core::RakeTask.new(:spec) do |spec|
32
- spec.pattern = FileList['spec/**/*_spec.rb']
33
- end
29
+ # require 'rspec/core'
30
+ # require 'rspec/core/rake_task'
31
+ # RSpec::Core::RakeTask.new(:spec) do |spec|
32
+ # spec.pattern = FileList['spec/**/*_spec.rb']
33
+ # end
34
34
 
35
- RSpec::Core::RakeTask.new(:rcov) do |spec|
36
- spec.pattern = 'spec/**/*_spec.rb'
37
- spec.rcov = true
38
- end
35
+ # RSpec::Core::RakeTask.new(:rcov) do |spec|
36
+ # spec.pattern = 'spec/**/*_spec.rb'
37
+ # spec.rcov = true
38
+ # end
39
39
 
40
40
  task :default => :spec
41
41
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
metadata CHANGED
@@ -1,120 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bio-blastxmlparser
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 0
9
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Pjotr Prins
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-07-26 00:00:00 +02:00
18
- default_executable: blastxmlparser
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-07-31 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: bio-logger
22
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &83898200 !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
25
- - - ">"
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 8
30
- - 0
31
- version: 0.8.0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0
32
22
  type: :runtime
33
23
  prerelease: false
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *83898200
25
+ - !ruby/object:Gem::Dependency
36
26
  name: nokogiri
37
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ requirement: &83897710 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 1
44
- - 4
45
- - 4
46
- version: 1.4.4
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 1.5.0
47
33
  type: :runtime
48
34
  prerelease: false
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: rspec
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ~>
56
- - !ruby/object:Gem::Version
57
- segments:
58
- - 2
59
- - 3
60
- - 0
61
- version: 2.3.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *83897710
36
+ - !ruby/object:Gem::Dependency
66
37
  name: bundler
67
- requirement: &id004 !ruby/object:Gem::Requirement
38
+ requirement: &83897190 !ruby/object:Gem::Requirement
68
39
  none: false
69
- requirements:
40
+ requirements:
70
41
  - - ~>
71
- - !ruby/object:Gem::Version
72
- segments:
73
- - 1
74
- - 0
75
- - 0
76
- version: 1.0.0
42
+ - !ruby/object:Gem::Version
43
+ version: 1.0.15
77
44
  type: :development
78
45
  prerelease: false
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
46
+ version_requirements: *83897190
47
+ - !ruby/object:Gem::Dependency
81
48
  name: jeweler
82
- requirement: &id005 !ruby/object:Gem::Requirement
49
+ requirement: &83895540 !ruby/object:Gem::Requirement
83
50
  none: false
84
- requirements:
51
+ requirements:
85
52
  - - ~>
86
- - !ruby/object:Gem::Version
87
- segments:
88
- - 1
89
- - 5
90
- - 2
91
- version: 1.5.2
53
+ - !ruby/object:Gem::Version
54
+ version: 1.6.4
92
55
  type: :development
93
56
  prerelease: false
94
- version_requirements: *id005
95
- - !ruby/object:Gem::Dependency
96
- name: rcov
97
- requirement: &id006 !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- segments:
103
- - 0
104
- version: "0"
105
- type: :development
106
- prerelease: false
107
- version_requirements: *id006
108
- description: Fast big data XML parser and library, written in Ruby
57
+ version_requirements: *83895540
58
+ description: Fast big data XML parser and library, libxml2 based 50x faster than BioRuby
109
59
  email: pjotr.public01@thebird.nl
110
- executables:
60
+ executables:
111
61
  - blastxmlparser
112
62
  extensions: []
113
-
114
- extra_rdoc_files:
63
+ extra_rdoc_files:
115
64
  - LICENSE.txt
116
65
  - README.rdoc
117
- files:
66
+ files:
118
67
  - .document
119
68
  - .rspec
120
69
  - Gemfile
@@ -124,7 +73,6 @@ files:
124
73
  - Rakefile
125
74
  - VERSION
126
75
  - bin/blastxmlparser
127
- - bio-blastxmlparser.gemspec
128
76
  - lib/bio-blastxmlparser.rb
129
77
  - lib/bio/db/blast/parser/nokogiri.rb
130
78
  - lib/bio/db/blast/xmliterator.rb
@@ -142,39 +90,32 @@ files:
142
90
  - test/data/nt_example.fasta
143
91
  - test/data/nt_example_blastn.m7
144
92
  - timings.sh
145
- has_rdoc: true
146
93
  homepage: http://github.com/pjotrp/blastxmlparser
147
- licenses:
94
+ licenses:
148
95
  - MIT
149
96
  post_install_message:
150
97
  rdoc_options: []
151
-
152
- require_paths:
98
+ require_paths:
153
99
  - lib
154
- required_ruby_version: !ruby/object:Gem::Requirement
100
+ required_ruby_version: !ruby/object:Gem::Requirement
155
101
  none: false
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- hash: -125380653
160
- segments:
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ segments:
161
107
  - 0
162
- version: "0"
163
- required_rubygems_version: !ruby/object:Gem::Requirement
108
+ hash: -1032070769
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
164
110
  none: false
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- segments:
169
- - 0
170
- version: "0"
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
171
115
  requirements: []
172
-
173
116
  rubyforge_project:
174
- rubygems_version: 1.3.7
117
+ rubygems_version: 1.8.6
175
118
  signing_key:
176
119
  specification_version: 3
177
- summary: BLAST XML parser
178
- test_files:
179
- - spec/bio-blastxmlparser_spec.rb
180
- - spec/spec_helper.rb
120
+ summary: Very fast BLAST XML parser and library for big data
121
+ test_files: []
@@ -1,88 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{bio-blastxmlparser}
8
- s.version = "1.0.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Pjotr Prins"]
12
- s.date = %q{2011-07-26}
13
- s.default_executable = %q{blastxmlparser}
14
- s.description = %q{Fast big data XML parser and library, written in Ruby}
15
- s.email = %q{pjotr.public01@thebird.nl}
16
- s.executables = ["blastxmlparser"]
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- ".document",
23
- ".rspec",
24
- "Gemfile",
25
- "Gemfile.lock",
26
- "LICENSE.txt",
27
- "README.rdoc",
28
- "Rakefile",
29
- "VERSION",
30
- "bin/blastxmlparser",
31
- "bio-blastxmlparser.gemspec",
32
- "lib/bio-blastxmlparser.rb",
33
- "lib/bio/db/blast/parser/nokogiri.rb",
34
- "lib/bio/db/blast/xmliterator.rb",
35
- "lib/bio/db/blast/xmlsplitter.rb",
36
- "sample/bioruby.rb",
37
- "sample/blastxmlparserdemo.rb",
38
- "sample/libxml_sax.rb",
39
- "sample/nokogiri_dom.rb",
40
- "sample/nokogiri_sax.rb",
41
- "sample/nokogiri_split_dom.rb",
42
- "spec/bio-blastxmlparser_spec.rb",
43
- "spec/spec_helper.rb",
44
- "test/data/aa_example.fasta",
45
- "test/data/aa_example_blastp.m7",
46
- "test/data/nt_example.fasta",
47
- "test/data/nt_example_blastn.m7",
48
- "timings.sh"
49
- ]
50
- s.homepage = %q{http://github.com/pjotrp/blastxmlparser}
51
- s.licenses = ["MIT"]
52
- s.require_paths = ["lib"]
53
- s.rubygems_version = %q{1.3.7}
54
- s.summary = %q{BLAST XML parser}
55
- s.test_files = [
56
- "spec/bio-blastxmlparser_spec.rb",
57
- "spec/spec_helper.rb"
58
- ]
59
-
60
- if s.respond_to? :specification_version then
61
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
62
- s.specification_version = 3
63
-
64
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
65
- s.add_runtime_dependency(%q<bio-logger>, ["> 0.8.0"])
66
- s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.4"])
67
- s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
68
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
69
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
70
- s.add_development_dependency(%q<rcov>, [">= 0"])
71
- else
72
- s.add_dependency(%q<bio-logger>, ["> 0.8.0"])
73
- s.add_dependency(%q<nokogiri>, [">= 1.4.4"])
74
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
75
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
76
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
77
- s.add_dependency(%q<rcov>, [">= 0"])
78
- end
79
- else
80
- s.add_dependency(%q<bio-logger>, ["> 0.8.0"])
81
- s.add_dependency(%q<nokogiri>, [">= 1.4.4"])
82
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
83
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
84
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
85
- s.add_dependency(%q<rcov>, [">= 0"])
86
- end
87
- end
88
-