error bbduk
0
0
Entering edit mode
20 months ago
Kárita • 0

Can anyone help me, I try to run the command and it gives this error, how can I adjust?

java -ea -Xmx-78m -Xms-78m -cp /home/qiime2/Documents/bbmap/current/ jgi.BBDuk in= /Home/Desktop/Documents/limpeza/S2500_1.fastq out= /Home/Desktop/Documents/limpeza/S2500_1.fastq.clean.fastq trimq=20 minlen=75
Invalid maximum heap size: -Xmx-78m
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
linux bbduk java • 1.2k views
ADD COMMENT
0
Entering edit mode

-Xmx-78m ; your asking for a negative amount of memory. Try:

 -Xmx78m -Xms78m 
ADD REPLY
0
Entering edit mode

now it appeared like this

Exception in thread "main" java.lang.RuntimeException: Unknown parameter /Home/Desktop/Documents/limpeza/S2500_1.fastq.clean.fastq at jgi.BBDuk.<init>(BBDuk.java:538)

ADD REPLY
0
Entering edit mode

Provide the actual command you used.

You would normally specify memory using bbduk.sh -Xmx4g in your command line. BBDuk should need a small amount of memory.

ADD REPLY
0
Entering edit mode
./bbduk.sh -Xmx2g in= /Home/Desktop/Documents/limpeza/S2500_1.fastq out= /Home/Desktop/Documents/limpeza/S2500_1.fastq.clean.fastq trimq=20 minlen=75
java -ea -Xmx2g -Xms2g -cp /home/qiime2/Documents/bbmap/current/ jgi.BBDuk -Xmx2g in= /Home/Desktop/Documents/limpeza/S2500_1.fastq out= /Home/Desktop/Documents/limpeza/S2500_1.fastq.clean.fastq trimq=20 minlen=75
Executing jgi.BBDuk [-Xmx2g, in=, /Home/Desktop/Documents/limpeza/S2500_1.fastq, out=, /Home/Desktop/Documents/limpeza/S2500_1.fastq.clean.fastq, trimq=20, minlen=75]
Version 39.01

Exception in thread "main" java.lang.RuntimeException: Unknown parameter /Home/Desktop/Documents/limpeza/S2500_1.fastq.clean.fastq
    at jgi.BBDuk.<init>(BBDuk.java:538)
    at jgi.BBDuk.main(BBDuk.java:78)
ADD REPLY
1
Entering edit mode

There is a blank space between option and argument: out= /Home/Desktop/Documents/limpeza/S2500_1.fastq.clean.fastq.

ADD REPLY
0
Entering edit mode

Correct. No spaces are allowed between = and file names for all options.

Use

./bbduk.sh -Xmx2g in=/Home/Desktop/Documents/limpeza/S2500_1.fastq out=/Home/Desktop/Documents/limpeza/S2500_1.fastq.clean.fastq trimq=20 minlen=75
ADD REPLY
0
Entering edit mode

78 M might anyway be too small though ;)

ADD REPLY

Login before adding your answer.

Traffic: 2654 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6