Skip to content

Commit 577e0d1

Browse files
author
Carmen Bravo
committed
Add warning in getCistromeEnrichment
1 parent 91ebcae commit 577e0d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/RcisTarget.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ getCistromeEnrichment <- function(
550550
){
551551
topicCistromes <- cisTopicObject@cistromes.regions[[topic]]
552552

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

0 commit comments

Comments
 (0)