Commit 55288e47 authored by Gerald Salin's avatar Gerald Salin

in : supress the sterrr, and redirect the message

to logging
parent f486c579
......@@ -16,6 +16,7 @@
import os, sys
import logging
from subprocess import Popen, PIPE
from jflow.utils import get_argument_pattern
......@@ -96,7 +97,7 @@ class SubsetAssignation (Analysis):
self.use_index = "true"
if not os.path.exists( self.databank + ".00.idx" ) :
self.use_index = "false"
sys.stderr.write("[WARNING] " + self.__class__.__name__ + " works more quickly with megablast index.\n")
logging.getLogger("SubsetAssignation").warn("would work more quickly with megablast index")
if group_prefix == None :
self.add_parameter_list("group_prefixes", "group_prefix", default=list(map(os.path.basename, self.get_outputs('{basename_woext}', self.sequence_files))))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment