Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Russel committed Mar 28, 2018
1 parent 68f9e8b commit 57f809c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/featurePlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ featurePlot <- function(data, predictor, paired = NULL, covars = NULL, feature =
if(!feature %in% rownames(count_table)) stop("feature not found in data")

# Relative and logscale
if(relative) count_table <- apply(count_table, 2, function(x) x/sum(x))
if(relative) count_table <- apply(count_table, 2, function(x) x/sum(x)) else count_table <- unclass(count_table)
if(logScale) count_table <- log10(count_table + delta)

# Dataframe
Expand Down

0 comments on commit 57f809c

Please sign in to comment.