This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to convert bam to bam.bai files

Hi,

I have some bam files and I want to convert them to bam.bai files. I am very new to programming and have used some R Bioconductor packages. I was wondering whats the code for using Rsamtools to index the bam files.

Thanks.

next-gen

1 answer

a) read this: A: Bam And Indexed Bam Files

b) from the shell, run "samtools index myfile.bam"

Log in to answer this question.