Unable to build applet in DNAnexus, .jar file not found
2
0
Entering edit mode
9 months ago

Hi I saved my .jar file in resources/usr/bin however I get this error:

Error: Unable to access jarfile SnpSift.jar  

I don't get this error with other types of binary files.

I want to run something like this:

cat input_file | java -jar SnpSift.jar filter "((ANN[*].IMPACT = 'HIGH') | (ANN[*].IMPACT = 'MODERATE'))" > output_file

Is there something that I'm doing wrong?

dnanexus applet • 624 views
ADD COMMENT
0
Entering edit mode

Please contact DNANexus support. That may be your best bet since this is commercial software and not many here will have access.

ADD REPLY
0
Entering edit mode

Ah I missed the part where DNANexus makes this problem out of our reach. Thank you, GenoMax!

ADD REPLY
3
Entering edit mode
9 months ago
LChart 3.9k

The resources bundle is unpacking SnpSift.jar into /usr/bin; but it is a jar file that is executed via java.

You can either java -jar /usr/bin/SnpSift.jar which looks weird; or, alternatively, save SnpSift.jar into resources/home/dnanexus/SnpSift.jar and your command line will work, as the .jar file will be unpacked into the execution home directory.

ADD COMMENT
0
Entering edit mode
9 months ago
Ram 44k

That's not how $PATH works. Place your jar file in any accessible location, then add a script to your /usr/local/bin like so:

#!/bin/sh 
java -jar /path/to/SnpSift.jar "$*"

Name this script 'snpsift`. Then you'll be able to do this:

cat input_file | snpsift filter "((ANN[*].IMPACT = 'HIGH') | (ANN[*].IMPACT = 'MODERATE'))" > output_file
ADD COMMENT

Login before adding your answer.

Traffic: 3140 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