unipept 0.10.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 662aed8d64c58c637883ff112a3f7be5a8ea05b1
4
- data.tar.gz: 52842a660a7dfe19c47403b7d1b4a83cc5d29525
3
+ metadata.gz: c645150e9b3dfd1a4dcdb18c86403feb45280235
4
+ data.tar.gz: cbe6e110f377781ec184e866668405f1b80117b5
5
5
  SHA512:
6
- metadata.gz: 461714f0766dab2e1c28cadc751245e00fda0e3462d184ed941fcf8ac1ee2562f1635fe0932b7a533722be2dabb7c7328800fb76a2ffacb8391cac92893f125e
7
- data.tar.gz: 7559ef5e0dbedf38cac9d0186289ffb8cd6672b131d84fa13389a09f9c1a41003164f949ef40852475479e84e49868dab618bcd0f2280514103fb1f594b9dc83
6
+ metadata.gz: e1977a47d4cba7532510e6a78881ec869fa644fc617cef3ddefb9af108c279b4b8db4ef1f5ec596081e4193e473d00c0f68e14b03fc641383f53978fa91c53bb
7
+ data.tar.gz: b926b1a3a3cab162b8b0996c256ea1f436a7e146c023feee17faa3c3005c1eb15c32be634bc169293c3faf2d657743449a72bf7411ce1a8fb7afd34422114984
data/Gemfile.lock CHANGED
@@ -110,3 +110,6 @@ DEPENDENCIES
110
110
  rake (~> 10.4)
111
111
  rubocop (~> 0.32)
112
112
  typhoeus (= 0.7.2)
113
+
114
+ BUNDLED WITH
115
+ 1.10.3
data/Rakefile CHANGED
@@ -23,7 +23,7 @@ Jeweler::Tasks.new do |gem|
23
23
  gem.summary = 'Command line interface to Unipept web services.'
24
24
  gem.description = <<-EOS
