The default parameter settings are defined in a configuration file, config.yml
. The original file is located in the program directory. The file is in YAML format, which is human-readable and editable. For example:
## Database locations
database:
# reference protein sequence database for DIAMOND
diamond: /home/me/dbs/hgtector/2019-11-22/diamond/db.dmnd
## Sequence homology search
search:
# search cutoffs
evalue: 1.0e-20
One may directly modify it using a text editor. But don't forget to make a backup before saving!
- A typical use case is to enter the paths to the databases in the configuration file, so that one does not need to specify them in future uses.
HGTector will sequentially look for this file in the following locations:
- Current directory (
.
) - Home directory (
~
), under subdirectory.hgtector
- Program directory
Therefore one may prepare analysis-specific configuration files, if the same settings are to be executed multiple times and records are needed.
Note: If you installed HGTector using Conda, this file may be located at:
<conda_dir>/envs/hgtector/lib/python3.<x>/site-packages/hgtector/config.yml
Note for HGTector1 users: the configuration file used to be a must and a headache. But for HGTector2, you can completely ignore it! It is only relevant when you want to save typing commands.