To support unaligned NCBI datasets (the vast majority):
(1) Extract target region from reference sequence and create blast db from it
(2) Magic-BLAST dataset against region
Example:
#!/usr/bin
# get fasta of region
makeblastdb -dbtype nucl -in chunk_chr1
# blast dataset against region
./ncbi-magicblast-1.2.0/bin/magicblast -sra SRR000006 -num_threads 16 -db chunk_chr1
To support unaligned NCBI datasets (the vast majority):
(1) Extract target region from reference sequence and create blast db from it (2) Magic-BLAST dataset against region
Example: