This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Picard downsample metric file

Hello,

I am trying to downsample my bam file using picard , using the following command. The documentation states that the Metrics_file is a optional parameter, though its giving me the error , the command I am using is

java -jar /home/apps/software/picard/2.10.1-Java-1.8.0_152/picard.jar DownsampleSam I= myinput_unique_rmdup.bam O=2myinput_downsampled.bam STRATEGY=HighAccuracy P=0.859826418

and following is the error that's coming up

To execute picard run 'picard'.  This command executes 'java -jar /home/apps/software/picard/2.10.1-Java-1.8.0_152/picard.jar'
ERROR: Option 'METRICS_FILE' is required.

I would really appreciate any help or suggestions?

A little about the data: I am working on CHip seq data, and the files are input and IP bam file that I want to downsample

picard

1 answer

I= myinput_unique_rmdup.bam

Is there an extra space between = and file name?

Thankyou for your reply , yes exactly there was extra space. In addition to that loading the latest version of picard also worked for me .

Log in to answer this question.