thanks alot for sharing it. I tried it on my bed files but I am getting error of "error: unrecognized command: summary" In bedtolls, there is no summary parameter .
• 0 views
•
link
Hi everyone
I am working on multiple bed files and would like to have a summary of overlap (or percentage overlap) among those regions coming from multiple files. Is there any method that provide summary of "overlap" among different bed files ?
Thanks in advance
find DIR1 -type f -name "*.bed" | while read A; do find DIR1 -type f -name "*.bed" | while read B; do bedtools intersect -a "${A}" -b "${B}" | bedtools summary -i - -g /path/to/genome.txt | awk -vA=${A} -vB=${B} '{printf("%s\t%s\t%s\n",A,B,$0);}' ; done ; done
thanks alot for sharing it. I tried it on my bed files but I am getting error of "error: unrecognized command: summary" In bedtolls, there is no summary parameter .
Log in to answer this question.