Skip to content

Commit

Permalink
vhm.py genfromtxt dtype=str
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieren committed Jan 17, 2018
1 parent bca8f1a commit a455020
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vhm.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,7 @@
else :
hostTaxaFile = os.path.join(options.outDir, os.path.basename(options.hostTaxaFile)+"_new.txt")
hostTaxaTable = numpy.genfromtxt(options.hostTaxaFile,delimiter="\t", dtype=str)
print(hostTaxaTable)
hostTaxaTable[hostTaxaTable=='']='unknown'
print(hostTaxaTable)
numpy.savetxt(hostTaxaFile, hostTaxaTable, fmt="%s", delimiter='\t', newline='\n')

filelog.flush()
Expand Down

0 comments on commit a455020

Please sign in to comment.