Coder Social home page Coder Social logo

Example run failure about peaks2utr HOT 5 CLOSED

jasonleongbio avatar jasonleongbio commented on June 3, 2024
Example run failure

from peaks2utr.

Comments (5)

haessar avatar haessar commented on June 3, 2024

I wonder, are you using macOS? I've spotted the same issue presenting for another tool GoogleCloudPlatform/gsutil#961. The consensus seems to be that the combination of multiprocessing, python3.8 and macOS can lead to this (with gsutil, anyway).
If you are using macOS, can you try to run the demo again using a conda env with python 3.9 to see if the issue persists?

from peaks2utr.

haessar avatar haessar commented on June 3, 2024

Another thing to try (either with python 3.8 or 3.9), as you are using a conda env, you might need to run pip install buildtools after activating it, and before running pip install peaks2utr. I believe some of the peaks2utr dependencies (such as MACS2) were failing to install due to the lack of buildtools. If this works for you, I'll add a note in the README.

from peaks2utr.

jasonleongbio avatar jasonleongbio commented on June 3, 2024

Thanks @haessar

Indeed I'm using macOS. Sorry for forgetting to mention this.
May I know if preferably it should be run on a linux-based machine?

I just tried to re-install by following the additional step (pip install buildtools) before installing peaks2utr. I also replaced Python with version 3.9 (3.9.16) this time. (I'm still trying with my macOS device though.)
But sadly I still got the error message (at the same step).

The error messages are exactly the same as the previous ones.

from peaks2utr.

haessar avatar haessar commented on June 3, 2024

Yes it's only been tested on Linux systems, and not on macOS (perhaps I should add that info to the README). If you need to continue using mac, can you try cloning the source code, and adding
multiprocessing.set_start_method("fork")
near the top of utils.py. Then build and install as described here https://github.com/haessar/peaks2utr#installation.

(from https://stackoverflow.com/a/73902878/6683132)

from peaks2utr.

jasonleongbio avatar jasonleongbio commented on June 3, 2024

Thank you so much @haessar

I tried to run the example code on my local (macOS) device just because my own mapped BAM files have all been transferred from the Linux server to my local harddisks.

I just tried to execute the example run on my Linux server and it worked perfectly fine! So the problem on my side was really because I was using macOS instead of a Linux system.

And thanks so much for your advice on the additional multiprocessing code. I guess it would be useful to specify which line to add to the file instead of simply stating "near the top" of that file.

from peaks2utr.

Related Issues (18)

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.