Question: picard installation failure
1
gravatar for sanariyaz21
3 months ago by
sanariyaz2110
sanariyaz2110 wrote:

hi

i am trying to install picard tools in my system

i tried installing and older version picardtools-1.128 simply by downloading it https://github.com/broadinstitute/picard/releases/tag/1.128 which didnt worked

so i downloaded latest release and gave the command as follows : https://github.com/broadinstitute/picard cd picard/ ./gradlew shadowJar

but after this command i am getting the followin error.

uhail@suhail-HP-Notebook:~/picard$ ./gradlew shadowJar

FAILURE: Build failed with an exception.

  • Where: Build file '/home/suhail/picard/build.gradle' line: 55

  • What went wrong: A problem occurred evaluating root project 'picard'.

    Cannot invoke method getURLs() on null object

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.014 secs

i ahve tried installing older version picardtools-1.128 moved it to another directory and given the path but when executed the command it didnt worked too. for this package i used following commands: chmod 755* (after goint in the directory) cd .. cp -r picard ~/software_library/ ln -sf ~/software_library/picard/picard.jar ~/software_library/bin/picard

but when executed : suhail@suhail-HP-Notebook:~/Desktop/data/FAstq$ picard MarkDuplicates I=output.sort.bam O=output_marked.sort.bam M=picard_info.txt REMOVE_DUPLICATES=true AS=true bash: /usr/bin/picard: No such file or directory

kindly help !!!!

picard software error • 389 views
ADD COMMENTlink modified 9 weeks ago by simon.vanheeringen110 • written 3 months ago by sanariyaz2110

it will be appreciated if somebody can just guide me with the installation commands as like many others i am new to ngs data analysis . help will be appreciated . thank you

ADD REPLYlink written 3 months ago by sanariyaz2110

simply by downloading it https://github.com/broadinstitute/picard/releases/tag/1.128 which didnt worked

what "it didn't worked" means ???

ADD REPLYlink written 3 months ago by Pierre Lindenbaum102k

it didnt worked means as follows :

i ahve tried installing older version picardtools-1.128 moved it to another directory and given the path but when executed the command it didnt worked too. for this package i used following commands: chmod 755* (after goint in the directory) cd .. cp -r picard ~/software_library/ ln -sf ~/software_library/picard/picard.jar ~/software_library/bin/picard

but when executed : suhail@suhail-HP-Notebook:~/Desktop/data/FAstq$ picard MarkDuplicates I=output.sort.bam O=output_marked.sort.bam M=picard_info.txt REMOVE_DUPLICATES=true AS=true bash: /usr/bin/picard: No such file or directory

ADD REPLYlink written 3 months ago by sanariyaz2110

see my answer below

Futhermore:

 /usr/bin/picard: No such file or directory

means you have a basic $PATH problem...

ADD REPLYlink written 3 months ago by Pierre Lindenbaum102k
5
gravatar for Pierre Lindenbaum
3 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum102k wrote:
. cp -r picard ~/software_library/ ln -sf ~/software_library/picard/picard.jar ~/software_library/bin/picard

this cannot work. picard.jar is not a standalone executable but a java jar : http://www.geeksforgeeks.org/jar-files-java/

you muts invoke it with java:

java -jar /path/to/picard.jar MarkDuplicates
ADD COMMENTlink written 3 months ago by Pierre Lindenbaum102k

thanks it worked i was not invoking it correctly. now its working well

ADD REPLYlink written 3 months ago by sanariyaz2110
1
gravatar for simon.vanheeringen
9 weeks ago by
simon.vanheeringen110 wrote:

Try using bioconda. After installation of Anaconda and setting up the bioconda repository, you can install Picard tools like this:

$ conda install picard
ADD COMMENTlink written 9 weeks ago by simon.vanheeringen110
0
gravatar for genetic
9 weeks ago by
genetic20
United States
genetic20 wrote:

Hello,

I've invoke it with java, but I still have an error. Could you please let me know how should I fix this? Thank you.

[root@NGS:han]# java -jar picard.jar Exception in thread "main" java.lang.UnsupportedClassVersionError: picard/cmdline/PicardCommandLine : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:803) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:442) at java.net.URLClassLoader.access$100(URLClassLoader.java:64) at java.net.URLClassLoader$1.run(URLClassLoader.java:354) at java.net.URLClassLoader$1.run(URLClassLoader.java:348) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:347) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

ADD COMMENTlink written 9 weeks ago by genetic20
1

wong version of java (1.5). You need java (oracle)-1.8

ADD REPLYlink written 9 weeks ago by Pierre Lindenbaum102k

Thank you. It works.

ADD REPLYlink written 9 weeks ago by genetic20
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1387 users visited in the last hour