here is 1st input - which contain 20000 strings.
X 10063445 10098579 X:10063445|10098579
X 101020487 101021315 X:101020487|101021315
X 101041317 101042312 X:101041317|101042312
X 101120402 101120784 X:101120402|101120784
X 101126709 101148161 X:101126709|101148161
X 107088436 107088839 X:107088436|107088839
X 110020352 110067396 X:110020352|110067396
2nd input file-
X 10063445 10098579 2
X 11055936 11110981 2
X 13666317 13680598 5
X 14843660 14859334 13
X 14850505 14859334 5
X 16818574 16829770 2
X 19541925 19546050 4
X 19683823 19695741 4
X 19965044 19970298 2
X 20188497 20204103 2
X 24073601 24074959 11
X 24172715 24179770 9
X 24179183 24179770 2
X 24540246 24546477 2
X 24809898 24843677 4
X 24809898 24888122 3
X 38666121 38687674 2
X 44524002 44527365 8
X 45010961 45020730 3
X 45010961 45037689 2
X 46984884 46998277 2
X 47222261 47228644 2
till now i used bedtools intersect to intersect of both file but it give result only of intersect and i also want which are not intersect also in the same result file. i use command--
bedtools intersect -wa -wb -a input1 -b input2 -f 1 -r >intersect.bed
So is there any way to include result of both intersect and not intersect in same intersect.bed file like this i want my result --
X 10063445 10098579 X:10063445|10098579 X 10063445 10098579 2
X 101020487 101021315 X:101020487|101021315
X 101041317 101042312 X:101041317|101042312 X 101041317 101042312 3
X 101120402 101120784 X:101120402|101120784
X 101126709 101148161 X:101126709|101148161 X 101126709 101148161 4
X 107088436 107088839 X:107088436|107088839 X 107088436 107088839 4
X 110020352 110067396 X:110020352|110067396
X 110020352 110109146 X:110020352|110109146 X 110020352 110109146 3
X 110067347 110109146 X:110067347|110109146 X 110067347 110109146 4
X 11055936 11110981 X:11055936|11110981
so here i expected output result like this which include both intersect and not intersect . thanks
bedtools? Can you link to some documentation?