# Funannotate Missing Genemark Environmental Variables

**URL:** <https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244>\
**Category:** usegalaxy.eu support\
**Tags:** tool-help, funannotate, genmark, genemark\
**Created:** [June 13, 2023, 11:44pm UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244 "2023-06-13T23:44:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvangoor](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jvangoor](https://help.galaxyproject.org/u/jvangoor)\
**Post date:** [June 13, 2023, 11:44pm UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/1 "2023-06-13T23:44:46Z")

</div>

I’m trying to use Funannotate on a fungal assembly and keep running into the following error about the GeneMark environmental variables missing for this file. I’m at a loss for what to do, so any idea would be greatly appreciated!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/8/88c237c776201eebe1a1587a1074f45a4386b61f.png)

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://help.galaxyproject.org/u/igor)\
**Post date:** [June 14, 2023, 12:38am UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/2 "2023-06-14T00:38:18Z")

</div>

Hi @jvangoor  
Have you changed GenMark settings during the job setup?  
The description says:  
GeneMark is not a free software, to use it download and unzip a license from [GeneMark™ download](http://topaz.gatech.edu/GeneMark/license_download.cgi) (ES/ET/EP version). GeneMark needs to be installed manually by Galaxy administrators, it might not be available on this server.  
You need a license for this option.  
I believe Funannotate works without GenMark, just do not modify options in this section.  
Kind regards,  
Igor

---

<div class="post-metadata">

**Author:** ![jvangoor](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jvangoor](https://help.galaxyproject.org/u/jvangoor)\
**Post date:** [June 14, 2023, 12:43am UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/3 "2023-06-14T00:43:36Z")

</div>

Hi Igor, thanks!

During these runs I have kept the default GeneMark settings (ie, have not indicated that I need to use them, as far as I’m aware). This error only appears for this particular sequence, and other files that have been through the same pipeline either work completely or show different errors downstream. I’m not sure what’s wrong with this particular file.

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://help.galaxyproject.org/u/igor)\
**Post date:** [June 14, 2023, 3:38am UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/4 "2023-06-14T03:38:57Z")

</div>

Hi @jvangoor  
the error message on the screenshot says: a contig has alphabet of less than four. It can be a simple repeat (ACACACACACAC) or NNNNN. Maybe exclude these contigs from the analysis. I don’t know if --force switch is available for this tool in Galaxy.  
Kind regards,  
Igor

---

<div class="post-metadata">

**Author:** ![jvangoor](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jvangoor](https://help.galaxyproject.org/u/jvangoor)\
**Post date:** [June 14, 2023, 8:05pm UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/5 "2023-06-14T20:05:47Z")

</div>

Hi Igor,

Sorry to bother again, but now I’ve gotten a new error message related to the GeneMark issue, but this is much more involved. Do you think there’s a workaround here or will I have to try this tool elsewhere?

## The error:

[Jun 14 07:03 PM]: OS: Rocky Linux 8.6, 28 cores, ~ 490 GB RAM. Python: 3.8.15  
[Jun 14 07:03 PM]: Running funannotate v1.8.15  
[Jun 14 07:03 PM]: GeneMark not found and $GENEMARK\_PATH environmental variable missing. Will skip GeneMark ab-initio prediction.  
[Jun 14 07:03 PM]: Skipping CodingQuarry as no --rna\_bam passed  
[Jun 14 07:03 PM]: Parsed training data, run ab-initio gene predictors as follows:  
e[4mProgram Training-Methode[0m  
augustus busco  
glimmerhmm busco  
snap busco  
[Jun 14 07:04 PM]: Loading genome assembly and parsing soft-masked repetitive sequences  
Traceback (most recent call last):  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/process.py”, line 315, in \_bootstrap  
self.run()  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/process.py”, line 108, in run  
self.\_target(\*self.\_args, \*\*self.\_kwargs)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/managers.py”, line 616, in \_run\_server  
server.serve\_forever()  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/managers.py”, line 182, in serve\_forever  
sys.exit(0)  
SystemExit: 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/util.py”, line 300, in \_run\_finalizers  
finalizer()  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/util.py”, line 224, in **call**  
res = self.\_callback(\*self.\_args, \*\*self.\_kwargs)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/util.py”, line 133, in \_remove\_temp\_dir  
rmtree(tempdir)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/shutil.py”, line 718, in rmtree  
\_rmtree\_safe\_fd(fd, path, onerror)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/shutil.py”, line 675, in \_rmtree\_safe\_fd  
onerror(os.unlink, fullname, sys.exc\_info())  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/shutil.py”, line 673, in \_rmtree\_safe\_fd  
os.unlink(entry.name, dir\_fd=topfd)  
OSError: [Errno 16] Device or resource busy: ‘.nfs00000000070747d100000578’  
Traceback (most recent call last):  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/process.py”, line 315, in \_bootstrap  
self.run()  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/process.py”, line 108, in run  
self.\_target(\*self.\_args, \*\*self.\_kwargs)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/managers.py”, line 616, in \_run\_server  
server.serve\_forever()  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/managers.py”, line 182, in serve\_forever  
sys.exit(0)  
SystemExit: 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/util.py”, line 300, in \_run\_finalizers  
finalizer()  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/util.py”, line 224, in **call**  
res = self.\_callback(\*self.\_args, \*\*self.\_kwargs)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/multiprocessing/util.py”, line 133, in \_remove\_temp\_dir  
rmtree(tempdir)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/shutil.py”, line 718, in rmtree  
\_rmtree\_safe\_fd(fd, path, onerror)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/shutil.py”, line 675, in \_rmtree\_safe\_fd  
onerror(os.unlink, fullname, sys.exc\_info())  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/shutil.py”, line 673, in \_rmtree\_safe\_fd  
os.unlink(entry.name, dir\_fd=topfd)  
OSError: [Errno 16] Device or resource busy: ‘.nfs00000000070744fb00000579’  
[Jun 14 07:04 PM]: Genome loaded: 2,390 scaffolds; 55,994,932 bp; 0.92% repeats masked  
[Jun 14 07:05 PM]: Mapping 553,202 proteins to genome using diamond and exonerate  
[Jun 14 07:12 PM]: Found 797,384 preliminary alignments with diamond in 0:04:41 → generated FASTA files for exonerate in 0:03:15  
Traceback (most recent call last):  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/site-packages/funannotate/aux\_scripts/funannotate-p2g.py”, line 354, in   
with open(exonerate\_raw, ‘w’) as output:  
OSError: [Errno 28] No space left on device: ‘/tmp/p2g\_c06452e8-a4c9-42a1-b333-7b7d91d41005/exonerate.out.combined’  
Traceback (most recent call last):  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/bin/funannotate”, line 10, in   
sys.exit(main())  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/site-packages/funannotate/funannotate.py”, line 716, in main  
mod.main(arguments)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/site-packages/funannotate/predict.py”, line 1558, in main  
lib.exonerate2hints(Exonerate, hintsP)  
File “/usr/local/tools/\_conda/envs/\_\_funannotate@1.8.15/lib/python3.8/site-packages/funannotate/library.py”, line 4600, in exonerate2hints  
with open(file, “r”) as input:  
FileNotFoundError: [Errno 2] No such file or directory: ‘/data/jwd05e/main/060/788/60788349/working/output/predict\_misc/protein\_alignments.gff3’

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [June 14, 2023, 10:02pm UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/6 "2023-06-14T22:02:34Z")

</div>

Just a guess … but the most current index might still be a problem at the EU server. Try using the index from 2022. Details: [problem with funannotate](https://help.galaxyproject.org/t/problem-with-funannotate/10142)

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://help.galaxyproject.org/u/igor)\
**Post date:** [June 14, 2023, 10:56pm UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/7 "2023-06-14T22:56:57Z")

</div>

Hi @jennaj

OSError: [Errno 28] No space left on device

any chance the job run out of storage? It is rather unusual for Funannotate…

Kind regards,

Igor

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [June 15, 2023, 3:50am UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/8 "2023-06-15T03:50:48Z")

</div>

Oh, missed that! Not sure about EU. Seems odd but possible. ping @wm75

---

<div class="post-metadata">

**Author:** ![wm75](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/wm75/32/56_2.png) [@wm75](https://help.galaxyproject.org/u/wm75)\
**Post date:** [June 16, 2023, 10:38am UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/9 "2023-06-16T10:38:50Z")

</div>

@jvangoor if this still persists (try to rerun the job once more to make sure), can you file a bug report on [usegalaxy.eu](http://usegalaxy.eu) please? Thanks,  
Wolfgang

---

<div class="post-metadata">

**Author:** ![jvangoor](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jvangoor](https://help.galaxyproject.org/u/jvangoor)\
**Post date:** [June 16, 2023, 4:18pm UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/10 "2023-06-16T16:18:11Z")

</div>

Hi Wolfgang,

Will do, am trying to run it again now.

Thanks,  
Justin

---

<div class="post-metadata">

**Author:** ![jvangoor](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jvangoor](https://help.galaxyproject.org/u/jvangoor)\
**Post date:** [June 16, 2023, 7:08pm UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/11 "2023-06-16T19:08:23Z")

</div>

Indeed, errors arose again. I’ve supplied bug reports.

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [May 7, 2026, 5:38pm UTC](https://help.galaxyproject.org/t/funannotate-missing-genemark-environmental-variables/10244/13 "2026-05-07T17:38:10Z")

</div>


