Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from moka-guys/change_logfile_name
Browse files Browse the repository at this point in the history
change backup_runfolder.py logfile name fix #19
  • Loading branch information
natashapinto authored Feb 27, 2020
2 parents ddb7a53 + e277be2 commit 4ad2abd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Workstation Housekeeping v1.6
# Workstation Housekeeping v1.7

Scripts to manage data on the NGS workstation

Expand Down Expand Up @@ -29,7 +29,7 @@ This tool requires the DNAnexus utilities `ua` (upload agent) and `dx` (DNAnexus
* A count of files that should be uploaded (using the ignore terms if provided)
* A count of files in the DNA Nexus project
* (If relevant) A count of files in the DNA Nexus project containing a pattern to be ignored. NB this may not be accurate if the ignore term is found in the result of dx find data (eg present in project name)
* Logs from this and the script are written to a logfile, named after the runfolder. A destination for this file can be passed to the `--logpath` flag.
* Logs from this and the script are written to a logfile, named "runfolder_backup_runfolder.log". A destination for this file can be passed to the `--logpath` flag.

---

Expand Down
2 changes: 1 addition & 1 deletion backup_runfolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def log_setup(args):
# If logfile path passed to --logpath, prepend to logfile name, else write to current directory
logpath = args.logpath if args.logpath else ""
# Set logfile name as runfolder name with '.log' extension
logfile_name = "".join([os.path.basename(args.runfolder.strip("/")), ".log"])
logfile_name = "".join([os.path.basename(args.runfolder.strip("/")), "_backup_runfolder.log"])
logfile_fullpath = os.path.join(logpath, logfile_name)

# Create dictionary with logging config parameters.
Expand Down

0 comments on commit 4ad2abd

Please sign in to comment.