Author: Ying Wu. Helper function for VennPeaks

peak2GRanges(bedfile, type = "macs", skip = 0)