Learn R Programming

iimi (version 1.2.2)

convert_bam_to_rle: convert_bam_to_rle

Description

Converts one or more indexed and sorted BAM files (ending in *.sorted.bam and *.bai) into a run-length encodings (RLEs) list.

Usage

convert_bam_to_rle(bam_file, paired = FALSE)

Value

A list of coverage profile(s) in RLE format with one or more samples.

Arguments

bam_file

path to BAM file(s).

paired

Indicate if the sequencing paired is single-end or paired-end reads. TRUE if paired-end. FALSE if single-end.

Examples

Run this code
if (FALSE) {
## Please change the path to your folder where you
## store sorted and indexed BAM files of mapped samples

rles <- convert_bam_to_rle("path/to/bam/file")
}

Run the code above in your browser using DataLab