bio-kmer_counter 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -120,6 +120,7 @@ process_window = lambda do |window,kmer,sequence_name,contig_name|
120
120
 
121
121
  window.window_search(options[:kmer],1) do |tetranucleotide|
122
122
  str = tetranucleotide.to_s
123
+ str.upcase!
123
124
  next unless str.gsub(/[ATGC]+/,'') == ''
124
125
  num_kmers_counted += 1
125
126
  counts[str]+=1
@@ -102,4 +102,14 @@ class TestBioKmerCounter < Test::Unit::TestCase
102
102
  assert stderr.readlines[0].match(/^Usage: kmer_counter/)
103
103
  end
104
104
  end
105
+
106
+ should 'work with lowercase' do
107
+ Tempfile.open('one') do |tempfile|
108
+ tempfile.puts '>one'
109
+ tempfile.puts 'acagt'
110
+ tempfile.close
111
+
112
+ assert_equal "ID\tA\tC\none_0\t0.6\t0.4\n", `#{script_path} -w 5 -k 1 #{tempfile.path}`
113
+ end
114
+ end
105
115
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-kmer_counter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-09 00:00:00.000000000 Z
12
+ date: 2012-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bio
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &79074710 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: 1.4.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: 1.4.2
24
+ version_requirements: *79074710
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: progressbar
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &79238200 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ! '>='
@@ -37,15 +32,10 @@ dependencies:
37
32
  version: 0.11.0
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: 0.11.0
35
+ version_requirements: *79238200
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: parallel
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &79249880 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
41
  - - ! '>='
@@ -53,15 +43,10 @@ dependencies:
53
43
  version: 0.5.17
54
44
  type: :runtime
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: 0.5.17
46
+ version_requirements: *79249880
62
47
  - !ruby/object:Gem::Dependency
63
48
  name: bio-logger
64
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &79249150 !ruby/object:Gem::Requirement
65
50
  none: false
66
51
  requirements:
67
52
  - - ! '>='
@@ -69,15 +54,10 @@ dependencies:
69
54
  version: 1.0.1
70
55
  type: :runtime
71
56
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: 1.0.1
57
+ version_requirements: *79249150
78
58
  - !ruby/object:Gem::Dependency
79
59
  name: shoulda
80
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &79246850 !ruby/object:Gem::Requirement
81
61
  none: false
82
62
  requirements:
83
63
  - - ! '>='
@@ -85,15 +65,10 @@ dependencies:
85
65
  version: '0'
86
66
  type: :development
87
67
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
68
+ version_requirements: *79246850
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: rdoc
96
- requirement: !ruby/object:Gem::Requirement
71
+ requirement: &79245070 !ruby/object:Gem::Requirement
97
72
  none: false
98
73
  requirements:
99
74
  - - ~>
@@ -101,15 +76,10 @@ dependencies:
101
76
  version: '3.12'
102
77
  type: :development
103
78
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: '3.12'
79
+ version_requirements: *79245070
110
80
  - !ruby/object:Gem::Dependency
111
81
  name: jeweler
112
- requirement: !ruby/object:Gem::Requirement
82
+ requirement: &79286630 !ruby/object:Gem::Requirement
113
83
  none: false
114
84
  requirements:
115
85
  - - ~>
@@ -117,15 +87,10 @@ dependencies:
117
87
  version: 1.8.3
118
88
  type: :development
119
89
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ~>
124
- - !ruby/object:Gem::Version
125
- version: 1.8.3
90
+ version_requirements: *79286630
126
91
  - !ruby/object:Gem::Dependency
127
92
  name: bundler
128
- requirement: !ruby/object:Gem::Requirement
93
+ requirement: &79285430 !ruby/object:Gem::Requirement
129
94
  none: false
130
95
  requirements:
131
96
  - - ! '>='
@@ -133,15 +98,10 @@ dependencies:
133
98
  version: 1.0.21
134
99
  type: :development
135
100
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: 1.0.21
101
+ version_requirements: *79285430
142
102
  - !ruby/object:Gem::Dependency
143
103
  name: rdoc
144
- requirement: !ruby/object:Gem::Requirement
104
+ requirement: &79284460 !ruby/object:Gem::Requirement
145
105
  none: false
146
106
  requirements:
147
107
  - - ~>
@@ -149,12 +109,7 @@ dependencies:
149
109
  version: '3.12'
150
110
  type: :development
151
111
  prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ~>
156
- - !ruby/object:Gem::Version
157
- version: '3.12'
112
+ version_requirements: *79284460
158
113
  description: A biogem for counting small kmers for fingerprinting nucleotide sequences.
159
114
  See README for details.
160
115
  email: gmail.com after donttrustben
@@ -192,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
147
  version: '0'
193
148
  segments:
194
149
  - 0
195
- hash: -309263761
150
+ hash: -548048899
196
151
  required_rubygems_version: !ruby/object:Gem::Requirement
197
152
  none: false
198
153
  requirements:
@@ -201,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
156
  version: '0'
202
157
  requirements: []
203
158
  rubyforge_project:
204
- rubygems_version: 1.8.24
159
+ rubygems_version: 1.8.17
205
160
  signing_key:
206
161
  specification_version: 3
207
162
  summary: A biogem for counting small kmers for fingerprinting nucleotide sequences