| 1 |
\name{sgd} |
| 2 |
|
| 3 |
\alias{sgd} |
| 4 |
|
| 5 |
\docType{data} |
| 6 |
|
| 7 |
\title{Yeast gene model sample data} |
| 8 |
|
| 9 |
\description{ |
| 10 |
This data set contains a data frame describing a subset of |
| 11 |
the chromosome feature data represented in Fall 2007 version of |
| 12 |
\file{saccharomyces_cerevisiae.gff}, available for download from the |
| 13 |
\emph{Saccharomyces} Genome Database (\url{https://www.yeastgenome.org:443/}). |
| 14 |
} |
| 15 |
|
| 16 |
\usage{data(sgd)} |
| 17 |
|
| 18 |
\format{ |
| 19 |
A data frame with 14080 observations on the following 8 variables. |
| 20 |
\describe{ |
| 21 |
\item{\code{SGDID}}{SGD feature ID.} |
| 22 |
\item{\code{type}}{ |
| 23 |
Only four feature types have been retatined: \code{"CDS"}, |
| 24 |
\code{"five_prime_UTR_intron"}, \code{"intron"}, and \code{"ORF"}. Note |
| 25 |
that \code{"ORF"} correspond to a whole gene while \code{"CDS"}, to an |
| 26 |
exon. \emph{S. cerevisae} does not, however, have many |
| 27 |
multi-exonic genes. |
| 28 |
} |
| 29 |
\item{\code{feature_name}}{A character vector} |
| 30 |
\item{\code{parent_feature_name}}{ |
| 31 |
The \code{feature_name} of the a larger element to which the |
| 32 |
current feature belongs. All retained \code{"CDS"} entries, for |
| 33 |
example, belong to an \code{"ORF"} entry. |
| 34 |
} |
| 35 |
\item{\code{chr}}{ |
| 36 |
The chromosome on which the feature occurs. |
| 37 |
} |
| 38 |
\item{\code{start}}{Feature start base.} |
| 39 |
\item{\code{stop}}{Feature stop base.} |
| 40 |
\item{\code{strand}}{Is the feature on the Watson or Crick strand?} |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
\examples{ |
| 45 |
|
| 46 |
# An example to compute "promoters", defined to be the 500 bases |
| 47 |
# upstream from an ORF annotation, provided these bases don't intersect |
| 48 |
# another orf. See documentation for the sgd data set for more details |
| 49 |
# on the annotation set. |
| 50 |
|
| 51 |
use_chr <- "chr01" |
| 52 |
|
| 53 |
data( sgd ) |
| 54 |
sgd <- subset( sgd, chr == use_chr ) |
| 55 |
|
| 56 |
orf <- Intervals( |
| 57 |
subset( sgd, type == "ORF", c( "start", "stop" ) ), |
| 58 |
type = "Z" |
| 59 |
) |
| 60 |
rownames( orf ) <- subset( sgd, type == "ORF" )$feature_name |
| 61 |
|
| 62 |
W <- subset( sgd, type == "ORF", "strand" ) == "W" |
| 63 |
|
| 64 |
promoters_W <- Intervals( |
| 65 |
cbind( orf[W,1] - 500, orf[W,1] - 1 ), |
| 66 |
type = "Z" |
| 67 |
) |
| 68 |
|
| 69 |
promoters_W <- interval_intersection( |
| 70 |
promoters_W, |
| 71 |
interval_complement( orf ) |
| 72 |
) |
| 73 |
|
| 74 |
# Many Watson-strand genes have another ORF upstream at a distance of |
| 75 |
# less than 500 bp |
| 76 |
|
| 77 |
hist( size( promoters_W ) ) |
| 78 |
|
| 79 |
# All CDS entries are completely within their corresponding ORF entry. |
| 80 |
|
| 81 |
cds_W <- Intervals( |
| 82 |
subset( sgd, type == "CDS" & strand == "W", c( "start", "stop" ) ), |
| 83 |
type = "Z" |
| 84 |
) |
| 85 |
rownames( cds_W ) <- NULL |
| 86 |
|
| 87 |
interval_intersection( cds_W, interval_complement( orf[W,] ) ) |
| 88 |
|
| 89 |
} |
| 90 |
|
| 91 |
\keyword{datasets} |