Hello Biostars
I know that I can run blast with with "edible" output by using this command:
blastp -query -FASTA.faa - db MYDATABASE -evalue 1e-5 -outfmt "6 sseqid pident evalue bitscore staxids"
If I want to run the same command in parallel, i am using
ls *.fna| parallel -a - blastp -query {} -db MYDATABASE -evalue 1e-5 -outfmt 6 -out {.}.txt
My issue is when I am trying to combine the outfmt
in parallel I got an error and I want to know if I can combine those two commands in one?
I tried:
ls *.fna| parallel -a - blastp -query {} -db MYDATABASE -evalue 1e-5 -outfmt "6 sseqid pident evalue bitscore staxids sscinames sskingdoms stitle" -out {.}.txt
This gives me:
Error: Too many positional arguments (1), the offending value: evalue Error: (CArgException::eSynopsis) Too many positional arguments (1), the offending value: evalue
sorry for my terminology, but I'm a new kid on the block
Thank you in advance
I suspect this is just a matter of how bash and parallel are handling the
"
differently. Have you tried hard-quoting instead with'
?I did but doesnt work either :-(, but thanks for your response anyhow!!!
does the cmdline using only
-outfmt 6
work ? (== the problem starts when you add the"6 ...."
part ? )on a side note: I don't see any immediate advantage in using
parallel
here (if you want to speed it up somehow, run it on multiple threads)Yes with -outfmt 6 works perfectly!!! My issue starts when I am editing the out format
This is almost certainly a quirk of how parallel is treating
"
I would think, but I can't spot the issue off hand.I tried almost everything before posting my issue. Also I realised that I cannot increase the
-num_threads
as I am doing in the "normal" blast search, so I guess that it is a bag of the parallel command than a mistake during my typing.see if this is populating correct queries and then try removing
dry-run
Also check your parallel version.
Works too!!! thank you very much!