chrNames {genoset}R Documentation

Get list of unique chromosome names

Description

Get list of unique chromosome names

Usage

chrNames(object)

## S4 method for signature 'GenoSet'
chrNames(object)

## S4 method for signature 'GenomicRanges'
chrNames(object)

chrNames(object) <- value

## S4 replacement method for signature 'GenoSet'
chrNames(object) <- value

## S4 replacement method for signature 'GenomicRanges'
chrNames(object) <- value

Arguments

object

GenomicRanges or GenoSet

value

return value of chrNames

Value

character vector with names of chromosomes

Examples

  data(genoset,package="genoset")
  chrNames(genoset.ds) # c("chr1","chr3","chrX")
  chrNames(rowRanges(genoset.ds))  # The same
  chrNames(genoset.ds) = sub("^chr","",chrNames(genoset.ds))

[Package genoset version 1.36.0 Index]