Hello! I need some help concerning intersectBed.
I have file main.bed that contains information: chomosome, start position, end position. (it contains 350 lines)
I want to intersect my file with annotation file (Ensemble) to know information about regions (coding,noncoding, etc)
which correspond to my coordinates (start-end position). So I expect to get following file: chr,my coordinates + information about regions (maybe another info).
I use: intersectBed -a annotation.bed -b main.bed -c > result.bed
As a result I've got a file with the same information from annotation.bed and the last column - it's the number of overlapping lines from my file.
Does somebody know how I can get the file that contains also 350 lines but with additional information about regions?
Thank you very much! I'll try to do it.