Hi, I have been trying to use custom reference genome hg19.fasta and choosing the option to build index as part of "Map with BWA" step but it fails to build the index. The process turns green showing completion but throws following error:
[bwa_index] Pack FASTA... 23.29 sec [bwa_index] Construct BWT for the packed sequence... * Error in `bwa': munmap_chunk(): invalid pointer: 0x00007f2e1a8b3010 * Aborted (core dumped) [bwt_restore_sa] fail to open file 'localref.fa.sa' : No such file or directory
The machine (cloud instance) I am using has 32GB RAM so running out of memory does not seem a reason apparently as I can very well index the same fasta file on my local system with 8GB RAM.
I have tried everything to my knowledge but still no luck with the error.
Any help will be highly appreciated. Thank you.