Skip to content
Snippets Groups Projects
Commit 06675bb2 authored by remy's avatar remy
Browse files

still some bugs but nevertheless it gives some results

parent 5862116d
No related merge requests found
......@@ -138,13 +138,12 @@ def WriteNormalizedBlastFile(blastDir_list, B, iSpecies, jSpecies, sep = "_", qD
except (IndexError, ValueError):
sys.stderr.write("\nERROR: Query or hit sequence ID in BLAST results file was missing or incorrectly formatted.\n")
raise
#try:
# score = float(row[11])
#except (IndexError, ValueError):
# sys.stderr.write("\nERROR: 12th field in BLAST results file line should be the bit-score for the hit\n")
# raise
newscore = B[sequence1ID, sequence2ID]
row.append(newscore)
try:
newscore = B[sequence1ID, sequence2ID]
row.append(newscore)
except IndexError as e:
sys.stderr.write("\nERROR: Matrix index : %s \n" % e)
pass
blastwriter.writerow(row)
move(tempfile.name, fnNorm)
except Exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment