lederhosen 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,14 @@ module Lederhosen
23
23
 
24
24
  trimmed.each do |fasta_file|
25
25
  pbar.inc
26
- records = Dna.new File.open(fasta_file)
26
+
27
+ begin
28
+ records = Dna.new File.open(fasta_file)
29
+ rescue
30
+ ohai "skipping #{fasta_file} (empty?)"
31
+ next
32
+ end
33
+
27
34
  records.each_slice(2) do |r, l|
28
35
  output.puts ">#{r.name}:#{File.basename(fasta_file, '.fasta')}\n#{r.sequence.reverse+l.sequence}"
29
36
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lederhosen
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lederhosen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Austin G. Davis-Richardson