Entering edit mode
2.4 years ago
amahdi779
•
0
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
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
i fix that thank you pierre
so , what was the problem ?
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