Last data update: 2014.03.03

R: Coordinates of centromere
centromereR Documentation

Coordinates of centromere

Description

Extracts coordinates of centromere for a particular chromosome

Usage

centromere(chromosome, build, verbose=FALSE)

Arguments

chromosome

Chromosome name. Several formats for specifying chromosome are allowed (see examples).

build

character string. Supported UCSC builds are ‘hg18’ and ‘hg19’.

verbose

Logical. Displays build used to annotate the centromere coordinates when TRUE

Value

integer: start and stop coordinates of centromere in basepairs

Author(s)

R. Scharpf

Examples

centromere(1, "hg18")
centromere("1", "hg18")
centromere("chr1", "hg18")
centromere(1, "hg19")
centromere("X", "hg18")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(SNPchip)
Welcome to SNPchip version 2.18.0
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/SNPchip/centromere.Rd_%03d_medium.png", width=480, height=480)
> ### Name: centromere
> ### Title: Coordinates of centromere
> ### Aliases: centromere
> ### Keywords: manip
> 
> ### ** Examples
> 
> centromere(1, "hg18")
[1] 121147476 123387476
> centromere("1", "hg18")
[1] 121147476 123387476
> centromere("chr1", "hg18")
[1] 121147476 123387476
> centromere(1, "hg19")
[1] 121535434 124535434
> centromere("X", "hg18")
[1] 58465033 61465033
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>