I have two files (A ~ 17 MB and B~ 8GB) that I like to intersect them using Bedtools but I faced with error, I want to know is there any solution for it? Also, I guess I have enough memory space.
intersectBed -a A.bed -b B.bed -wa -wb > out.bed
terminate called after throwing an instance of 'std::bad_alloc'
Aborted (core dumped)