Skip to content

Commit

Permalink
Fixed bug in gene expression overlay plots
Browse files Browse the repository at this point in the history
  • Loading branch information
innesbre committed Feb 20, 2019
1 parent 7a70dc1 commit 8b6f7f2
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 157 deletions.
8 changes: 4 additions & 4 deletions R/runViz.R
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ runShiny <- function(filePath,outPath,cellMarkers,annotationDB,rownameKeytype,..
"then select the gene from the drop-down list.",sep="\n"))
} else {
plot_tsne(cell_coord=getEmb(inD,"tsne"),
md=getExpr(eb1S)[input$goi1,],
md=getExpr(inD,Param(sCVdL[[1]],"assayType"))[input$goi1,],
md_title=geneNameGOI1(),
md_log=F,
label=switch(as.character(input$plotLabel1),
Expand Down Expand Up @@ -1535,7 +1535,7 @@ runShiny <- function(filePath,outPath,cellMarkers,annotationDB,rownameKeytype,..
"then select the gene from the drop-down list.",sep="\n"))
} else {
plot_tsne(cell_coord=getEmb(inD,"tsne"),
md=getExpr(eb1S)[input$goi2,],
md=getExpr(inD,Param(sCVdL[[1]],"assayType"))[input$goi2,],
md_title=geneNameGOI2(),
md_log=F,
label=switch(as.character(input$plotLabel2),
Expand All @@ -1554,7 +1554,7 @@ runShiny <- function(filePath,outPath,cellMarkers,annotationDB,rownameKeytype,..
if (input$plotClust2 == "goi" & !is.null(input$goi1)) {
pdf(file,width=7,height=7)
plot_tsne(cell_coord=getEmb(inD,"tsne"),
md=getExpr(eb1S)[input$goi1,],
md=getExpr(inD,Param(sCVdL[[1]],"assayType"))[input$goi1,],
md_title=geneNameGOI1(),
md_log=F,
label=switch(as.character(input$plotLabel1),
Expand All @@ -1573,7 +1573,7 @@ runShiny <- function(filePath,outPath,cellMarkers,annotationDB,rownameKeytype,..
if (input$plotClust2 == "goi" & !is.null(input$goi2)) {
pdf(file,width=7,height=7)
plot_tsne(cell_coord=getEmb(inD,"tsne"),
md=getExpr(eb1S)[input$goi2,],
md=getExpr(inD,Param(sCVdL[[1]],"assayType"))[input$goi2,],
md_title=geneNameGOI2(),
md_log=F,
label=switch(as.character(input$plotLabel2),
Expand Down
120 changes: 60 additions & 60 deletions man/CalcCGS.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

186 changes: 93 additions & 93 deletions man/CalcDEvsRest.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b6f7f2

Please sign in to comment.