many thanks for your reply. This is my command:
java -jar GenomeAnalysisTK.jar -T CombineVariants -R hg38.fa --variant Germline.hc.fpfilterPassed.vcf --variant Somatic.hc.fpfilterPassed.vcf -o output.vcf -genotypeMergeOptions UNIQUIFY
And this is the error when I am using CombineVariants:
Error: Unable to access jar file GenomeAnalysisTK.jar
there is no any jar file with the mentioned name in the downloaded package (gatk-4.0.11.0). after many search I found that may be replacing java -jar GenomeAnalysisTK.jar by gatk can solve the problem. But I got this error:
A USER ERROR has occurred: '-T' is not a valid command.
I tried without -T, but no success.
Regarding MergeVCFs tools: This is the command: (I got this command from the recommended workflow of the website)
java -jar picard.jar MergeVcfs I=Germline.hc.fpfilterPassed.vcf I=Somatic.hc.fpfilterPassed.vcf O=Output.vcf.gz
When I run the command I got this:
NOTE: Picard's command line syntax is changing.
** For more information, please see: ** https://github.com/broadinstitute/picard/wiki/Command-Line-Syntax-Transition-For-Users-(Pre-Transition)
** The command line looks like this in the new syntax:
** MergeVcfs -I Germline.hc.fpfilterPassed.vcf -I Somatic.hc.fpfilterPassed.vcf -O Output.vcf.gz
I tried this command:
java -jar picard.jar MergeVcfs -I Germline.hc.fpfilterPassed.vcf -I Somatic.hc.fpfilterPassed.vcf -O Output.vcf.gz
But I got this error:
ERROR: Invalid argument '-I'
Please help me to get out of this problem. Many thanks!
i think "samtools merge" can help you to do that
Fyi,
samtools mergemerges BAM files, so alignments, not variant files (VCF).i am sorry for my inattention.