Thanks I got the idea.
• 0 views
•
link
Hi, I want to ask how we can make the header name as per our choice in a haplotyping script of gatk because by default the header name of the output.vcf file is mentioned as sample1? here is the script
gatk --java-options "-Xmx32g" HaplotypeCaller --native-pair-hmm-threads 20 -R ~/path//PitayaGenomic.fa -I ${inputbam_files} -O ${output}.g.vcf -ERC GVCF
"Sample1" should have been specified from the very start when mapping the reads to a reference genome using read groups. https://gatk.broadinstitute.org/hc/en-us/articles/360035890671-Read-groups
you can change sample1 to another thing use gatk RenameSampleInVcf https://gatk.broadinstitute.org/hc/en-us/articles/360040510011-RenameSampleInVcf-Picard- or bcftools reheader
Thanks I got the idea.
Log in to answer this question.
I don't understand.
the header name of what ?
what is sample1 ?
as you can see here the
sample1is the header name (this is the output.vcf file after haplotypecalling). For example I want to change it to the name American-beauty. Like multiple files with their header name same as the file name(later) Why asking anyway ? Ram gave the answer yesterday: why CombineGCVFs in gatk not showing all the samples name?
I have changed the header name following the suggestion of Ram. But my concern now is to change the name before haplotypecalling.