I m getting the following error when trying to run MEGANizer, do you have any suggestions?
Version MEGAN Community Edition (version 6.21.7, built 23 Jun 2021)
Author(s) Daniel H. Huson
Copyright © 2021 Daniel H. Huson. This program comes with ABSOLUTELY NO WARRANTY.
Java version: 14.0.1
Functional classifications to use: EC, EGGNOG, GTDB, INTERPRO2GO, SEED
Loading ncbi.map: 2,302,807
Loading ncbi.tre: 2,302,811
Loading ec.map: 8,081
Loading ec.tre: 8,085
Loading eggnog.map: 30,875
Loading eggnog.tre: 30,986
Loading gtdb.map: 240,103
Loading gtdb.tre: 240,107
Loading interpro2go.map: 13,894
Loading interpro2go.tre: 28,869
Loading seed.map: 979
Loading seed.tre: 980
Meganizing: C7O_metat_diamond.daa
Meganizing init
Exception in thread “main” java.lang.OutOfMemoryError: Java heap space
at megan/megan.daa.DAAReferencesAnnotator.apply(DAAReferencesAnnotator.java:71)
at megan/megan.daa.Meganize.apply(Meganize.java:73)
at megan/megan.tools.DAAMeganizer.run(DAAMeganizer.java:269)
at megan/megan.tools.DAAMeganizer.main(DAAMeganizer.java:65)
slurmstepd-cpu004: error: *** JOB 2389136 ON cpu004 CANCELLED AT 2022-04-23T13:05:23 DUE TO TIME LIMIT ***
These are the parameters
27849936649 Apr 22 08:45 C7O_metat_diamond.daa
#!/bin/bash
#SBATCH -J megan_sbatch
#SBATCH -o filename_%j.txt
#SBATCH -e filename_%j.err
#SBATCH -c 30 # Number of Cores per Task
#SBATCH --time=24:00:00
#SBATCH --mem=128G
With Slurm jobs, your ~/.bashrc is not sourced,
so it doesn’t initialize the shell for Conda environments and you will get an error message
Add this line before activating the environment:
eval “$(conda shell.bash hook)”
Activate the conda environment
conda activate mybioconda
Run megan
daa-meganizer -i C7O_metat_diamond.daa -mdb megan-map-Feb2022.db
Thank you!
Brooke