A function to calculate the two group peaks enrichment based on Fisher Test.

calFisherPeaks(peak_a, peak_b)

Arguments

peak_a

The peak sets A you want to enrich with peak sets B.

peak_b

The peak sets B you want to enrich with peak sets A.

genome_size

The genome size file. Two columns: chr chr_length.

Examples

calFisherPeaks(peak_a = c("a1.bed", "a2.bed", "a3.bed"),
                         peak_b = c("b1.bed", "b2.bed", "b3.bed"), genome_size= "genome.txt")
#> Error in calFisherPeaks(peak_a = c("a1.bed", "a2.bed", "a3.bed"), peak_b = c("b1.bed",     "b2.bed", "b3.bed"), genome_size = "genome.txt"): unused argument (genome_size = "genome.txt")