Thanks for your advise. The reason why I want to do that is because my reference file only have exon sequences. I am working on HLA-B and want to phase the alleles. I have two different reference files. One contain full HLA-B sequences from 384 HLA-B alleles while the other have all HLA-B alleles sequences (around 4000) but it only contains exon sequences.
When I used BLAST to align my reads with the first reference file, I could call the correct alleles. But when I used the second file, I could not get the same answer. I guess because my reads have intron sequences in the middle, BLAST did not behave the same. That's why I am thinking of removing all intron sequences and re-align my reads to the second reference file.