Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fasta filter

  • Loading branch information...
commit 9f8f5e123f3ebe352819ba53bf751a1ed4e04d6b 1 parent bb0829c
@pjotrp authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 bin/fasta_filter.rb
View
5 bin/fasta_filter.rb
@@ -78,10 +78,7 @@ def self.parse(args)
num = -1
FastaReader::emit_fastarecord(-> { ARGF.gets }) { | rec |
num += 1
- if options.filter
- b = eval(options.filter)
- next if not eval(options.filter)
- end
+ next if options.filter and not eval(options.filter)
if options.codonize
size = rec.seq.size
rec.seq = rec.seq[0..size - (size % 3) - 1]
Please sign in to comment.
Something went wrong with that request. Please try again.