'BWA not able to locate index files from directory still the commands and steps are correct

I have ran the correct command for indexing and alignment using bwa. I used the bwa-mem alignment. But the command showing error that the index file cannot locate by the system. Please consider about the issue. My command line:

$bwa index -p prefix_Index -a is IRGSP-1.0_genome.fasta

It run correctly.

$bwa mem prefix_index -t 4 trimmed_out/S1_A_trimmed.fastq > bwa_out/S1_A.sam

Output: error massage

[E::bwa_idx_load_from_disk] fail to locate the index files



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source