Learn R Programming

genoset (version 1.28.2)

chrNames: Get list of unique chromosome names

Description

Get list of unique chromosome names

Usage

chrNames(object)

## S3 method for class 'GenoSet': chrNames(object)

## S3 method for class 'GenomicRanges': chrNames(object)

chrNames(object) <- value

## S3 method for class 'GenoSet': chrNames(object) <- value

## S3 method for class 'GenomicRanges': chrNames(object) <- value

Arguments

object
GenomicRanges or GenoSet
value
return value of chrNames

Value

  • character vector with names of chromosomes

Examples

Run this code
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))

Run the code above in your browser using DataLab