Skip to content

Commit

Permalink
migrate to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
melsiddieg committed Nov 23, 2023
1 parent 57570be commit 0c5400a
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 243 deletions.
29 changes: 21 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,25 @@ biocViews: Annotation, VariantAnnotation
Lazy: TRUE
LazyData: TRUE
Encoding: UTF-8
Collate: 'commons.R' 'AllClasses.R' 'AllGenerics.R'
'AnnotateVcf-methods.R' 'CellBaseParam-methods.R'
'CellBaseR-methods.R' 'cellbase.R' 'getCellbase-methods.R'
'getChromosomeInfo-methods.R' 'getClinical-methods.R'
'getGene-methods.R' 'getMeta-methods.R' 'getProtein-methods.R'
'getRegion-methods.R' 'getSnp-methods.R' 'getTf-methods.R'
'getTranscript-methods.R' 'getVariant-methods.R'
'getXref-methods.R' 'show-methods.R' 'tools.R' 'user.R'
Collate:
'commons.R'
'AllClasses.R'
'AllGenerics.R'
'AnnotateVcf-methods.R'
'CellBaseParam-methods.R'
'CellBaseR-methods.R'
'cellbase.R'
'getCellbase-methods.R'
'getChromosomeInfo-methods.R'
'getClinical-methods.R'
'getGene-methods.R'
'getMeta-methods.R'
'getProtein-methods.R'
'getRegion-methods.R'
'getTranscript-methods.R'
'getVariant-methods.R'
'getXref-methods.R'
'show-methods.R'
'tools.R'
'user.R'
VignetteBuilder: knitr
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export(getConservationByRegion)
export(getGeneInfo)
export(getProteinInfo)
export(getRegulatoryByRegion)
export(getSnpByGene)
export(getTranscriptByGene)
export(getVariantAnnotation)
exportClasses(CellBaseParam)
Expand All @@ -21,8 +20,6 @@ exportMethods(getGene)
exportMethods(getMeta)
exportMethods(getProtein)
exportMethods(getRegion)
exportMethods(getSnp)
exportMethods(getTf)
exportMethods(getTranscript)
exportMethods(getVariant)
exportMethods(getXref)
Expand Down
6 changes: 1 addition & 5 deletions R/AllGenerics.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ standardGeneric("getRegion"))
###############################################################################

###############################################################################
setGeneric("getSnp", function(object,ids,resource,param=NULL)
standardGeneric("getSnp"))

###############################################################################

Expand All @@ -35,9 +33,7 @@ standardGeneric("getCellBase"))

###############################################################################

###############################################################################
setGeneric("getTf", function(object,ids,resource,param=NULL)
standardGeneric("getTf"))


###############################################################################

Expand Down
6 changes: 3 additions & 3 deletions R/getMeta-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ setMethod("getMeta", "CellBaseR", definition = function(object, resource){
result <- fetchCellbase(object=object, file=NULL, meta=meta, categ=categ,
subcateg=subcateg,
ids=ids, resource=resource, param=NULL)
data <- lapply(result, function(x)as.data.frame(x))
result <- rbind_pages(data)
return(result)
#data <- lapply(result, function(x)as.data.frame(x))
#result <- rbind_pages(data)
return(result[,c(1:4)])
})
46 changes: 0 additions & 46 deletions R/getSnp-methods.R

This file was deleted.

48 changes: 0 additions & 48 deletions R/getTf-methods.R

This file was deleted.

19 changes: 1 addition & 18 deletions R/user.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,7 @@ getGeneInfo <- function(object, id, param=NULL){
param = param)
res
}
##############################################################################
#' getSnpByGene
#'
#' A convienice method to fetch known variants (snps) for specific gene/s
#' @param object an object of class CellBaseR
#' @param id a charcter vector of HUGO symbol (gene names)
#' @param param an object of class CellBaseParam
#' @return a dataframe of the query result
#' @examples
#' cb <- CellBaseR()
#' param <- CellBaseParam(limit = 10)
#' res <- getSnpByGene(cb, "TET1", param = param)
#' @export
getSnpByGene <- function(object, id, param=NULL){

res <- getGene(object = object, ids = id, resource = "snp", param = param)
res
}

##############################################################################
#' getProteinInfo
#'
Expand Down
42 changes: 0 additions & 42 deletions man/getSnp-CellBaseR-method.Rd

This file was deleted.

26 changes: 0 additions & 26 deletions man/getSnpByGene.Rd

This file was deleted.

42 changes: 0 additions & 42 deletions man/getTf-CellBaseR-method.Rd

This file was deleted.

2 changes: 0 additions & 2 deletions vignettes/cellbaseR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ The cellbaseR package
provide many methods to query the cellbase webservices, they include:

- getGene
- getSnp
- getProtein
- getTranscript
- getRegion
Expand Down Expand Up @@ -116,7 +115,6 @@ queries. These include:
- getClinicalByGene
- getTranscriptByGene
- getGeneInfo
- getSnpByGene
- getProteinInfo
- getClinicalByRegion
- getConservationByRegion
Expand Down

0 comments on commit 0c5400a

Please sign in to comment.