Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
REL: 0.1
  • Loading branch information
pan14001 committed Nov 14, 2016
0 parents commit e8213da
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
15 changes: 15 additions & 0 deletions DESCRIPTION
@@ -0,0 +1,15 @@
Package: Drosophila.melanogaster
Title: Annotation package for the Drosophila.melanogaster object
Description: Contains the Drosophila.melanogaster object to access data from several related annotation packages.
Version: 0.1
Author: Pariksheet Nanda <pariksheet.nanda@uconn.edu>
Maintainer: Pariksheet Nanda <pariksheet.nanda@uconn.edu>
Depends: R (>= 1.6), AnnotationDbi (>= 1.17.11), methods, OrganismDbi
(>= 1.11.39), GenomicFeatures, GO.db, org.Dm.eg.db,
TxDb.Dmelanogaster.UCSC.dm6.ensGene
Imports: GenomicFeatures, AnnotationDbi
License: Artistic-2.0
organism: Drosophila melanogaster
species: Drosophila melanogaster
biocViews: AnnotationData, Genetics, OrganismDb
NeedsCompilation: no
2 changes: 2 additions & 0 deletions NAMESPACE
@@ -0,0 +1,2 @@
# A NAMESPACE is strictly required by R 2.14 or higher.
import(OrganismDbi)
7 changes: 7 additions & 0 deletions R/zzz.R
@@ -0,0 +1,7 @@
## .onLoad gets the data.frame from the /data directory
.onLoad <- function(libname, pkgname) {
load(system.file("data", "graphInfo.rda", package = pkgname,
lib.loc = libname))
OrganismDbi:::.loadOrganismDbiPkg(pkgname = pkgname,
graphInfo = graphInfo)
}
Binary file added data/graphInfo.rda
Binary file not shown.
26 changes: 26 additions & 0 deletions man/Drosophila.melanogaster.Rd
@@ -0,0 +1,26 @@
\name{Drosophila.melanogaster}
\docType{data}
\alias{Drosophila.melanogaster}
\title{Annotation package that collates several annotation resources.}
\description{This data object
represents a collection of annotation packages that can be used as a
single object named Drosophila.melanogaster. This object can be used with the
standard four accessor method for all AnnotationDbi objects. Namely:
\code{cols}, \code{keytype}, \code{keys} and \code{select}. Users are
encouraged to read the vignette from the \code{OrganismDbi} package for
more details.}
\usage{library(Drosophila.melanogaster)}
\keyword{datasets}
\examples{
Drosophila.melanogaster
cls <- columns(Drosophila.melanogaster)
cls
cls <- cls[c(1,19,45)]
kts <- keytypes(Drosophila.melanogaster)
kt <- kts[2]
kts
ks <- head(keys(Drosophila.melanogaster, keytype=kts[2]))
ks
res <- select(Drosophila.melanogaster, keys=ks, columns=cls, keytype=kt)
head(res)
}

0 comments on commit e8213da

Please sign in to comment.