def run_CSS(input_path, out_path, output_CSS_statistics):
 if (not output_CSS_statistics):
  command_args = [('-i %s -o %s' % (input_path, out_path))]
 else:
  command_args = [('-i %s -o %s -s %s' % (input_path, out_path, output_CSS_statistics))]
 rsl = RExecutor(TmpDir=get_qiime_temp_dir())
 app_result = rsl(command_args=command_args, script_name='CSS.r')
 return app_result

def run_CSS ( input_path , out_path , output_CSS_statistics ) : if ( not output_CSS_statistics ) : command_args = [ ( '-i %s -o %s' % ( input_path , out_path ) ) ] else : command_args = [ ( '-i %s -o %s -s %s' % ( input_path , out_path , output_CSS_statistics ) ) ] rsl = RExecutor ( TmpDir = get_qiime_temp_dir ( ) ) app_result = rsl ( command_args = command_args , script_name = 'CSS.r' ) return app_result
run metagenomeseqs css algorithm through rscript .