Open machadodj opened 5 years ago
I may have something similar. In my configuration file I set 'VELVET_PATH' to 'GLOBAL', checked that the program is installed by typing 'velveth -h' in the terminal but while running REPdenovo, I got the following error message: 'AssertionError: velveth is not installed, or given the wrong path in configuration file!!!'
Thank you a lot @machadodj and @jorisbertrand for the suggestions. I am trying to release a new version with improvements in installation and project description. I will keep this issue open for now.
This is a report of issues with the variable ending in "_PATH" on the configuration file (with a fix).
The configuration file for REPdenovo's main.py take several paths to different applications and directories (BWA_PATH, SAMTOOLS_PATH, JELLYFISH_PATH, VELVET_PATH, REFINER_PATH, CONTIGS_MERGER_PATH, and OUTPUT_FOLDER). I had multiple issues setting incomplete paths or using the GLOBAL option for some of them. The best approach seems to be giving complete paths to each of those variables. However, the fact that some have to point to specific files (BWA_PATH, SAMTOOLS_PATH, REFINER_PATH, and CONTIGS_MERGER_PATH) while the others have to point towards directories is confusing.
I am reporting this as an issue because it's not well described on the program's documentation and I hope it might help other users. The fix is simple, simply add the file when setting BWA_PATH, SAMTOOLS_PATH, REFINER_PATH, and CONTIGS_MERGER_PATH but leave other paths pointing just to the directories that contain the files of interest. I suggest adding a comment on the program's documentation and perhaps make these variables follow the same pattern (pointing towards directories, not files) on future versions.
Here is a template for the configuration file when no variables are set to GLOBAL: