fasta_util 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/fasta_util +2 -2
- data/fasta_util.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
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}
|
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
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.
|
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:
|
128
|
+
hash: 107780182399010435
|
129
129
|
segments:
|
130
130
|
- 0
|
131
131
|
version: "0"
|