unipept 1.0.1 → 1.1.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: 1709761b341ebd499d5e631b2f3bd5538533408f
4
- data.tar.gz: 35551d52792f8af5cbbf5174a9073f64ba4310c5
3
+ metadata.gz: e4a1d5d01af5e00b706fe387a78a1a661d11a0ed
4
+ data.tar.gz: 22064ff35a1789a2cbc48fca2c4f4ec967c3d3a0
5
5
  SHA512:
6
- metadata.gz: b3e93b0fc0997a12418e8d4e0e024766ab464992fbbad7920ec490e83786fae26b462ae43f959047c51976264d0ca61576cffbd55d1d0e58b8dfdc6502070650
7
- data.tar.gz: bf92c339ab872bd4cc9faf526b08ffed8eb800554b6d7b7141f6332247bb0df3312b02ec0e7ee5c69c45db818831164d429c7609ce4b9e7414c87bfb9769f26e
6
+ metadata.gz: e880e9f0737b91efae32a9724cb20ded630af7ad6bc3853af3b3993ebafea024d957f66d9fb14315f2670ade638dc7d708cafb92e54d540906ad1539a529c334
7
+ data.tar.gz: f7cd476ef08424f6a840033a33a025c70ce6eebeda8e71ea454c89246696678cb5049460bdc32904b54b72a447778d5b4aae01f134ac375153560bc5e9b1e684
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.1.0
@@ -46,7 +46,7 @@ module Unipept::Commands
46
46
  end
47
47
 
48
48
  def self.split(protein, pattern)
49
- protein.gsub(/#{pattern}/, "\\1\n\\2").gsub(/#{pattern}/, "\\1\n\\2").split("\n").reject(&:empty?)
49
+ protein.gsub(/\*/, "\n").gsub(/#{pattern}/, "\\1\n\\2").gsub(/#{pattern}/, "\\1\n\\2").split("\n").reject(&:empty?)
50
50
  end
51
51
 
52
52
  # Invokes the uniprot command-line tool with the given arguments.
@@ -8,6 +8,11 @@ module Unipept
8
8
  end
9
9
  assert_equal("AALTER\nAALTERPAALTER", out.chomp)
10
10
 
11
+ out, _err = capture_io_with_input('AALTERAAL*TERPAALTER') do
12
+ Commands::Prot2pept.run(%w())
13
+ end
14
+ assert_equal("AALTER\nAAL\nTERPAALTER", out.chomp)
15
+
11
16
  out, _err = capture_io_with_input('KRKPR') do
12
17
  Commands::Prot2pept.run(%w())
13
18
  end
@@ -32,7 +32,7 @@ module Unipept
32
32
  end
33
33
  lines = out.each_line
34
34
  assert_equal('', err)
35
- assert(lines.next.start_with? 'peptide,uniprot_id,taxon_id')
35
+ assert(lines.next.start_with? 'peptide,uniprot_id,protein_name,taxon_id')
36
36
  assert(lines.next.start_with? 'ENFVYIAK,')
37
37
  end
38
38
 
@@ -42,7 +42,7 @@ module Unipept
42
42
  end
43
43
  lines = out.each_line
44
44
  assert_equal('', err)
45
- assert(lines.next.start_with? 'fasta_header,peptide,uniprot_id,taxon_id')
45
+ assert(lines.next.start_with? 'fasta_header,peptide,uniprot_id,protein_name,taxon_id')
46
46
  assert(lines.count { |line| line.start_with? '>test,EGGAGSSTGQR,' } >= 1)
47
47
  assert(lines.count { |line| line.start_with? '>test,ENFVYIAK,' } >= 1)
48
48
  assert(lines.count { |line| line.start_with? '>tost,EGGAGSSTGQR,' } >= 1)
@@ -2,16 +2,16 @@
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 1.0.1 ruby lib
5
+ # stub: unipept 1.1.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "unipept"
9
- s.version = "1.0.1"
9
+ s.version = "1.1.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Toon Willems", "Bart Mesuere", "Tom Naessens"]
14
- s.date = "2015-07-31"
14
+ s.date = "2015-09-16"
15
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\n commands for handling proteins using the command line.\n"
16
16
  s.email = "unipept@ugent.be"
17
17
  s.executables = ["unipept", "prot2pept", "peptfilter", "uniprot"]
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: 1.0.1
4
+ version: 1.1.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-31 00:00:00.000000000 Z
13
+ date: 2015-09-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cri