If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.

SelectVariant from FILTER column

wukhanwukhan PakistanMember


Dear GATK Team

I am wondering is there any option in GATK'S SelectVariants walker (I am quite sure that its the best as per my need) to select all those variants which have 'SnpCluster' record in the FILTER column. As I do not want those variants that have 'PASS' records.

I tried with this:
java -jar /home/wuk/software/GenomeAnalysisTK.jar -T SelectVariants -R /home/wuk/Working/gnme_refrnces/Homo_sapiens_assembly38.fasta -V snp_clsters2_ws3.vcf -o snp_clsters2_ws3_clstronly.vcf -select "FILTER == 'SnpCluster'"

and many other combinations but I failed every time. What should be the best walker option or JEXL argument for that?



Best Answer


  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie admin
    Accepted Answer

    Did this produce an error or just not the result you wanted?

    You might try dropping the single quotes from around SnpCluster, they shouldn't be necessary.

  • wukhanwukhan PakistanMember

    Yeah, you are right, so the correct command is:

    java -jar /home/wuk/software/GenomeAnalysisTK.jar -T SelectVariants -R /home/wuk/Working/gnme_refrnces/Homo_sapiens_assembly38.fasta -V snp_clsters2_ws3.vcf -o snp_clsters2_ws3_clstronly.vcf -select "FILTER == SnpCluster"



Sign In or Register to comment.