This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how can i add rsID(annotation) to my vcf file

i want to add or fill my ID column in VCF file with bcftools my code generate output file but there is no rsIDs in the VCF file this is my code:

bcftools annotate -a 1000G_phase1.snps.high_confidence.b37.vcf.gz -c ID -o allsample_snp_id_chr20.vcf.gz Allsample_SNP_chr20.vcf.gz 
vcf bcftools

to you have the same chromosome notation '1' vs 'chr1' between 1000G_phase1.snps.high_confidence.b37.vcf.gz and Allsample_SNP_chr20.vcf.gz ...

in both of them are same but did not work

ths code is right but input file for adding rsID is different this is right code : bcftools annotate -a 1000G_phase1.snps.high_confidence.b37.vcf.gz -c ID -o allsample_snp_id_chr20.vcf.gz allsample_snp_chr20.vcf.gz

0 answers

No answers yet.

Log in to answer this question.