1
\name{GenomeDescription-class}
5
\alias{class:GenomeDescription}
6
\alias{GenomeDescription-class}
7
\alias{GenomeDescription}
11
\alias{organism,GenomeDescription-method}
13
\alias{commonName,GenomeDescription-method}
15
\alias{species,GenomeDescription-method}
17
\alias{provider,GenomeDescription-method}
18
\alias{providerVersion}
19
\alias{providerVersion,GenomeDescription-method}
21
\alias{releaseDate,GenomeDescription-method}
23
\alias{releaseName,GenomeDescription-method}
25
\alias{bsgenomeName,GenomeDescription-method}
26
\alias{seqinfo,GenomeDescription-method}
27
\alias{seqnames,GenomeDescription-method}
29
% Standard generic methods:
30
\alias{show,GenomeDescription-method}
33
\title{GenomeDescription objects}
36
A GenomeDescription object holds the meta information describing
41
In general the user will not need to manipulate directly a
42
GenomeDescription instance but will manipulate instead a higher-level
43
object that belongs to a class that extends the GenomeDescription class.
44
For example, the top-level object defined in any BSgenome data package
45
is a \link[BSgenome]{BSgenome} object and the \link[BSgenome]{BSgenome}
46
class contains the GenomeDescription class. Thus a \link[BSgenome]{BSgenome}
47
object is also a GenomeDescription object and can therefore be treated as
48
such. In other words all the methods described below will work on it.
51
\section{Accessor methods}{
52
In the code snippets below, \code{object} or \code{x} is a
53
GenomeDescription object.
57
\code{organism(object)}:
58
Return the scientific name of the organism of the genome e.g.
59
\code{"Homo sapiens"}, \code{"Mus musculus"},
60
\code{"Caenorhabditis elegans"}, etc...
63
\code{commonName(object)}:
64
Return the common name of the organism of the genome e.g.
65
\code{"Human"}, \code{"Mouse"}, \code{"Worm"}, etc...
69
Return the provider of this genome e.g. \code{"UCSC"}, \code{"BDGP"},
70
\code{"FlyBase"}, etc...
73
\code{providerVersion(x)}:
74
Return the provider-side version of this genome.
75
For example UCSC uses versions \code{"hg18"}, \code{"hg17"}, etc...
76
for the different Builds of the Human genome.
79
\code{releaseDate(x)}:
80
Return the release date of this genome e.g. \code{"Mar. 2006"}.
83
\code{releaseName(x)}:
84
Return the release name of this genome, which is generally made of the
85
name of the organization who assembled it plus its Build version.
86
For example, UCSC uses \code{"hg18"} for the version of the
87
Human genome corresponding to the Build 36.1 from NCBI hence
88
the release name for this genome is \code{"NCBI Build 36.1"}.
91
\code{bsgenomeName(x)}:
92
Uses the meta information stored in \code{x} to make the name of
93
the corresponding BSgenome data package (see the
94
\code{\link[BSgenome]{available.genomes}} function in the \pkg{BSgenome}
95
package for details about the naming scheme used for those packages).
96
Of course there is no guarantee that a package with that name
99
\item{\code{seqinfo(x)}}{
100
Gets information about the genome sequences. This information
101
is returned in a \link{Seqinfo} object.
102
Each part of the information can be retrieved separately with
103
\code{seqnames(x)}, \code{seqlengths(x)}, and \code{isCircular(x)},
104
respectively, as described below.
106
\item{\code{seqnames(x)}}{
107
Gets the names of the genome sequences.
108
\code{seqnames(x)} is equivalent to \code{seqnames(seqinfo(x))}.
110
\item{\code{seqlengths(x)}}{
111
Gets the lengths of the genome sequences.
112
\code{seqlengths(x)} is equivalent to \code{seqlengths(seqinfo(x))}.
114
\item{\code{isCircular(x)}}{
115
Returns the circularity flags of the genome sequences.
116
\code{isCircular(x)} is equivalent to \code{isCircular(seqinfo(x))}.
125
\item The \code{\link[BSgenome]{available.genomes}} function and the
126
\link[BSgenome]{BSgenome} class in the \pkg{BSgenome} package.
128
\item The \link{Seqinfo} class.
133
library(BSgenome.Celegans.UCSC.ce2)
135
is(Celegans, "GenomeDescription")
138
gendesc <- as(Celegans, "GenomeDescription")
143
bsgenomeName(gendesc)