Hello,
I want to use blastn to search a particular query in the fasta format ($QUERY)
- I've created
databasefrom each.fnafile using `"makeblastdb -in $GENOME -dbtype nucl -parse_seqids" - (for different purposes, I run also
blastcmdwhich runs normally without any error --> created databases seem to be correct) I tried to run
blastnon the same databases with:blastn -db nt $DATABASE_DIR/$GCA/$GCA.fna -query $QUERY -out $file_out -num_threads $CPU -outfmt "6 qseqid sseqid sstart send evalue length qcovs score"
But I receive the error: Error: Too many positional arguments (1), the offending value: <$DATABASE_DIR/$GCA/$GCA.fna>
What I checked so far:
- whether all files exist
- directories
- forums ;) (it is not problem of
"-")
I'm using BLAST 2.2.29+ on Ubuntu
I'm not sure if following completely; It's not a basename, but together with
.fnaare different files produced bymakeblastdb; my$QUERYis a different.fastafileand without
ntin-dbit creates only an empty result fileThen your databases are likely not created properly. If you are creating a database with a file called
$DATABASE_DIR/$GCA/$GCA.fnathen there will be several files produced with that prefix asbasename.Having
ntin addition to the other name creates two inputs to-dboption which leads to the error you are getting.Thank you for suggestion!
Unfortunately, it still does not work... I have checked one more time my database with
blastcmdand it works fine, but when I tryblastnit returns an empty fileUse the following to check the database.
I checked my
databasewith th check command and it whowed error:So I downloaded one sample genome again, run
makeblastdbon it, thenblastn(still returns an empty file), andblastdbcheckgave the same error;blastcmdworks fine with this databaseThat means your blast databases are not being created properly. Check the log files for the
makeblastdbto see if that has any usesul information.Create a test db from a small fasta file and make sure there is no problem with your install of blast.
Until the database check command shows no errors, the blast search is not going to work.