I am trying to blast a set of primers (I picked from reference genomic sequences), but for all of the short primers (<= 15nts), I got "no hit found" with the command
blastn -db db/GRCh38p7toplevel.fa -query sample.fa -out results.txt -task blastn
(GRCh38p7toplevel.fa is build with all primary assembly of human chromosome sequences) but on the web version, I got lots of hits. Also, if I remove the "-task blastn" by the end, a lot of primers gives "no hit found"
Since you are using short queries you should try
-task blastn-short
with your search. 15 nt is getting awfully close to default word size in blast for nucleotides.If you are just checking your primers you could also try in silico PCR primer tool at UCSC.
Thank you! it works! I am doing a multiplexing pcr(about 100 amplicons) in one tube, it becomes almost impossible to check all combinations of primers use the pcr primer tool, so I switched to blast. Is there any other way to check this ?
The option provided by @genomax2 seems to have been reported to work for sequences > 17 nt (inclusive) according to a previous Biostars post. This other post and the NCBI Options for the command-line applications may be worth checking too.