We've moved!
This site is now read-only. You can find our new documentation site and support forum for posting questions here.
Be sure to read our welcome blog!

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.