Commit 09ce7ba4 by Riccardo Vicedomini
parents 8da900e4 b6eb4dba
......@@ -17,7 +17,7 @@
# Common functions and definitions
PV_NAME="MetaCLADE"
PV_VERSION='2.0'
PV_DATE='20200220'
PV_DATE='20200318'
function abspath() { echo "$(cd "$(dirname "$1")"; pwd -P)/$(basename "$1")"; }
......
......@@ -8,6 +8,8 @@ from collections import defaultdict
from mclade_utils import *
script_name = os.path.splitext( os.path.basename(__file__) )[0]
# ARGUMENTS
RESULT_FILE = "result_file"
OUT_RESULT_FILE = "out_result_files"
......@@ -30,6 +32,8 @@ def main():
# load results file and sort the hits by decreasing score
results = []
for result_filename in args[RESULT_FILE]:
if not os.path.isfile(result_filename):
continue
with open(result_filename,'r') as result_file:
for line in result_file:
results.append( line.rstrip(' \n\r').split('\t') )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment