-
Notifications
You must be signed in to change notification settings - Fork 4
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
compressed blast num_threads value #4
Comments
Just one more observation. I face this issue not only during compression, but also in case of blastp. It appears that irrespective of what value I give using -p switch, the program attempts to use all the cores available on the machine (24, 64 etc). This kinda sucks when you are submitting jobs to a shared cluster .... jobs get killed within mins :( |
@nsarode Upon further inspection, I'm not actually able to re-create this problem. Here is an example I ran: [andrew@Serval cablastp] cablastp-search -p 2 ./s288c ./data/test.fasta > /dev/null
Opening database in ./s288c...
Opening compressed database...
Done opening compressed database.
Opening coarse database...
Done opening coarse database.
Done opening database in ./s288c.
Blasting query on coarse database...
blastp -db s288c/blastdb-coarse -num_threads 2 -outfmt 5 -dbsize 3020248
Decompressing blast hits...
Blasting query on fine database...
blastp -subject /tmp/cablastp-fine-fasta447385406 -dbsize 3020248 -num_threads 2 Note the |
Aha! I've figured it out. I went back to the other issue and noticed you were using this command: ~/path/to/capblast/cablastp-search path/database query_file --p="4" --blast-args -max_target_seqs 10 -num_threads 4 -out out.blast -outfmt '6 qseqid sseqid pident qcovs length mismatch qstart qend sstart send evalue bitscore stitle' But the usage documentation says:
Notice that the flags (except for I've committed an update so that if you give In sum, change your command to this: ~/path/to/capblast/cablastp-search -p 4 path/database query_file --blast-args -max_target_seqs 10 -out out.blast -outfmt '6 qseqid sseqid pident qcovs length mismatch qstart qend sstart send evalue bitscore stitle' |
Note that if you have Go installed (and your go get -u github.com/BurntSushi/cablastp/... Or I can bug @ndaniels to update the official binaries. :-) |
I will update the binaries. This is the problem with binary releases :) Sent from my iPhone
|
Got it ! I assumed that the order wasn't crucial and that flags would be recognized on the basis of -- before them. Thanks 👍 |
It should be set to the value of the
-p
switch.We could parse the arguments given after
--blast-args
, but I'd rather stick to our simple solution: don't touch them.The text was updated successfully, but these errors were encountered: