Entering edit mode
10.6 years ago
juncheng
▴
220
I just installed pybedtools on my mac (10.9) as follow:
sudo pip install pybedtools
pybedtools==0.6.7
Then I test the script as recommended for test installing:
import pybedtools
a = pybedtools.example_bedtool('a.bed')
b = pybedtools.example_bedtool('b.bed')
print a.intersect(b)
The last step do not work.
NotImplementedError: "intersectBed" does not appear to be installed or on the path, so this method is disabled. Please install a more recent version of BEDTools and re-import to use this method.
I didn't find someone with the same problem on pybedtools. Does anyone knows the problem?
Thanks,
Jun
That is, even more simply put, copy paste the BEDTools binary file to the same directory as the pybedtools binary file.
There is no guarantee that this works. It will depend on how the tool calls
bedtools
. The PATH solution is more generic and reliable.