25
25
  Command line interface to the Unipept (http://unipept.ugent.be) web services
26
- (pept2lca, taxa2lca, pept2taxa and taxonomy) and some utility commands for
26
+ (pept2lca, taxa2lca, pept2taxa, pept2prot and taxonomy) and some utility commands for
27
27
  handling proteins using the command line.
28
28
  EOS
29
29
  gem.email = 'unipept@ugent.be'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.0
1
+ 1.0.0
@@ -93,9 +93,9 @@ module Unipept
93
93
  def add_pept2taxa_command
94
94
  @root_command.define_command('pept2taxa') do
95
95
  usage 'pept2taxa [options]'
96
- summary 'Fetch taxa of Uniprot records that match tryptic peptides.'
96
+ summary 'Fetch taxa of UniProt entries that match tryptic peptides.'
97
97
  description <<-EOS
98
- For each tryptic peptide the unipept pept2taxa command retrieves from Unipept the set of taxa from all Uniprot records whose protein sequence contains an exact matches to the tryptic peptide. The command expects a list of tryptic peptides that are passed
98
+ For each tryptic peptide the unipept pept2taxa command retrieves from Unipept the set of taxa from all UniProt entries whose protein sequence contains an exact matches to the tryptic peptide. The command expects a list of tryptic peptides that are passed
99
99
 
100
100
  - as separate command line arguments
101
101
 
@@ -117,9 +117,9 @@ module Unipept
117
117
  def add_pept2lca_command
118
118
  @root_command.define_command('pept2lca') do
119
119
  usage 'pept2lca [options]'
120
- summary 'Fetch taxonomic lowest common ancestor of Uniprot records that match tryptic peptides.'
120
+ summary 'Fetch taxonomic lowest common ancestor of UniProt entries that match tryptic peptides.'
121
121
  description <<-EOS
122
- For each tryptic peptide the unipept pept2lca command retrieves from Unipept the lowest common ancestor of the set of taxa from all Uniprot records whose protein sequence contains an exact matches to the tryptic peptide. The lowest common ancestor is based on the topology of the Unipept Taxonomy -- a cleaned up version of the NCBI Taxonomy -- and is itself a record from the NCBI Taxonomy. The command expects a list of tryptic peptides that are passed
122
+ For each tryptic peptide the unipept pept2lca command retrieves from Unipept the lowest common ancestor of the set of taxa from all UniProt entries whose protein sequence contains an exact matches to the tryptic peptide. The lowest common ancestor is based on the topology of the Unipept Taxonomy -- a cleaned up version of the NCBI Taxonomy -- and is itself a record from the NCBI Taxonomy. The command expects a list of tryptic peptides that are passed
123
123
 
124
124
  - as separate command line arguments
125
125
 
@@ -164,9 +164,9 @@ module Unipept
164
164
  def add_pept2prot_command
165
165
  @root_command.define_command('pept2prot') do
166
166
  usage 'pept2prot [options]'
167
- summary 'Fetch Uniprot records that match tryptic peptides.'
167
+ summary 'Fetch UniProt entries that match tryptic peptides.'
168
168
  description <<-EOS
169
- For each tryptic peptide the unipept pept2prot command retrieves from Unipept all Uniprot records whose protein sequence contains an exact matches to the tryptic peptide. The command expects a list of tryptic peptides that are passed
169
+ For each tryptic peptide the unipept pept2prot command retrieves from Unipept all UniProt entries whose protein sequence contains an exact matches to the tryptic peptide. The command expects a list of tryptic peptides that are passed
170
170
 
171
171
  - as separate command line arguments
172
172
 
@@ -178,7 +178,7 @@ module Unipept
178
178
  EOS
179
179
 
180
180
  flag :e, :equate, 'equate isoleucine (I) and leucine (L) when matching peptides'
181
- flag :a, :all, 'report all information fields of Uniprot records available in Unipept. Note that this may have a performance penalty.'
181
+ flag :a, :all, 'report all information fields of UniProt entries available in Unipept. Note that this may have a performance penalty.'
182
182
  option :s, :select, 'select the information fields to return. Selected fields are passed as a comma separated list of field names. Multiple -s (or --select) options may be used.', argument: :required, multiple: true
183
183
 
184
184
  runner Commands::Pept2prot
@@ -8,16 +8,16 @@ module Unipept::Commands
8
8
  valid_formats = Set.new %w(fasta txt xml rdf gff sequence)
9
9
  @root_command = Cri::Command.define do
10
10
  name 'uniprot'
11
- summary 'Command line interface to Uniprot web services.'
11
+ summary 'Command line interface to UniProt web services.'
12
12
  usage 'uniprot [options]'
13
13
  description <<-EOS
14
- The uniprot command is a command line wrapper around the Uniprot web services. The command expects a list of Uniprot Accession Numbers that are passed
14
+ The uniprot command fetches UniProt entries from the UniProt web services. The command expects a list of UniProt Accession Numbers that are passed
15
15
 
16
16
  - as separate command line arguments
17
17
 
18
18
  - to standard input
19
19
 
20
- The command will give priority to the first way Uniprot Accession Numbers are passed, in the order as listed above. The standard input should have one Uniprot Accession Number per line.
20
+ The command will give priority to the first way UniProt Accession Numbers are passed, in the order as listed above. The standard input should have one UniProt Accession Number per line.
21
21
 
22
22
  The uniprot command yields just the protein sequences as a default, but can return several formats.
23
23
  EOS
@@ -48,14 +48,14 @@ module Unipept::Commands
48
48
  @root_command.run(args)
49
49
  end
50
50
 
51
- # Fetches a Uniprot record from the uniprot website with the given accession
51
+ # Fetches a UniProt entry from the UniProt website with the given accession
52
52
  # number in the requested format.
53
53
  #
54
54
  # @param [String] accession The accession number of the record to fetch
55
55
  #
56
56
  # @param [String] format The format of of the record. If the format is 'sequence', the sequence will be returned in as a single line
57
57
  #
58
- # @return [String] The requested Uniprot record in the requested format
58
+ # @return [String] The requested UniProt entry in the requested format
59
59
  def self.get_uniprot_entry(accession, format)
60
60
  if format == 'sequence'
61
61
  get_uniprot_entry(accession, 'fasta').lines.map(&:chomp)[1..-1].join('')
@@ -14,7 +14,7 @@ module Unipept
14
14
  assert_equal(%w(a b c), runner.arguments)
15
15
  assert(!runner.configuration.nil?)
16
16
  assert_equal('http://test_host/api/v1/test.json', runner.url)
17
- assert(/Unipept CLI - unipept [0-9]\.[0-9]\.[0-9]/.match runner.user_agent)
17
+ assert(/Unipept CLI - unipept [0-9]*\.[0-9]*\.[0-9]*/.match runner.user_agent)
18
18
  end
19
19
 
20
20
  def test_config_host
data/unipept.gemspec CHANGED
@@ -2,16 +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: unipept 0.10.0 ruby lib
5
+ # stub: unipept 1.0.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "unipept"
9
- s.version = "0.10.0"
9
+ s.version = "1.0.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
12
13
  s.authors = ["Toon Willems", "Bart Mesuere", "Tom Naessens"]
13
- s.date = "2015-07-01"
14
- s.description = " Command line interface to the Unipept (http://unipept.ugent.be) web services\n (pept2lca, taxa2lca, pept2taxa and taxonomy) and some utility commands for\n handling proteins using the command line.\n"
14
+ s.date = "2015-07-14"
15
+ s.description = " Command line interface to the Unipept (http://unipept.ugent.be) web services\n (pept2lca, taxa2lca, pept2taxa, pept2prot and taxonomy) and some utility commands for\n handling proteins using the command line.\n"
15
16
  s.email = "unipept@ugent.be"
16
17
  s.executables = ["unipept", "prot2pept", "peptfilter", "uniprot"]
17
18
  s.extra_rdoc_files = [
@@ -75,9 +76,8 @@ Gem::Specification.new do |s|
75
76
  ]
76
77
  s.homepage = "https://github.com/unipept/unipept-cli/"
77
78
  s.licenses = ["MIT"]
78
- s.require_paths = ["lib"]
79
79
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.3")
80
- s.rubygems_version = "2.1.11"
80
+ s.rubygems_version = "2.4.8"
81
81
  s.summary = "Command line interface to Unipept web services."
82
82
 
83
83
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unipept
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toon Willems
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-07-01 00:00:00.000000000 Z
13
+ date: 2015-07-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cri
@@ -112,7 +112,7 @@ dependencies:
112
112
  version: '0'
113
113
  description: |2
114
114
  Command line interface to the Unipept (http://unipept.ugent.be) web services
115
- (pept2lca, taxa2lca, pept2taxa and taxonomy) and some utility commands for
115
+ (pept2lca, taxa2lca, pept2taxa, pept2prot and taxonomy) and some utility commands for
116
116
  handling proteins using the command line.
117
117
  email: unipept@ugent.be
118
118
  executables:
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  requirements: []
200
200
  rubyforge_project:
201
- rubygems_version: 2.1.11
201
+ rubygems_version: 2.4.8
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: Command line interface to Unipept web services.