fasta_util 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/fasta_util +2 -2
  3. data/fasta_util.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
data/bin/fasta_util CHANGED
@@ -63,12 +63,12 @@ class FastaUtility < Thor
63
63
  def filter(filename)
64
64
  invoke :filecheck
65
65
  invoke :filecheck, [options.definitions_file]
66
- requested_definitions = File.open(options.definitions_file).map{|definition| definition.strip} if options.definitions_file
66
+ requested_definitions = File.open(options.definitions_file).map{|definition| definition.strip} unless options.definitions_file == ''
67
67
  Bio::FlatFile.open(filename).each do |entry|
68
68
  passed = true
69
69
  passed &&= (entry.length >= options.length_cutoff)
70
70
  passed &&= (entry.definition.match(Regexp.new(options.defline_grep)))
71
- passed &&= (requested_definitions.include? entry.definition)
71
+ passed &&= (requested_definitions.include? entry.definition) unless options.definitions_file == ''
72
72
  passed = !passed if options.inverse_match
73
73
  puts entry if passed
74
74
  end
data/fasta_util.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fasta_util}
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["robsyme"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fasta_util
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.0
5
+ version: 0.5.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - robsyme
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - ">="
127
127
  - !ruby/object:Gem::Version
128
- hash: 221242491910546500
128
+ hash: 107780182399010435
129
129
  segments:
130
130
  - 0
131
131
  version: "0"