modified proximal_analysis script to handle BED files.