Running My Own Walker On Gatk
2
0
Entering edit mode
13.1 years ago
Pascal ★ 1.5k

Hi.

I can't get my GATK walker encountered by GATK framework altough I have the compiled class under the CLASSPATH umbrella:

pmaugeri@ubuntu-bio:~/gatk$ ls $CLASSPATH
FirstWalker.class  HelloWalker.class  HelloWorld.class
pmaugeri@ubuntu-bio:~/gatk$ java -jar GenomeAnalysisTK-1.2-60-g585a45b/GenomeAnalysisTK.jar -T HelloWalker
##### ERROR ------------------------------------------------------------------------------------------
##### ERROR A USER ERROR has occurred (version 1.2-60-g585a45b): 
[...]
##### ERROR MESSAGE: Could not find walker with name: HelloWalker
##### ERROR ------------------------------------------------------------------------------------------

Is there something else to do to define my walker than what is described in Your first walker ?

I noticed for instance that CountReadsWalker is called with -T CountReads but the corresponding class is CountReadsWalker. I suspect there is a declaration or mapping to be done.

Thanks in advance for your help.

gatk • 3.9k views
ADD COMMENT
0
Entering edit mode

does Hello appear amongst the walker list when you run 'java -jar GenomeAnalysisTK.jar' without any other arguments

ADD REPLY
3
Entering edit mode
13.1 years ago

you have to put the compiled walker in the classpath. So the right command would be to call:

java -cp GenomeAnalysisTK-1.2-60-g585a45b/GenomeAnalysisTK.jar:.  org.broadinstitute.sting.gatk.CommandLineGATK -T HelloWalker
ADD COMMENT
0
Entering edit mode

Many thanks Pierre for your help !

Although I finally have to use "-T Hello" and not "-T HelloWalker" as stated by russH.

ADD REPLY
1
Entering edit mode
13.1 years ago
Russh ★ 1.2k

you are correct on the last point: you should use '... -T Hello '

ADD COMMENT
0
Entering edit mode

Sorry, I forgot to add that I actually tried with -T Hello too and it didn't help. Thanks for your fast answer anyway. This must be something obvious that I forgot :-))

ADD REPLY
0
Entering edit mode

haha, whoever voted this up is being wayy too kind

ADD REPLY
0
Entering edit mode

I voted you up too because at the end I had to use "-T Hello" so your contribution is helpful too ;-) Thanks.

ADD REPLY

Login before adding your answer.

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