Coder Social home page Coder Social logo

installation about macs HOT 9 CLOSED

macs3-project avatar macs3-project commented on August 28, 2024
installation

from macs.

Comments (9)

xiaomimeow avatar xiaomimeow commented on August 28, 2024

Sorry figured it out.

from macs.

dfv avatar dfv commented on August 28, 2024

@xiaomimeow Hey can you please tell me how this error got solved beacuse I am also getting same error.

Traceback (most recent call last):
File "./macs2", line 557, in
main()
File "./macs2", line 55, in main
from MACS2.callpeak import run
ImportError: No module named MACS2.callpeak

Thanks a lot

Ankit

from macs.

bgruening avatar bgruening commented on August 28, 2024

Can you check if macs2 is in your python path? If not please add the entire path to macs2 into your python path.

from macs.

dfv avatar dfv commented on August 28, 2024

Thanks a lot for replying! I have checked macs2 is already there in my python path! I have also mentioned the path through:
export PYTHONPATH
export PATH

Thanks

from macs.

dfv avatar dfv commented on August 28, 2024

Is there any possibility what went wrong in it?

from macs.

taoliu avatar taoliu commented on August 28, 2024

Could you share us how you installed MACS, in detail?

Tao

On Feb 17, 2014, at 8:32 AM, dfv [email protected] wrote:

Is there any possibility what went wrong in it?


Reply to this email directly or view it on GitHub.

from macs.

dfv avatar dfv commented on August 28, 2024

Hi Tao,
I have installed python 2.7.2 locally and numpy 1.8.0 in python directory. In accordance to it seperately i have installed macs2 as mentioned in instrutions with help of python setup.py install command. But when i try to run macs2 with the help of below command :

./macs2 callpeak -t abc.bam -c xyz.bam -f BAM -g ce --broad -n test

I get this error
Traceback (most recent call last):
File "./macs2", line 557, in
main()
File "./macs2", line 40, in main
argparser = prepare_argparser()
File "./macs2", line 109, in prepare_argparser
argparser.add_argument("--version", action="version", version="%(prog)s" +MACS_VERSION)
NameError: global name 'MACS_VERSION' is not defined

and after uncommenting MACS_VERSION in script then I get error mentioned below:
Traceback (most recent call last):
File "./macs2", line 557, in
main()
File "./macs2", line 55, in main
from MACS2.callpeak import run
ImportError: No module named MACS2.callpeak

Thanks a lot

from macs.

taoliu avatar taoliu commented on August 28, 2024

Hi dfv,

If you install MACS2 using setup script, then I don't understand why you still need to type './macs2' to run it. The executable 'macs2' script should be installed into /usr/local/bin in linux or Mac OSX by default, and the path (e.g. /usr/local/bin) should be in your environment variable 'PATH'. After installation, you should LEAVE the source code directory, and you shouldn't run './macs2' there.

Best,
Tao

On Feb 17, 2014, at 11:36 AM, dfv [email protected] wrote:

Hi Tao,
I have installed python 2.7.2 locally and numpy 1.8.0 in python directory. In accordance to it seperately i have installed macs2 as mentioned in instrutions with help of python setup.py install command. But when i try to run macs2 with the help of below command :

./macs2 callpeak -t abc.bam -c xyz.bam -f BAM -g ce --broad -n test

I get this error
Traceback (most recent call last):
File "./macs2", line 557, in
main()
File "./macs2", line 40, in main
argparser = prepare_argparser()
File "./macs2", line 109, in prepare_argparser
argparser.add_argument("--version", action="version", version="%(prog)s" +MACS_VERSION)
NameError: global name 'MACS_VERSION' is not defined

and after uncommenting MACS_VERSION in script then I get error mentioned below:
Traceback (most recent call last):
File "./macs2", line 557, in
main()
File "./macs2", line 55, in main
from MACS2.callpeak import run
ImportError: No module named MACS2.callpeak

Thanks a lot

from macs.

dfv avatar dfv commented on August 28, 2024

Hi Tao,
Thank you so much it solved!

from macs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.