blast 2.2.25.RC3
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.
- data/LICENSE.txt +19 -0
- data/Rakefile +84 -0
- data/bin/blast_formatter +4 -0
- data/bin/blastdb_aliastool +4 -0
- data/bin/blastdbcheck +4 -0
- data/bin/blastdbcmd +4 -0
- data/bin/blastn +4 -0
- data/bin/blastp +4 -0
- data/bin/blastx +4 -0
- data/bin/convert2blastmask +4 -0
- data/bin/dustmasker +4 -0
- data/bin/legacy_blast.pl +4 -0
- data/bin/makeblastdb +4 -0
- data/bin/makembindex +4 -0
- data/bin/psiblast +4 -0
- data/bin/rpsblast +4 -0
- data/bin/rpstblastn +4 -0
- data/bin/segmasker +4 -0
- data/bin/tblastn +4 -0
- data/bin/tblastx +4 -0
- data/bin/update_blastdb.pl +4 -0
- data/bin/windowmasker +4 -0
- metadata +129 -0
data/LICENSE.txt
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright © 2012 Anurag Priyam
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
+
so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
module BLAST
|
4
|
+
class Package
|
5
|
+
def initialize(url)
|
6
|
+
self.url = url
|
7
|
+
end
|
8
|
+
|
9
|
+
def name
|
10
|
+
name = archive[/.*\+/]
|
11
|
+
end
|
12
|
+
|
13
|
+
def install
|
14
|
+
download and extract and generate_wrappers and remove
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
attr_accessor :url
|
20
|
+
|
21
|
+
def archive
|
22
|
+
File.basename(@url)
|
23
|
+
end
|
24
|
+
|
25
|
+
def download
|
26
|
+
puts "Downloading #{url}."
|
27
|
+
system "wget -c #{url}"
|
28
|
+
end
|
29
|
+
|
30
|
+
def extract
|
31
|
+
puts "Extracting #{archive}."
|
32
|
+
system "tar xvf #{archive}"
|
33
|
+
end
|
34
|
+
|
35
|
+
def generate_wrappers
|
36
|
+
puts "Generating wrappers."
|
37
|
+
|
38
|
+
# Each entry in gem's bin/ is a script template that is supposed to exec
|
39
|
+
# corresponding BLAST+ binaries. Now that BLAST+ is available, we fill
|
40
|
+
# in the templates with the path to the corresponding binaries.
|
41
|
+
Dir[File.join('bin', '*')].each do |bin|
|
42
|
+
script = File.read(bin) % File.expand_path(File.join(name, bin))
|
43
|
+
File.open(bin, 'w') do |f|
|
44
|
+
f.write(script)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def remove
|
50
|
+
puts "Removing #{archive}."
|
51
|
+
FileUtils.rm archive
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
task :default do
|
57
|
+
puts "RUBY_PLATFORM #{RUBY_PLATFORM}"
|
58
|
+
package = case RUBY_PLATFORM
|
59
|
+
when /i686-linux/ # 32 bit Linux
|
60
|
+
"ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.2.25+-ia32-linux.tar.gz"
|
61
|
+
when /x86_64-linux/ # 64 bit Linux
|
62
|
+
"ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.2.25+-x64-linux.tar.gz"
|
63
|
+
when /darwin/ # Mac
|
64
|
+
"ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.2.25+-universal-macosx.tar.gz"
|
65
|
+
else
|
66
|
+
puts <<ERR
|
67
|
+
|
68
|
+
------------------------------------------------------------------------
|
69
|
+
FAILED!! to install NCBI BLAST+.
|
70
|
+
|
71
|
+
We currently support Linux and Mac only (both 32 and 64 bit). If you
|
72
|
+
believe you are running a supported platform, please open a support
|
73
|
+
ticket titled "#{RUBY_PLATFORM}" at:
|
74
|
+
|
75
|
+
https://github.com/yeban/blast/issues
|
76
|
+
------------------------------------------------------------------------
|
77
|
+
|
78
|
+
ERR
|
79
|
+
exit 1
|
80
|
+
end
|
81
|
+
|
82
|
+
package = BLAST::Package.new(package)
|
83
|
+
package.install
|
84
|
+
end
|
data/bin/blast_formatter
ADDED
data/bin/blastdbcheck
ADDED
data/bin/blastdbcmd
ADDED
data/bin/blastn
ADDED
data/bin/blastp
ADDED
data/bin/blastx
ADDED
data/bin/dustmasker
ADDED
data/bin/legacy_blast.pl
ADDED
data/bin/makeblastdb
ADDED
data/bin/makembindex
ADDED
data/bin/psiblast
ADDED
data/bin/rpsblast
ADDED
data/bin/rpstblastn
ADDED
data/bin/segmasker
ADDED
data/bin/tblastn
ADDED
data/bin/tblastx
ADDED
data/bin/windowmasker
ADDED
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: blast
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.25.RC3
|
5
|
+
prerelease: 7
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Anurag Priyam
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-06-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: &22928240 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *22928240
|
25
|
+
description: ! 'This gem will automatically download and install pre-compiled NCBI
|
26
|
+
BLAST+
|
27
|
+
|
28
|
+
binaries that is most appropriate for your local system. The version of
|
29
|
+
|
30
|
+
BLAST+ installed is the same as that of the gem.
|
31
|
+
|
32
|
+
'
|
33
|
+
email: anurag08priyam@gmail.com
|
34
|
+
executables:
|
35
|
+
- blastp
|
36
|
+
- psiblast
|
37
|
+
- blastx
|
38
|
+
- segmasker
|
39
|
+
- rpstblastn
|
40
|
+
- windowmasker
|
41
|
+
- tblastn
|
42
|
+
- makembindex
|
43
|
+
- blastdbcmd
|
44
|
+
- convert2blastmask
|
45
|
+
- tblastx
|
46
|
+
- dustmasker
|
47
|
+
- blastdbcheck
|
48
|
+
- makeblastdb
|
49
|
+
- blastdb_aliastool
|
50
|
+
- blast_formatter
|
51
|
+
- update_blastdb.pl
|
52
|
+
- legacy_blast.pl
|
53
|
+
- rpsblast
|
54
|
+
- blastn
|
55
|
+
extensions:
|
56
|
+
- Rakefile
|
57
|
+
extra_rdoc_files: []
|
58
|
+
files:
|
59
|
+
- Rakefile
|
60
|
+
- LICENSE.txt
|
61
|
+
- !binary |-
|
62
|
+
YmluL2JsYXN0cA==
|
63
|
+
- !binary |-
|
64
|
+
YmluL3BzaWJsYXN0
|
65
|
+
- !binary |-
|
66
|
+
YmluL2JsYXN0eA==
|
67
|
+
- !binary |-
|
68
|
+
YmluL3NlZ21hc2tlcg==
|
69
|
+
- !binary |-
|
70
|
+
YmluL3Jwc3RibGFzdG4=
|
71
|
+
- !binary |-
|
72
|
+
YmluL3dpbmRvd21hc2tlcg==
|
73
|
+
- !binary |-
|
74
|
+
YmluL3RibGFzdG4=
|
75
|
+
- !binary |-
|
76
|
+
YmluL21ha2VtYmluZGV4
|
77
|
+
- !binary |-
|
78
|
+
YmluL2JsYXN0ZGJjbWQ=
|
79
|
+
- !binary |-
|
80
|
+
YmluL2NvbnZlcnQyYmxhc3RtYXNr
|
81
|
+
- !binary |-
|
82
|
+
YmluL3RibGFzdHg=
|
83
|
+
- !binary |-
|
84
|
+
YmluL2R1c3RtYXNrZXI=
|
85
|
+
- !binary |-
|
86
|
+
YmluL2JsYXN0ZGJjaGVjaw==
|
87
|
+
- !binary |-
|
88
|
+
YmluL21ha2VibGFzdGRi
|
89
|
+
- !binary |-
|
90
|
+
YmluL2JsYXN0ZGJfYWxpYXN0b29s
|
91
|
+
- !binary |-
|
92
|
+
YmluL2JsYXN0X2Zvcm1hdHRlcg==
|
93
|
+
- !binary |-
|
94
|
+
YmluL3VwZGF0ZV9ibGFzdGRiLnBs
|
95
|
+
- !binary |-
|
96
|
+
YmluL2xlZ2FjeV9ibGFzdC5wbA==
|
97
|
+
- !binary |-
|
98
|
+
YmluL3Jwc2JsYXN0
|
99
|
+
- !binary |-
|
100
|
+
YmluL2JsYXN0bg==
|
101
|
+
homepage: https://github.com/yeban/blast
|
102
|
+
licenses:
|
103
|
+
- MIT
|
104
|
+
post_install_message: ! "\n------------------------------------------------------------------------\n
|
105
|
+
\ All NCBI BLAST+ commands should be accessible from the command line.\n\n $
|
106
|
+
blastp -h\n [...]\n\n Visit https://github.com/yeban/blast to report issues,
|
107
|
+
and/or track\n development.\n------------------------------------------------------------------------\n\n"
|
108
|
+
rdoc_options: []
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ! '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ! '>'
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 1.3.1
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 1.8.11
|
126
|
+
signing_key:
|
127
|
+
specification_version: 3
|
128
|
+
summary: Install NCBI BLAST+.
|
129
|
+
test_files: []
|