Skip to content

Commit

Permalink
sometimes need to explicitly cast to character
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdavid committed May 28, 2015
1 parent 019bdc6 commit b0aa5c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: MAST
Type: Package
Title: Model-based Analysis of Single Cell Transcriptomics
Version: 0.930
Date: 2015-05-26
Version: 0.931
Date: 2015-05-28
Author: Andrew McDavid <[email protected]>, Greg Finak
<[email protected]>, Masanao Yajima <[email protected]>
Maintainer: Greg Finak <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion R/ZlmFit.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ setMethod('summary', signature=c(object='ZlmFit'), function(object, logFC=TRUE,
names(llrt) <- doLRT
llrt <- data.table(melt(llrt))
setnames(llrt, c('test.type', 'L1', 'value'), c('component', 'contrast', 'Pr(>Chisq)'))
llrt[,component := c(disc='D', cont='C', hurdle='H')[component]]
llrt[,':='(component=c(disc='D', cont='C', hurdle='H')[component],
primerid=as.character(primerid))]
setkey(llrt, primerid, component, contrast)
setkey(dt, primerid, component, contrast)
dt <- merge(llrt, dt, all.x=TRUE, all.y=TRUE)
Expand Down

0 comments on commit b0aa5c8

Please sign in to comment.