Thanks, Amit. I was away for a conference.
bedtools intersect -wa -wb -a Homo_sapiens.GRCh37_BED_SORTD.bed -b Sample1_cnv_file.bed -f 0.5 -r > GRCg37_Sample1_overlap.txt
Also, now I am annotating my CNV events with DGV database using annovar tool.
First I tried, this command "$ annotate_variation.pl -regionanno -build hg19 -out ex1 -dbtype dgvMerged example/ex1.avinput humandb/". All my 500 cnv events got annotated.
Do I need to increase the minimum overlap fraction ?
Does it mean all my CNV events are common in the population?
How do I check my CNVs are pathogenic or not?
CNV annotation can be easily automated (with OMIM, DGV, 1000g, haploinsufficiency, TAD, ... and also with your own in-house information)!
You can look at this post describing the annotSV tool: Annotation for SV and CNV