From e8213da971116262164f4d658581918c1441c4d6 Mon Sep 17 00:00:00 2001 From: Pariksheet Nanda Date: Mon, 14 Nov 2016 16:21:34 -0500 Subject: [PATCH] REL: 0.1 --- DESCRIPTION | 15 +++++++++++++++ NAMESPACE | 2 ++ R/zzz.R | 7 +++++++ data/graphInfo.rda | Bin 0 -> 258 bytes man/Drosophila.melanogaster.Rd | 26 ++++++++++++++++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 DESCRIPTION create mode 100644 NAMESPACE create mode 100644 R/zzz.R create mode 100644 data/graphInfo.rda create mode 100644 man/Drosophila.melanogaster.Rd diff --git a/DESCRIPTION b/DESCRIPTION new file mode 100644 index 0000000..0af2997 --- /dev/null +++ b/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 +Maintainer: Pariksheet Nanda +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 diff --git a/NAMESPACE b/NAMESPACE new file mode 100644 index 0000000..cd1c973 --- /dev/null +++ b/NAMESPACE @@ -0,0 +1,2 @@ +# A NAMESPACE is strictly required by R 2.14 or higher. +import(OrganismDbi) diff --git a/R/zzz.R b/R/zzz.R new file mode 100644 index 0000000..ba63787 --- /dev/null +++ b/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) +} diff --git a/data/graphInfo.rda b/data/graphInfo.rda new file mode 100644 index 0000000000000000000000000000000000000000..6714a7315eaa6968d15704e17dc8b0e045b8f097 GIT binary patch literal 258 zcmV+d0sa0TiwFP!000001C3EpO9L?sj%`nFLt)@g@VyUv*dJJrGK3w>3B$L}i>KiA zq@A$)^V3*!(^F6%(tJt3G+)w{*-XcqF#rgVQh<;Im7wDU6pYA^>foLq7XH2^&P5`E zn2^tzkl9jKTMo|JP;1j@tbfm4uJ>k3Nqlm?tzFz<&^PnzxvrX-MjtJDWU8{|!Z6N@ z<$6`z9%ErkMyIw|7L*@~m(^oK?)*b`GWCs;6UDm*BVis74rG(WWeFrU_PG1R+5QT< zW6-4_Ri_0>zJMQos37axe=YiRtN+?y67$|nz4H5F@U6z}T%QOS+m~>MJOUiv0HI*d I=o|t70G?)kBLDyZ literal 0 HcmV?d00001 diff --git a/man/Drosophila.melanogaster.Rd b/man/Drosophila.melanogaster.Rd new file mode 100644 index 0000000..81b07f6 --- /dev/null +++ b/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) +}