genome-pipeline 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,8 +2,36 @@ require 'spec_helper'
2
2
 
3
3
  describe Genome::Pipeline do
4
4
 
5
+ let(:genome) { Genome::Genome.new File.open('spec/data/genome.fasta') }
6
+ let(:pipeline) { Genome::Pipeline.new(Genome::Pipeline::DummyFilter) }
7
+
8
+ let(:test_filter) do
9
+ class TestFilter < Genome::Pipeline::Filter
10
+ def transform
11
+ @genome.features << 'a dummy feature'
12
+ end
13
+ end
14
+ return TestFilter
15
+ end
16
+
5
17
  it 'exists' do
6
18
  expect(Genome::Pipeline).to_not eq(nil)
7
19
  end
8
20
 
21
+ it 'can perform transformations on a Genome' do
22
+ expect { pipeline.run(genome) }.not_to raise_error
23
+ expect(pipeline.run(genome)).to be_a(Genome::Genome)
24
+ end
25
+
26
+ # this belongs in filter_spec
27
+ it '.run should copy the original genome' do
28
+ expect(pipeline.run(genome).object_id).not_to eq(genome.object_id)
29
+ end
30
+
31
+ # this belongs in filter_spec
32
+ it '.run should not alter original features' do
33
+ test_filter.new(genome).transform
34
+ expect(genome.features.size).to eq(0)
35
+ end
36
+
9
37
  end
@@ -12,7 +12,10 @@ describe Genome::Pipeline::ProdigalFilter do
12
12
  end
13
13
 
14
14
  it '.transform' do
15
- expect(filter.transform).to be_a(Genome::Genome)
15
+ filtered_genome = filter.transform
16
+ expect(filtered_genome).to be_a(Genome::Genome)
17
+ expect(filtered_genome.features).not_to eq(nil)
18
+ expect(filtered_genome.features.size).not_to eq(0)
16
19
  end
17
20
 
18
21
  end
