how can i add rsID(annotation) to my vcf file
0
0
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 
VCF bcftools • 1.6k views
ADD COMMENT
0
Entering edit mode

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 ...

ADD REPLY
0
Entering edit mode

in both of them are same but did not work

ADD REPLY
0
Entering edit mode

i fix that thank you pierre

ADD REPLY
0
Entering edit mode

so , what was the problem ?

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 1910 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6