I downloaded a sample .bam file from the 1000 genomes server. I tried to visualize the .bam file into IGV and received the following error message:
Could not load index file for: <the .bam file path>. An index file is required for SAM & BAM files.
So I figured I needed to make the .bam.bai file myself.
I tried to create the index BAM file by typing the following line of code in R :
indexBam(file="<path to the .bam file>")
and received the error message:
No such file or directory....failed to build index
What am I doing wrong? Why can I not create this .bam.bai file?
Could not load index file for: <the .bam file path>. An index file is required for SAM & BAM files.
So I figured I needed to make the .bam.bai file myself.
I tried to create the index BAM file by typing the following line of code in R :
indexBam(file="<path to the .bam file>")
and received the error message:
No such file or directory....failed to build index
What am I doing wrong? Why can I not create this .bam.bai file?
Comment