ezBamSeqNames: Gets sequence names

View source: R/bamio.R

ezBamSeqNamesR Documentation

Gets sequence names

Description

Gets sequence names from a bam file.

Usage

ezBamSeqNames(bamFile, sizeSorting = "decreasing")

ezBamSeqLengths(bamFile)

Arguments

bamFile

a character representing the bam file path.

sizeSorting

a character. if equal to "decreasing" the names will be sorted decreasingly.

Value

Returns a character vector of sequence names.

Functions

  • ezBamSeqLengths: Gets the sequence lengths from a bam file.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

bamFile <- system.file("extdata", "ex1.bam", package="Rsamtools", mustWork=TRUE)
ezBamSeqLengths(bamFile)
ezBamSeqNames(bamFile)

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.