Hi there,
I'm trying to run bbduk
in order to remove adapters from my fastq files:
bbduk.sh in=R1_001.fastq.gz out=clean_1.fastq.gz ktrim=r k=21 path=adapters.fa
But I've got this error:
/usr/bin/bbduk.sh: line 344: /usr/share/bbmap/calcmem: No such file or directory
/usr/bin/bbduk.sh: line 345: setEnvironment: command not found
/usr/bin/bbduk.sh: line 346: parseXmx: command not found
/usr/bin/bbduk.sh: line 350: freeRam: command not found
java -Xmxm -Xmsm -cp /usr/share/java/bbmap.jar jgi.BBDuk in=1_S1_L001_R1_001.fastq.gz out=clean_1_1.fastq.gz ktrim=r k=21 path=adapters.fa
Invalid maximum heap size: -Xmxm
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
PS:
java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
Any idea whats wrong?
Thank you!
solving heap size problem in linux
of course I've tried but it doesn't work :/
How did you install bbduk e.g. via conda? It sounds like an installation issue as pointed out in the previous post.
I think there is a problem with the BBMap package installation. Can you double check that?
eg. it should not say : "/usr/share/bbmap/calcmem: No such file or directory" .
Can you run other tools from the package? Is bbduk the only one failing?
if I run it without any parameter eg
I've got the usage and the options and everything, to it seems the package is correctly installed, isn't it?
yes, that's on thing already indeed.
Can you then check why it complains on the line I posted above (the calcmem program) ? Is it there?
yes it is, in the same directory too
You have not answered the question "how did you install bbmap suite"? We need to know that to diagnose this properly.
You can also explicitly set the memory and try running as
yes sorry, what I did was:
GenoMax , I've run the code as you suggested and it fails too :/