data.tar.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ �oS�G̟��Ui�ԈSƂk|�wy�UR��U����9ύ\��B0S@�R�(�Es��w���7�8���-zm�2J�@B^ *1}��>��@4K��P�\(�z�7�8��mVWIh�
2
+ ��ʊ�6�c���Ϲ1d$�]���Ze���ޫ�h��9���W�Y[�I��Ɨh�W�{?���/�p�� �\O��}F'�eeJ.�v#˻^�q<d���s��!G��e�RG),JJLf����Ȓo�����؛��
metadata CHANGED
@@ -1,15 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genome-pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Austin G. Davis-Richardson
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain: []
12
- date: 2014-09-20 00:00:00.000000000 Z
11
+ cert_chain:
12
+ - !binary |-
13
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURJRENDQWdpZ0F3SUJB
14
+ Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREEyTVFvd0NBWURWUVFEREFGZk1S
15
+ UXcKRWdZS0NaSW1pWlB5TEdRQkdSWUVZV2RrY2pFU01CQUdDZ21TSm9tVDhp
16
+ eGtBUmtXQW1Odk1CNFhEVEUwTURjdwpPVEU1TURjMU1Wb1hEVEUxTURjd09U
17
+ RTVNRGMxTVZvd05qRUtNQWdHQTFVRUF3d0JYekVVTUJJR0NnbVNKb21UCjhp
18
+ eGtBUmtXQkdGblpISXhFakFRQmdvSmtpYUprL0lzWkFFWkZnSmpiekNDQVNJ
19
+ d0RRWUpLb1pJaHZjTkFRRUIKQlFBRGdnRVBBRENDQVFvQ2dnRUJBTmNKVDhm
20
+ dEkyZXg0Y0NKR0JUZXhvckJvUVR5VkU1WmFtZGk1MS96UE5nVQoxZXc1OWl6
21
+ WUd2OC9Kak1wVXlURmRGYno4bDdybHllRXNzb3o1WWY2Z2NreGwrbmxtaUJ4
22
+ dklMS3U4VzJaanlGCmEzeW1DYnllaHIvMWkrR1BvelpGeVZLZElFSUhMYWdB
23
+ V2VqNE1kMkZzUURLd21hQS8rNXNTcXUxYjgwUjY3NWUKQWU5bzVHNzZHbmlO
24
+ cHRpQUMvUUYvell3WEdjTUpSSmF0WXgxcUlkSzRyZFphaGxCYW96VHJJNURs
25
+ NDl5TE9iLwpmWktuUmE2SVpDTCtEdVhVVmlOVGlwUHVPTHZuVVNQVHpmbm53
26
+ M2RxK3liTHBEMllwcE1GSFI2NWdpb2lkYmVWCjNyS2daYXU2bWZ6UzdibmUv
27
+ bS9TSWpZVHBQbFloSFRFeGlKWGhFSk56UlVDQXdFQUFhTTVNRGN3Q1FZRFZS
28
+ MFQKQkFJd0FEQWRCZ05WSFE0RUZnUVVNUDk3eG52eWp0bHpEVHJmd3NXTk5i
29
+ RlRJQzB3Q3dZRFZSMFBCQVFEQWdTdwpNQTBHQ1NxR1NJYjNEUUVCQlFVQUE0
30
+ SUJBUUN1VTlUQTdoU1FEN2R5dFdMWWZROFM0dUhyZVNkY2E0UFJrc3hICjM2
31
+ aXk4U3BteW5LSWg4M1V4Wkg5TnI4eFgza1ZuSFg5c0ZZcVVleVFZckxzb2cr
32
+ ZXR3d0Q1MUMrdGFNUlV6WVUKeTJJQ01YR2w5VTl1L2xlY0tqL2tDT0pFOGJE
33
+ aGJWRDlhZG0rWktWcUFvcTBER2xKSTR4YXJJeHd6RENWWnIzdgo0M0xESzZv
34
+ dVp0N3B0NVRaM3daYkJzU1lYY0M0TlZRSHJ4Yis2WWFrVUxreVVGbDZMZDJw
35
+ NklEOTdoVE9BSGQyCmI5UlMzK1AwcFJ6UXlvMm9zUVRuT3VwM1pBbGZxdEc5
36
+ MEYvbTVtU0l2V2VKUUJ3Y1psZDlYMkN2Si9EZ1NmdlgKaEFybEFiejhqSWla
37
+ NUZoSGVjUVZRNlEwc0Rsak5kRmg1TjZTUXA5YWZZZkowRGxiCi0tLS0tRU5E
38
+ IENFUlRJRklDQVRFLS0tLS0K
39
+ date: 2014-09-22 00:00:00.000000000 Z
13
40
  dependencies: []
14
41
  description: Genome processing filters and utilities
15
42
  email:
@@ -18,15 +45,18 @@ executables: []
18
45
  extensions: []
19
46
  extra_rdoc_files: []
20
47
  files:
48
+ - .gitignore
21
49
  - Gemfile
22
50
  - Gemfile.lock
23
51
  - Rakefile
52
+ - certs/audy.cert
24
53
  - genome-pipeline.gemspec
25
54
  - installation.md
26
55
  - lib/genome/genome.rb
27
56
  - lib/genome/genome/feature.rb
28
57
  - lib/genome/genome/genome.rb
29
58
  - lib/genome/pipeline.rb
59
+ - lib/genome/pipeline/dummy_filter.rb
30
60
  - lib/genome/pipeline/filter.rb
31
61
  - lib/genome/pipeline/pipeline.rb
32
62
  - lib/genome/pipeline/prodigal_filter.rb
@@ -58,6 +88,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
88
  - - ! '>='
59
89
  - !ruby/object:Gem::Version
60
90
  version: '0'
91
+ segments:
92
+ - 0
93
+ hash: 1582478238090731680
61
94
  required_rubygems_version: !ruby/object:Gem::Requirement
62
95
  none: false
63
96
  requirements:
@@ -71,3 +104,4 @@ signing_key:
71
104
  specification_version: 3
72
105
  summary: Helpers for processing genomes through a chain of annotation filters
73
106
  test_files: []
107
+ has_rdoc:
metadata.gz.sig ADDED
@@ -0,0 +1,4 @@
1
+ ���L�>����
2
+ ��d�{�~���U�dY
3
+ �~����m�/���=�1t�#�]s�'�V���n�ؾ��n�w�
4
+ ZN�`˩�S񒃣ȹ��J!� W�Q$J�v�;�b�+Q*��PJ�Z�ڲt����k��e?��n�MKfN�`!�z�2��'$d��q'N�I��������Vr>��;��/"�q� ��ɀ���v����PW0 �֞���P(�J��w�e@�7