Unrecognized option: I picard.jar

539 Views Asked by At

I am trying to convert a BMA file into FASTQ format, using picard.jar. This is my command:

java -jar /opt/picard-tools/picard.jar SamToFastq \ I=chr2chr3.bam \ FASTQ=chr2chr3.f1.fastq \ SECOND_END_FASTQ=chr2chr3.f2.fastq

However I got this error message:

ERROR: Unrecognized option: I

I am totally confused, Any thoughts?

2

There are 2 best solutions below

0
On BEST ANSWER

remove the backslashes

java -jar /opt/picard-tools/picard.jar SamToFastq  I=chr2chr3.bam  FASTQ=chr2chr3.f1.fastq  SECOND_END_FASTQ=chr2chr3.f2.fastq

note:

0
On

Try with :

java -jar /opt/picard-tools/picard.jar SamToFastq \ 'I=chr2chr3.bam' \ FASTQ=chr2chr3.f1.fastq \ SECOND_END_FASTQ=chr2chr3.f2.fastq