Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/pepkit/BiocProject into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
stolarczyk committed Apr 18, 2019
2 parents 381d364 + 4ae6086 commit 420c96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ BiocProject = function(file, subproject = NULL, autoLoad = TRUE, func = NULL,
if(methods::is(object, "Annotated")){
S4Vectors::metadata(object) = list(PEP=pep)
} else{
warning("To fully exploit features of BiocProject package, the object returned by the data processing function should be of class 'Annotated'. Got '",
class(object),"' instead.")
warning("BiocProject expects data loading functions to return an 'Annotated' object, but your function returned a '",
class(object),"' object. To use an Annotated, this returned object has been placed in the first slot of a List")
result = S4Vectors::List(result=object)
S4Vectors::metadata(result) = list(PEP=pep)
object = result
Expand Down

0 comments on commit 420c96c

Please sign in to comment.