Skip to content

Commit

Permalink
check for valid annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
afust committed Sep 14, 2017
1 parent c38e86d commit d15bcd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/uropa_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ features <- c()
# stats is based on annoted peaks -> remove na rows
df.uropa.final[,"distance"] <- as.numeric(df.uropa.final[,"distance"])
df.uropa.final <- df.uropa.final[complete.cases(df.uropa.final),]
if(nrow(df.final)==0){
stop("No valid peak annotations with specified query/queries, summary unfeasible!")
}
anno.peaks <- nrow(df.uropa.final)
# get infos from config for overview page
config <- fromJSON(conf)
Expand Down

0 comments on commit d15bcd3

Please sign in to comment.