Skip to content

Commit

Permalink
minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben J. Woodcroft committed Mar 21, 2014
1 parent 9cf4bc9 commit f00f89c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/bio-velvet/graph.rb
Expand Up @@ -571,6 +571,10 @@ class NodedRead
def self.apply_grep_hack(graph, path_to_graph_file, interesting_read_ids, interesting_node_ids, grep_context)
interesting_read_ids ||= []
interesting_node_ids ||= []
if interesting_read_ids.empty? and interesting_node_ids.empty?
log.debug "Nothing to grep for in grep hack" if log.debug?
return
end

Tempfile.open('grep_v_hack') do |tempfile|
# Create a file to pass to grep -f
Expand Down

0 comments on commit f00f89c

Please sign in to comment.