Skip to content

Commit

Permalink
Add warning in getCistromeEnrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmen Bravo committed Jun 5, 2019
1 parent 91ebcae commit 577e0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/RcisTarget.R
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ getCistromeEnrichment <- function(
){
topicCistromes <- cisTopicObject@cistromes.regions[[topic]]

if (is.null(grep(TFname, names(topicCistromes)))){
if (length(grep(TFname, names(topicCistromes))) < 1){
stop(paste0('The specified cistrome cannot be found. Please, check whether there is a cistrome for ', TFname, ' in topic ', topic, ' with ', annotation, '.'))
}
else{
Expand Down

0 comments on commit 577e0d1

Please sign in to comment.