I have 2 data file in bed format ( chr22.fna.S15-30_L0-10_M5.bed & GSM669971_BI.Brain_Hippocampus_Middle.Input.112.bed ).
How I can find the correlation between 2 bed files in R language. I used "Jaccard Statistic" tools to find similarity and plot a heatmap. but I don't know how I can find Pearson or Spearman correlation in bed format files in R!?