This is a test version of Biostars. For the public version, visit https://www.biostars.org.
picard error in trinty pipeline

Hi everybody,

I am running GATK pipeline for variant calling in trinity with following command.

/usr/local/bin/Trinityrnaseq-v2.6.6/Analysis/SuperTranscripts/AllelicVariants/run_variant_calling.py --st_fa ./SuperDuper.fasta --st_gtf ./SuperDuper.gff -p ./FCHG1.fq.gz  ./FCHG.fq.gz -o ./variant_calls_outdir

But I got following error:

Error, missing path to Picard-Tools in $PICARD_HOME.

based on the instructions on the trinity web, I need to set the installation directory to the environmental variable ${PICARD_HOME}. for this purpose (adding the picard path to $PATH) I tried following command but my problem was not solved.

PATH="$PATH:$HOME/picard-2.23.0" 
echo $PATH

output

/home/ubuntu/bin:/home/ubuntu/.local/bin:/home/ubuntu/anaconda3/bin:/home/ubuntu/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/picard-2.23.0

I don’t know how can I set the installation directory to the environmental variable ${PICARD_HOME}.

best regards

snp software error

2 answers

Please read the error message properly. You need to set PICARD_HOME to the installation directory, not add it to PATH. Try

PICARD_HOME=$HOME/picard-2.23.0

and then run the script again.

If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they all work.

Upvote|Bookmark|Accept

thank you for your guidance

So, are you planning on accepting answers that work and providing feedback on answers that don't?

hello, I was using Android and the icons were not shown, I hope I understood your guidance correctly. it's done now. thank you.

The script is asking for the $PICARD_HOME variable, then you need to create it:

export PICARD_HOME="$HOME/picard-2.23.0"

Log in to answer this question.