samtools.index is a simple wrapper for samtools index for indexing position-sorted bam files.
1  | samtoolsIndex(bamFiles, threads = getOption("threads", 1L))
 | 
bamFiles | 
 A character vector of paths to bam files.  | 
threads | 
 A positive integer specifying how many bams to process simultaneously.  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.