freejstone / CONGA

Implementation of the CONGA algorithm for a combined open and narrow search between experimental spectra and a peptide database.
MIT License
3 stars 1 forks source link

Log file overwrite #12

Closed wsnoble closed 1 year ago

wsnoble commented 1 year ago

Mike Riffle said: "I think it'd be nice if the log file only had the output of the most recent run of CONGA. It looks like each run concatenates to the same log, which makes it harder to read. And, importantly, it complicates programmatically processing the log file to get details for the most recent run."

I agree with this. I'd recommend having the log file named something like .log.txt, where is specified by the user, and then having the program refuse to run if that file already exists. You can provide an --overwrite option if you want to be able to clobber the log file.

freejstone commented 1 year ago

--overwrite option has been added with the recommended functionality. Thanks Mike and Bill.