bio-plasmoap 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +3 -4
- data/README.rdoc +12 -11
- data/Rakefile +2 -9
- data/VERSION +1 -1
- data/bin/plasmoap.rb +40 -21
- data/bio-plasmoap.gemspec +23 -25
- data/lib/bio/appl/plasmoap.rb +5 -0
- metadata +55 -53
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6ec59ad4901505b49516d6333cc3790fb5492ca2
|
4
|
+
data.tar.gz: 6b2a7d96cc21a428f28384c06ca524b1d6bad86b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f1b98cfff30d0eb08642e8a6d35ee778621c895518f8a8370ddf375b4d4c32619140da0375c64d79ee950c658bdf33aa9332499dd22b03b04d4d1c565b631496
|
7
|
+
data.tar.gz: 07ae6c71ee91af90661eeeebc5197b3b3f95028f3b665e80fcd165bf5e39f31a9e93c7e7bfeab57c7faf967fdb6ce3e195e189a91d7a1ea60f74e7373e73506d
|
data/Gemfile
CHANGED
@@ -2,13 +2,12 @@ source "http://rubygems.org"
|
|
2
2
|
|
3
3
|
gem 'bio', '>=1.4.1'
|
4
4
|
gem 'bio-signalp', '>=0.2.0'
|
5
|
+
gem 'test-unit', '>=3.1.8'
|
5
6
|
|
6
7
|
# Add dependencies to develop your gem here.
|
7
8
|
# Include everything needed to run rake, tests, features, etc.
|
8
9
|
group :development do
|
9
10
|
gem "shoulda", ">= 0"
|
10
|
-
gem "bundler", "
|
11
|
-
gem "jeweler", "
|
12
|
-
gem "rcov", ">= 0"
|
13
|
-
gem "bio", ">= 1.4.1"
|
11
|
+
gem "bundler", ">= 1.0.0"
|
12
|
+
gem "jeweler", ">= 1.6.4"
|
14
13
|
end
|
data/README.rdoc
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
= bio-plasmoap
|
2
2
|
|
3
|
-
|
3
|
+
PlasmoAP is a program for predicting apicoplast targetting sequences
|
4
|
+
in Plasmodium falciparum (the most fatal causative agent of malaria).
|
5
|
+
This biogem implements the PlasmoAP algorithm, designed from the PlasmoAP journal article:
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
7
|
+
Dissecting apicoplast targeting in the malaria parasite Plasmodium falciparum.
|
8
|
+
Foth BJ, Ralph SA, Tonkin CJ, Struck NS, Fraunholz M, Roos DS, Cowman AF, McFadden GI.
|
9
|
+
Science. 2003 Jan 31;299(5607):705-8.
|
10
|
+
PMID: 12560551
|
11
|
+
|
12
|
+
PlasmoAP requires the bio-signalp BioRuby plugin to be installed and therefore SignalP itself. See http://github.com/wwood/bioruby-signalp for more details.
|
13
|
+
|
14
|
+
Specifically, it requires version 3 of SignalP.
|
14
15
|
|
15
16
|
== Copyright
|
16
17
|
|
17
|
-
Copyright (c) 2012 Ben J Woodcroft. See LICENSE.txt for
|
18
|
+
Copyright (c) 2012-2016 Ben J Woodcroft. See LICENSE.txt for
|
18
19
|
further details.
|
19
20
|
|
data/Rakefile
CHANGED
@@ -32,17 +32,9 @@ Rake::TestTask.new(:test) do |test|
|
|
32
32
|
test.verbose = true
|
33
33
|
end
|
34
34
|
|
35
|
-
require 'rcov/rcovtask'
|
36
|
-
Rcov::RcovTask.new do |test|
|
37
|
-
test.libs << 'test'
|
38
|
-
test.pattern = 'test/**/test_*.rb'
|
39
|
-
test.verbose = true
|
40
|
-
test.rcov_opts << '--exclude "gems/*"'
|
41
|
-
end
|
42
|
-
|
43
35
|
task :default => :test
|
44
36
|
|
45
|
-
require '
|
37
|
+
require 'rdoc/task'
|
46
38
|
Rake::RDocTask.new do |rdoc|
|
47
39
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
40
|
|
@@ -51,3 +43,4 @@ Rake::RDocTask.new do |rdoc|
|
|
51
43
|
rdoc.rdoc_files.include('README*')
|
52
44
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
45
|
end
|
46
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/bin/plasmoap.rb
CHANGED
@@ -2,28 +2,47 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'bio'
|
5
|
+
require 'optparse'
|
6
|
+
|
7
|
+
$:.unshift File.join(File.dirname(__FILE__),'..','lib')
|
5
8
|
require 'bio-plasmoap'
|
6
9
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
10
|
+
SCRIPT_NAME = File.basename(__FILE__); LOG_NAME = SCRIPT_NAME.gsub('.rb','')
|
11
|
+
|
12
|
+
o = OptionParser.new do |opts|
|
13
|
+
opts.banner = "
|
14
|
+
Usage: #{SCRIPT_NAME} <fasta_file>
|
15
|
+
|
16
|
+
Predict whether protein(s) are targeted to the apicoplast
|
17
|
+
using the PlasmoAP algorithm described here:
|
18
|
+
|
19
|
+
Dissecting apicoplast targeting in the malaria parasite Plasmodium falciparum.
|
20
|
+
Foth BJ, Ralph SA, Tonkin CJ, Struck NS, Fraunholz M, Roos DS, Cowman AF, McFadden GI.
|
21
|
+
Science. 2003 Jan 31;299(5607):705-8.
|
22
|
+
PMID: 12560551
|
23
|
+
|
24
|
+
It uses SignalP version 3 (not 4!), which it expects to be on the PATH.
|
25
|
+
\n"
|
26
|
+
end; o.parse!
|
27
|
+
|
28
|
+
# print out a list of proteins with yes/no answers
|
29
|
+
puts [
|
30
|
+
'Name',
|
31
|
+
'PlasmoAP Score',
|
32
|
+
'Apicoplast Targeted',
|
33
|
+
'Points'
|
34
|
+
].join("\t")
|
35
|
+
|
36
|
+
runner = Bio::PlasmoAP.new
|
37
|
+
|
38
|
+
Bio::FlatFile.auto(ARGF).each do |seq|
|
39
|
+
result = runner.calculate_score(seq.seq)
|
40
|
+
to_print = [seq.definition, result.to_s]
|
41
|
+
if result.apicoplast_targeted?
|
42
|
+
to_print.push 1
|
43
|
+
else
|
44
|
+
to_print.push 0
|
28
45
|
end
|
46
|
+
to_print.push result.points
|
47
|
+
puts to_print.join("\t")
|
29
48
|
end
|
data/bio-plasmoap.gemspec
CHANGED
@@ -2,17 +2,19 @@
|
|
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-plasmoap 0.1.0 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.0
|
8
|
+
s.name = "bio-plasmoap"
|
9
|
+
s.version = "0.1.0"
|
9
10
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
12
|
+
s.require_paths = ["lib"]
|
13
|
+
s.authors = ["Ben J Woodcroft"]
|
14
|
+
s.date = "2016-04-14"
|
15
|
+
s.description = "The PlasmoAP algorithm (Foth and Ralph et. al. 2003) predicts apicoplast transit peptides in Plasmodium falciparum. This is an implementation of that algorithm."
|
16
|
+
s.email = "gmail.com after donttrustben"
|
17
|
+
s.executables = ["plasmoap.rb"]
|
16
18
|
s.extra_rdoc_files = [
|
17
19
|
"LICENSE.txt",
|
18
20
|
"README.rdoc"
|
@@ -31,40 +33,36 @@ Gem::Specification.new do |s|
|
|
31
33
|
"test/helper.rb",
|
32
34
|
"test/test_bio-plasmoap.rb"
|
33
35
|
]
|
34
|
-
s.homepage =
|
35
|
-
s.licenses = [
|
36
|
-
s.
|
37
|
-
s.
|
38
|
-
s.summary = %q{Implementation of the PlasmoAP algorithm}
|
36
|
+
s.homepage = "http://github.com/wwood/bioruby-plasmoap"
|
37
|
+
s.licenses = ["MIT"]
|
38
|
+
s.rubygems_version = "2.4.5.1"
|
39
|
+
s.summary = "Implementation of the PlasmoAP algorithm"
|
39
40
|
|
40
41
|
if s.respond_to? :specification_version then
|
41
|
-
s.specification_version =
|
42
|
+
s.specification_version = 4
|
42
43
|
|
43
44
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
45
|
s.add_runtime_dependency(%q<bio>, [">= 1.4.1"])
|
45
46
|
s.add_runtime_dependency(%q<bio-signalp>, [">= 0.2.0"])
|
47
|
+
s.add_runtime_dependency(%q<test-unit>, [">= 3.1.8"])
|
46
48
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
47
|
-
s.add_development_dependency(%q<bundler>, ["
|
48
|
-
s.add_development_dependency(%q<jeweler>, ["
|
49
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
50
|
-
s.add_development_dependency(%q<bio>, [">= 1.4.1"])
|
49
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
50
|
+
s.add_development_dependency(%q<jeweler>, [">= 1.6.4"])
|
51
51
|
else
|
52
52
|
s.add_dependency(%q<bio>, [">= 1.4.1"])
|
53
53
|
s.add_dependency(%q<bio-signalp>, [">= 0.2.0"])
|
54
|
+
s.add_dependency(%q<test-unit>, [">= 3.1.8"])
|
54
55
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
55
|
-
s.add_dependency(%q<bundler>, ["
|
56
|
-
s.add_dependency(%q<jeweler>, ["
|
57
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
58
|
-
s.add_dependency(%q<bio>, [">= 1.4.1"])
|
56
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, [">= 1.6.4"])
|
59
58
|
end
|
60
59
|
else
|
61
60
|
s.add_dependency(%q<bio>, [">= 1.4.1"])
|
62
61
|
s.add_dependency(%q<bio-signalp>, [">= 0.2.0"])
|
62
|
+
s.add_dependency(%q<test-unit>, [">= 3.1.8"])
|
63
63
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
64
|
-
s.add_dependency(%q<bundler>, ["
|
65
|
-
s.add_dependency(%q<jeweler>, ["
|
66
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
67
|
-
s.add_dependency(%q<bio>, [">= 1.4.1"])
|
64
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
65
|
+
s.add_dependency(%q<jeweler>, [">= 1.6.4"])
|
68
66
|
end
|
69
67
|
end
|
70
68
|
|
data/lib/bio/appl/plasmoap.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
|
+
# coding: utf-8
|
2
3
|
|
3
4
|
require 'bio'
|
4
5
|
require 'bio-signalp'
|
@@ -23,6 +24,10 @@ module Bio
|
|
23
24
|
if has_signal_sequence.nil?
|
24
25
|
# to_s means the sequence can be amino acid string or proper Bio::Sequence::AA object
|
25
26
|
signalp = Bio::SignalP::Wrapper.new.calculate(sequence.to_s)
|
27
|
+
unless signalp.kind_of?(Bio::SignalP::Version3::Result)
|
28
|
+
raise "PlasmoAP uses signalp version 3, but different version (#{signalp.class}) was found"
|
29
|
+
end
|
30
|
+
|
26
31
|
has_signal_sequence = signalp.classical_signal_sequence?
|
27
32
|
|
28
33
|
signalp_cleaved_sequence = signalp.cleave(sequence)
|
metadata
CHANGED
@@ -1,93 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-plasmoap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ben J Woodcroft
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-04-14 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bio
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.4.1
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.4.1
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: bio-signalp
|
27
|
-
requirement:
|
28
|
-
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.2.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
37
|
requirements:
|
30
|
-
- -
|
38
|
+
- - ">="
|
31
39
|
- !ruby/object:Gem::Version
|
32
40
|
version: 0.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: test-unit
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.1.8
|
33
48
|
type: :runtime
|
34
49
|
prerelease: false
|
35
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.1.8
|
36
55
|
- !ruby/object:Gem::Dependency
|
37
56
|
name: shoulda
|
38
|
-
requirement:
|
39
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
40
58
|
requirements:
|
41
|
-
- -
|
59
|
+
- - ">="
|
42
60
|
- !ruby/object:Gem::Version
|
43
61
|
version: '0'
|
44
62
|
type: :development
|
45
63
|
prerelease: false
|
46
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
47
69
|
- !ruby/object:Gem::Dependency
|
48
70
|
name: bundler
|
49
|
-
requirement:
|
50
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
51
72
|
requirements:
|
52
|
-
- -
|
73
|
+
- - ">="
|
53
74
|
- !ruby/object:Gem::Version
|
54
75
|
version: 1.0.0
|
55
76
|
type: :development
|
56
77
|
prerelease: false
|
57
|
-
version_requirements:
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: jeweler
|
60
|
-
requirement: &79899470 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
79
|
requirements:
|
63
|
-
- -
|
80
|
+
- - ">="
|
64
81
|
- !ruby/object:Gem::Version
|
65
|
-
version: 1.
|
66
|
-
type: :development
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: *79899470
|
82
|
+
version: 1.0.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement:
|
72
|
-
none: false
|
84
|
+
name: jeweler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
|
-
- -
|
87
|
+
- - ">="
|
75
88
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
89
|
+
version: 1.6.4
|
77
90
|
type: :development
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: bio
|
82
|
-
requirement: &79897650 !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
84
93
|
requirements:
|
85
|
-
- -
|
94
|
+
- - ">="
|
86
95
|
- !ruby/object:Gem::Version
|
87
|
-
version: 1.4
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: *79897650
|
96
|
+
version: 1.6.4
|
91
97
|
description: The PlasmoAP algorithm (Foth and Ralph et. al. 2003) predicts apicoplast
|
92
98
|
transit peptides in Plasmodium falciparum. This is an implementation of that algorithm.
|
93
99
|
email: gmail.com after donttrustben
|
@@ -98,7 +104,7 @@ extra_rdoc_files:
|
|
98
104
|
- LICENSE.txt
|
99
105
|
- README.rdoc
|
100
106
|
files:
|
101
|
-
- .document
|
107
|
+
- ".document"
|
102
108
|
- Gemfile
|
103
109
|
- LICENSE.txt
|
104
110
|
- README.rdoc
|
@@ -113,29 +119,25 @@ files:
|
|
113
119
|
homepage: http://github.com/wwood/bioruby-plasmoap
|
114
120
|
licenses:
|
115
121
|
- MIT
|
122
|
+
metadata: {}
|
116
123
|
post_install_message:
|
117
124
|
rdoc_options: []
|
118
125
|
require_paths:
|
119
126
|
- lib
|
120
127
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
128
|
requirements:
|
123
|
-
- -
|
129
|
+
- - ">="
|
124
130
|
- !ruby/object:Gem::Version
|
125
131
|
version: '0'
|
126
|
-
segments:
|
127
|
-
- 0
|
128
|
-
hash: -875790545
|
129
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
133
|
requirements:
|
132
|
-
- -
|
134
|
+
- - ">="
|
133
135
|
- !ruby/object:Gem::Version
|
134
136
|
version: '0'
|
135
137
|
requirements: []
|
136
138
|
rubyforge_project:
|
137
|
-
rubygems_version:
|
139
|
+
rubygems_version: 2.4.5.1
|
138
140
|
signing_key:
|
139
|
-
specification_version:
|
141
|
+
specification_version: 4
|
140
142
|
summary: Implementation of the PlasmoAP algorithm
|
141
143
|
test_files: []
|