Skip to content
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

Error on scglue.genomics.rna_anchored_guidance_graph #109

Open
travilucas opened this issue Dec 11, 2023 · 4 comments
Open

Error on scglue.genomics.rna_anchored_guidance_graph #109

travilucas opened this issue Dec 11, 2023 · 4 comments

Comments

@travilucas
Copy link

Hello, I have the error when running guidance = scglue.genomics.rna_anchored_guidance_graph(rna, atac) when using the data provided in the tutorial. The error stated "sortBed" 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 tried every method you provided in issues. Fortuenly, I figure the error out through adding absolute path to bedtools to system PATH.

bedtools_path = '/home/data/t220310/miniconda3/envs/py3109/bin/bedtools'
os.environ['PATH'] += os.pathsep + os.path.dirname(bedtools_path)
print(os.environ['PATH'])
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/data/t220310/miniconda3/envs/py3109/bin

But a new error occurs,NotImplementedError: "sortBed" 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.
image

Here is my basic environment information.
image

I will appreciate if you could help me to figure it out. Thanks!

Yours,
Lucas

@travilucas
Copy link
Author

Sorry,there was something wrong with my statement at the beginning.The first error is this.
image

@Jeff1995
Copy link
Collaborator

Jeff1995 commented Jan 8, 2024

Hi @travilucas! Thanks for the report. Did you try solutions in #81? Would that solve your problem?

@Khalid-Usman
Copy link

@Jeff1995 @travilucas I am facing the same issue, and the error suggest me to install bedtools using conda install -c bioconda bedtools. I have installed it successfully, still it's showing me the wrong path.

khalid@server:~$ which bedtools
/home/khalid/anaconda3/envs/GLUE/bin/bedtools
khalid@server:~$ /home/khalid/anaconda3/envs/GLUE/bin/bedtools -version
bedtools v2.27.1

Note: I am not a sudo user at server

@Khalid-Usman
Copy link

I have solved it by downloading the static binary file from the link,
https://github.com/arq5x/bedtools2/releases/download/v2.31.0/bedtools.static
then, I run the following commands,
which bedtools
//in response you will get the path

mv bedtools.static.binary path
chmod a+x path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants