-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation issue on apple M2 #490
Comments
Hi @Machadum While both pysam and psutil installed successfully, it looks like there are no prebuilt binaries for your environment for edlib available on pip, and building failed due to missing header files (which seems to be caused by the move in python/cpython#28968). While we added edlib as a requirement to improve population calling, it isnt strictly neccessary - you should be able to run sniffles without it being installed as it is not used for single sample calling. HTH, |
Hi thank you for your quick answer. Unfortunately I have been having a heck of a time trying to get installation work. Could you please help me with this? |
Sure...you can try installing sniffles without dependencies:
This will install sniffles without installing dependencies. Since you already have pysam and psutil installed, this will skip edlib. Once installed, you should be able to run sniffles normally. Multisample merging also works without edlib, although it may overmerge a bit, alignments and the --combine-pctseq parameter define one more measurement to split otherwise similar variants. HTH, |
Thank you very much for your valuable help Hermann! I managed to install it but it still does not work, please see below:
|
So this seems to finally be a man specific issue :( See also #480 - we don't "officially" support or test on Mac. Nevertheless this issue is probably not too hard to fix, I would need you to test it though - I don't have any Macs available for testing. I'll try to create a branch for this tonight, you'll have to do a git pull from this branch. Is this possible? Thanks, Hermann |
I do not know how to do a git pull but I will do my best and follow your instructions. Thank you again for your help!
|
Seems like sniffles was installed on your path. You can determine which program is run by doing Uninstall probably depends on how you installed it, and may be as simple as removing the executable. |
I also checked out the other issue - with Python 3.8, on Mac the default start method for multiprocessing was changed from fork to spawn. I am not sure if forking still works on Mac, but feel free to give it a try: In the main sniffles file, you'll need to insert the following two lines after line 491 to this: Sniffles/src/sniffles/sniffles Lines 491 to 494 in df523e5
This is probably easier if you are not familiar with git. It changes pythons behaviour for sniffles to the same as on Unix. Hermann |
It works! Awesome! Thank you so much for having the patience to help me through this process. |
Glad to hear it :) I'll take over the commit to our main branch - thank you for testing it. |
Hi
I am trying to install sniffles on my new Mac without success. Can you help me please?
I created a conda environment for sniffles using:
but then none of the command lines below worked
pip install sniffles
or
conda install sniffles=2.3
Please see the below the different outputs
pip install sniffles
Then I did
pip install edlib
so I tried instead
conda install sniffles=2.3
pip show pysam
pip show edlib
WARNING: Package(s) not found: edlib
pip install edlib
pip show wheel
The text was updated successfully, but these errors were encountered: