I'm new to this, but I've successfully dabbled with alignment and variant calling. I installed conda as per the biostar handbook. It didn't have GATK, so I installed this myself with the following:
conda install -c bioconda gatk
I can see it's installed when I check the programs using:
conda list
However, when I go to run GATK, I get this:
$ gatk Mutect2 -R $REF -I "$BAM" -O "$DIR"/gatk/$PREFIX"_bwa_gatk_unfiltered.vcf"
-bash: gatk: command not found
(bioinfo)
I've read a few posts from people who get this error, as below, but can't get it working! https://gatk.broadinstitute.org/hc/en-us/community/posts/360064694932-Command-Gatk-not-found- https://gatk.broadinstitute.org/hc/en-us/articles/360035889851--How-to-Install-and-use-Conda-for-GATK4 https://gatk.broadinstitute.org/hc/en-us/community/posts/360064694932-Command-Gatk-not-found-
Worked perfectly, thanks!!
thanks, it works