mquinodo / AutoMap

Tool to find regions of homozygosity (ROHs) from sequencing data.
24 stars 9 forks source link

Changes temporary log file's name and path #15

Closed ManavalanG closed 1 year ago

ManavalanG commented 2 years ago

Automap creates a temporarily log file during runtime, and this file gets stored in the parent folder of the repo instead of within the repo. That is, it currently works like this:

tools/
├── AutoMap
│   ├── AutoMap_v1.2.sh
│   └── README.md
└── AutoMap.log          <--- log file in parent directory of the repo directory

instead of this:

tools/
└── AutoMap
    ├── .log             <--- log file within the repo directory
    ├── AutoMap_v1.2.sh
    └── README.md

This setup especially creates a problem when Automap is run in the docker/singularity container where one is not expected to provide read/write access to the parent directory of the repo. This pull request modifies the current behavior to store the log file as .log inside the repo directory.

mquinodo commented 1 year ago

Thank you very much for the changes. It is indeed better now.