Thanks for your response, Goutham! I reset my .bash_profile to not execute the .bashrc. And this is what I get when I look at my PATH now:
otp588416ots:~ Priya$ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
otp588416ots:~ Priya$ echo $PYTHONPATH
## *nothing*
Now, when I try to call macs2, I still get the same error. So it seems as though I am still not in the right place when I call macs2:
otp588416ots:~ Priya$ macs2 callpeak -t ChIP.bam -c Control.bam -f BAM -g hs -n test -B -q 0.01
-bash: macs2: command not found
It looks like macs2 could be in several locations (maybe from the multiple install attempts?). This is what I got when I used the find command to locate macs2:
otp588416ots:~ Priya$ sudo find / -name macs2
Password:
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Library/Python/2.7/site-packages/MACS2-2.1.0.20150731/bin/macs2
/Library/Python/2.7/site-packages/MACS2-2.1.0.20150731/build/scripts-2.7/macs2
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/macs2
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MACS2-2.1.0.20150731/bin/macs2
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MACS2-2.1.0.20150731/build/scripts-2.7/macs2
I get the same error when I call macs2 after setting the PYTHONPATH to:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin
Any additional thoughts?
Try reinstalling the whole program, I am quite sure that this issue will be resolved, however, while installing I came up with an unknown error called Mac Error Code 43, any solution regarding this issue will be appreciated.
much easier way should be install it using conda:
if you don't have conda, install conda like this way:
Will move to comment as 1) issue is solved > 3 years back, 2) OP was using Mac not Linux and 3) OP was asking specifically about a PYTHONPATH issue, but not conda. You are posting absolute paths that are specific to your computer (here and in multiple previous posts including some tutorial-like posts), there is little use in doing that. Shicheng Guo you are a very experienced user and good input is always appreciated, but please be smarter about your posts.