annmap.seqname: Seqnames manipulation functions

Description Usage Arguments Details Author(s) Examples

Description

These functions allow easier manipulation of the seqnames column of a GRanges object

Usage

1
2
3
4
5

Arguments

name

The name to convert.

x

A GRanges object to convert the seqnames of.

mappingFunction

The function to do the mapping of names.

...

Other arguments you may wish to send to a custom mapping function.

Details

These functions allow simple mapping between seqnames of a GRanges object.

The two standard derivations are seqnamesToNCBI and seqnamesToEnsembl. The rules for mapping are:

1
2
3
4
5
6
7
8
      Ensembl      NCBI
      1       <=>  chr1
      ...
      22      <=>  chr22
      X       <=>  chrX
      Y       <=>  chrY
      MT      <=>  chrM
  

You can define your own mapping function and pass it as the mappingFunction parameter to seqnameMapping function to do your own custom mapping.

The function seqnamesToNCBI calls seqnameMapping with generalisedNameToNCBI as the mappingFunction. The function seqnamesToEnsembl uses generalisedNameToEnsembl.

Author(s)

Tim Yates

Examples

1
2
3
4
  if(interactive()) {
    annmapConnect()
    seqnamesToNCBI( symbolToGene( c( 'tp53', 'shh' ) ) )
 }

annmap documentation built on May 31, 2017, 10:57 a.m.

Search within the annmap package
Search all R packages, documentation and source code