Hi I want to calculate the frequency of each overlapping nucleotide. I have coordinates in bed format .e.g
map.bed
chr1 20 40
chr2 6 20
reference.bed
chr1 20 100
chr1 10 70
chr1 20 25
chr2 15 50
chr3 5 12
chr6 5 20
I have used these command like bedops, bedtool intersect, bedmap, coverageBed or bedtools genomecov. But they are giving me output as a complete interval overlap with scores. I just want to calculate the occurrence of each nucleotide individually? Any suggestions!
Thanks for your consideration
That's was very informative. I really appreciate your time and effort. Thanks a lot.
Actually I want to compare two files which are under same assembly(hg19). Each file contains coordinates and I am interested in overlapping coordinates one by one. Like how many times each coordinates occurred/overlapped in reference file?
$ reference file #hyphen indicates genomic locations
chr1 --------- --------------- ------- ----------- ------------- -------------------
$ map file
chr1 ------------- -------
chr1 ------------------ -------------------------
chr1 -----------------
chr1 -------------------
chr1 --------------------------------
$ ExpectedResult.bed
chr coordinates occurrences
chr1 20 5
chr1 21 4
chr1 22 0
chr1 23 2
chr1 24 1
chr1 25 1
chr1 26 1
chr1 27 6
chr1 28 3
chr1 29 7
chr1 30 0
means that genomic location 20 of chromosome1 in map file is overlapping five times with reference file. this is the problem...Any suggestions
thanks
intersectBed