Having a deletion coordinates how to know in which gene this is?
3
0
Entering edit mode
2.5 years ago
Manuel ▴ 40

I have a VCF files with big deletions and I want to know if these deletion are in (completly or partially) of a particular gene. I want to basically know the gene names affected by these deletions

NGS • 1.1k views
ADD COMMENT
6
Entering edit mode
2.5 years ago
kashiff007 ★ 1.9k

Simply annotate your VCF file using any of the program; ChIPseeker, MEME, bcftools ... the list is long. I am demonstrating bcftools here:

   bcftools annotate  -a genes.bed.gz  -c CHROM,FROM,TO,GENE  -h <(echo '##INFO=ID=GENE,Number=1,Type=String,Description="Gene name">')  variants.vcf.gz

A few things to note:

  • genes.bed.gz must be a standard BED file that has been zipped using bgzip (bgzip genes.bed)
    • genes.bed.gz must indexed using tabix (tabix -p bed genes.bed.gz)
    • genes.bed.gz does not need a header (we define this with the -c option instead)
    • CHROM', 'FROM', and 'TO' are required to be passed to the -c option, but these columns do not actually get added to your VCF (only the '- GENE' will get added)
    • Because we're not annotating from a VCF/BCF file, the -h option is required (it will not work otherwise)
    • Whatever we pass to the -h option will simply get added to the VCF meta-information
ADD COMMENT
1
Entering edit mode
2.5 years ago

what have you tried so far?

quick search should give you half the solution already (bedtools intersect)

ADD COMMENT
0
Entering edit mode

Thanks for the answer.

If I do this, I would need a dataset with genes name and their coordinates wouldn't I?

ADD REPLY
0
Entering edit mode

yes indeed. a GFF or GTF or such file with the gene annotations or bed-file might be even more suited.

ADD REPLY
0
Entering edit mode

many thanks for your help

ADD REPLY
1
Entering edit mode
2.5 years ago
brunobsouzaa ▴ 830

Besides everything that was already said, you can also try using AnnotSV for this task.

ADD COMMENT

Login before adding your answer.

Traffic: 2635 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