Entering edit mode
8.5 years ago
bioguy24
▴
230
I seem to have trouble with calling picard from the command line but other tools work perfectly.
path:
/home/cmccabe/Desktop/NGS/bedops-2.14.4/bin:/home/cmccabe/Desktop/NGS/samtools-1.2:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cmccabe/Desktop/NGS/bedtools2-25.0/bin:/home/cmccabe/Desktop/NGS/bbmap-35.59:/home/cmccabe/Desktop/NGS/FastQC-0.11.4:/home/cmccabe/Desktop/NGS/picard-tools-1.139
The code below throws an error as the picard.jar can not be found:
cmccabe@DTV-A5211QLM:~/Desktop/NGS$ java -jar picard.jar SortSam \ > INPUT=/home/cmccabe/IDP/mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.sam \ > OUTPUT=/home/cmccabe/Desktop/NGS/picard-tools-1.139/sorted_mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.bam \ > SORT_ORDER=coordinate Error: Unable to access jarfile picard.jar
However, that same command in a slightly different (path to jar file added) way works perfectly:
cmccabe@DTV-A5211QLM:~/Desktop/NGS$ java -jar /home/cmccabe/Desktop/NGS/picard-tools-1.139/picard.jar SortSam INPUT=/home/cmccabe/IDP/mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.sam OUTPUT=/home/cmccabe/Desktop/NGS/picard-tools-1.139/sorted_mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.bam SORT_ORDER=coordinate
I guess it's just more out of curiosity why only picard seems to act this way on ubuntu 14.04. Thank you .
I add everything to path using as this seems to permanently add the path to the scripts:
echo export PATH=$PATH:"/home/dnascopev/Desktop/picard-tools-1.139" >> ~/.bashrc
So something like:
Thank you :)
Looks like is I do: