Skip to content

Conversation

@feibendepiaoerbai
Copy link

@feibendepiaoerbai feibendepiaoerbai commented Nov 19, 2024

Solve the issue"error: [Errno 2] No such file or directory: '/root/anaconda3/envs/funannotate/opt/evidencemodeler-2.1.0/evidence_modeler.pl" when run: funannotate predict.
RunEVM has already been correctly assigned a value previously, and it requires another judgment when using EVM,therefore, modify the use of the variable EVM to the variable RunEVM.

@hyphaltip
Copy link
Collaborator

This fix doesn't quite make sense 'RunEVM' is a variable with includes the full path to the script including 'evidence_modeler.pl' so I think this line should just be

diff --git a/funannotate/aux_scripts/funannotate-runEVM.py b/funannotate/aux_scripts/funannotate-runEVM.py
index 27ce8eb..574c9fb 100755
--- a/funannotate/aux_scripts/funannotate-runEVM.py
+++ b/funannotate/aux_scripts/funannotate-runEVM.py
@@ -576,7 +576,7 @@ for s in sorted(cmdinfo.items(), key=lambda x: x[1]["n"], reverse=True):
     else:
         outputDir = os.path.abspath(os.path.join(tmpdir, key))
     cmd = [
-        os.path.join(EVM, "evidence_modeler.pl"),
+        RunEVM,
         "-G",
         os.path.join(outputDir, os.path.basename(args.fasta)),
         "-g",

@hyphaltip
Copy link
Collaborator

fixing this in bug #1145 1145

@hyphaltip hyphaltip closed this Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants