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

Segmentation fault #15

Open
jaredbernard opened this issue Dec 18, 2024 · 9 comments
Open

Segmentation fault #15

jaredbernard opened this issue Dec 18, 2024 · 9 comments

Comments

@jaredbernard
Copy link

Hi there, Robert,
This problem may be easy to solve, but apparently not for me. While trying -cluster_fast, I get the following error:

usearch12/bin/usearch12 -cluster_fast trimmed_codons_GR2.fasta -sort length -id 0.75 -centroids GR_centroids.fasta -uc GR_clusters.uc
usearch v12.0, 16.6Gb RAM, 8 cores
(C) Copyright 2013-24 Robert C. Edgar.
https://drive5.com/usearch

cluster_fast trimmed_codons_GR2.fasta
00:00 1.1Mb .. ...  (working)Segmentation fault (core dumped)

Any ideas?
Thanks!

@rcedgar
Copy link
Owner

rcedgar commented Dec 18, 2024

At a guess, you are trying to cluster sequences which usearch is not designed to handle, what are they & what is the maximum sequence length?

@jaredbernard
Copy link
Author

Thanks so much for replying. These are genes for chemosensory proteins gathered from several genomes. They have been trimmed, so they have a max length of 138 bp. I wanted to use uclust to weed out any that are too divergent.

@rcedgar
Copy link
Owner

rcedgar commented Dec 18, 2024

Ok, they should work, no idea -- if you make a toy example per instructions here https://drive5.com/usearch/toy.html I'll take a look

@rcedgar
Copy link
Owner

rcedgar commented Dec 19, 2024

Works for me under WSL. Please check if you get the error using the "official" binary:

wget https://github.com/rcedgar/usearch12/releases/download/v12.0-beta1/usearch_linux_x86_12.0-beta
./usearch_linux_x86_12.0-beta -cluster_fast toy.fasta -id 0.75 -centroids GR_centroids.fasta -uc GR_clusters.uc -threads 8

@jaredbernard
Copy link
Author

jaredbernard commented Dec 19, 2024 via email

@rcedgar
Copy link
Owner

rcedgar commented Dec 19, 2024

So where did the binary come from if not the github release? Something appears to be wrong with the build.

@rcedgar
Copy link
Owner

rcedgar commented Dec 19, 2024

Correction: you're right, I forgot sortbylength is not in v12. A command-line option works unless you get an error or a warning that the option is not used.,

@jaredbernard
Copy link
Author

I had followed these steps:

git clone https://github.com/rcedgar/usearch12
cd usearch12/src
make

I had also tried usearch11. I don't understand why, but the binary you shared with me worked! It must not be identical to the one available via cloning the directory. Thanks again, Robert!

@rcedgar
Copy link
Owner

rcedgar commented Dec 27, 2024

*correction -- so I guess there is a problem with the Makefile, not sure what is going on there...

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

2 participants