Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Palmer committed Nov 6, 2023
2 parents cd3fcce + 765916b commit 4d8e196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions funannotate/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -5363,6 +5363,7 @@ def gff2dict(file, fasta, Genes, debug=False, gap_filter=False):
for y in [1, 2, 3]:
protSeq = translate(cdsSeq, v["strand"], y - 1)
if not protSeq:
log = logging.getLogger(__name__)
log.debug(
"Translation of {:} using {:} phase failed".format(
v["ids"][i], y - 1
Expand Down
6 changes: 3 additions & 3 deletions funannotate/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ def __init__(self, prog):
args = parser.parse_args(args)

# create log file for Repeats(capture stderr)
log_name = 'funannotate-mask.log'
# make this filename unique so multiple mask runs can happen in same folder
log_name = "funannotate-mask." + str(uuid.uuid4())[-8:] + ".log"
# this next seems unncessary as filenames should be unique but will leave in
if os.path.isfile(log_name):
os.remove(log_name)

# initialize script, log system info and cmd issue at runtime
lib.setupLogging(log_name)
cmd_args = " ".join(sys.argv)+'\n'
Expand Down Expand Up @@ -197,6 +198,5 @@ def __init__(self, prog):
lib.SafeRemove(tmpdir)
print("-------------------------------------------------------")


if __name__ == "__main__":
main(sys.argv[1:])

0 comments on commit 4d8e196

Please sign in to comment.