genometools / genomethreader

GenomeThreader gene prediction software.
ISC License
11 stars 5 forks source link

unify resource detection procedure #12

Closed satta closed 4 years ago

satta commented 4 years ago

This PR unifies the way that external resources (such as BSSMs, alphabet definitions, or score matrices) are obtained in GenomeThreader. In the proposed approach, the following chain of locations will be searched for the file in question, in order:

The latter one is new because in system-wide installation situations, gth is in /usr/bin but the FHS disallows subdirectories there. Also, one cannot always assume that environment variables are set by default.

In general, this approach mirrors what is already done in GenomeTools.