simoncchu / GAPPadder

GAPPadder is tool for closing gaps on draft genomes with short sequencing data
27 stars 7 forks source link

Support empty string for KMC/Velvet paths #8

Closed EricChen424 closed 4 years ago

EricChen424 commented 4 years ago

Hi,

Just noticed that I was getting a "string index out of range" error when KMC was already set to my PATH (so I left it as "" in the configuration.json). The reason seems to be that in Utility.py we always run

if pkmc[-1]!="/":
        pkmc=pkmc+"/"
    if pvelvet[-1]!="/":
        pvelvet=pvelvet+"/"

But these only work if the strings are at least length 1. We should probably add a check like pkmc and pkmc[-1] != "/".