chrNames-methods: Get list of unique chromosome names

Description Usage Arguments Value Examples

Description

Get list of unique chromosome names

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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

1
2
3
4
  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))

genoset documentation built on May 2, 2018, 3:36 a.m.