Skip to content

Commit

Permalink
Fixes as suggested by Samuel Granjeaud
Browse files Browse the repository at this point in the history
  • Loading branch information
svgassen committed Sep 20, 2018
1 parent e32a5b7 commit 7d1fcfc
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 20 deletions.
48 changes: 33 additions & 15 deletions R/3_buildMST.R
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,17 @@ PlotMarker <- function(fsom, marker=NULL, view="MST",main=NULL,
backgroundBreaks = NULL,
backgroundLim = NULL){
switch(view,
MST = { layout <- fsom$MST$l
lty <- 1},
grid = { layout <- as.matrix(fsom$map$grid)
lty <- 0},
tSNE = { layout <- fsom$MST$l2
lty <- 0}
MST = {
layout <- fsom$MST$l
lty <- 1
}, grid = {
layout <- as.matrix(fsom$map$grid)
lty <- 0
}, tSNE = {
layout <- fsom$MST$l2
lty <- 0
}, stop("The view should be MST, grid or tSNE. tSNE will only work
if you specified this when building the MST.")
)

# Choose background colour
Expand Down Expand Up @@ -366,7 +371,9 @@ PlotVariable <- function(fsom, variable, view="MST",main=NULL,
grid = { layout <- as.matrix(fsom$map$grid)
lty <- 0},
tSNE = { layout <- fsom$MST$l2
lty <- 0}
lty <- 0},
stop("The view should be MST, grid or tSNE. tSNE will only work
if you specified this when building the MST.")
)

# Choose background colour
Expand Down Expand Up @@ -487,7 +494,9 @@ PlotSD <- function(fsom,
grid = { layout <- as.matrix(fsom$map$grid)
lty <- 0},
tSNE = { layout <- fsom$MST$l2
lty <- 0}
lty <- 0},
stop("The view should be MST, grid or tSNE. tSNE will only work
if you specified this when building the MST.")
)

# Choose background colour
Expand Down Expand Up @@ -609,7 +618,9 @@ PlotNumbers <- function(fsom, view="MST",main=NULL,nodeSize=fsom$MST$size,
grid = { layout <- as.matrix(fsom$map$grid)
lty <- 0},
tSNE = { layout <- fsom$MST$l2
lty <- 0}
lty <- 0},
stop("The view should be MST, grid or tSNE. tSNE will only work
if you specified this when building the MST.")
)

# Choose background colour
Expand Down Expand Up @@ -696,7 +707,9 @@ PlotLabels <- function(fsom,
grid = { layout <- as.matrix(fsom$map$grid)
lty <- 0},
tSNE = { layout <- fsom$MST$l2
lty <- 0}
lty <- 0},
stop("The view should be MST, grid or tSNE. tSNE will only work
if you specified this when building the MST.")
)

# Choose background colour
Expand Down Expand Up @@ -816,7 +829,9 @@ PlotPies <- function(fsom,
grid = { layout <- as.matrix(fsom$map$grid)
lty <- 0},
tSNE = { layout <- fsom$MST$l2
lty <- 0}
lty <- 0},
stop("The view should be MST, grid or tSNE. tSNE will only work
if you specified this when building the MST.")
)

# Choose background colour
Expand Down Expand Up @@ -1155,7 +1170,9 @@ PlotStars <- function(fsom,
grid = { layout <- as.matrix(fsom$map$grid)
lty <- 0},
tSNE = { layout <- fsom$MST$l2
lty <- 0}
lty <- 0},
stop("The view should be MST, grid or tSNE. tSNE will only work
if you specified this when building the MST.")
)

# Choose background colour
Expand Down Expand Up @@ -1757,9 +1774,10 @@ FlowSOMSubset <- function(fsom,ids){
#'
#' New data from a flowframe is mapped to an existing FlowSOM
#' object. A new FlowSOM object is created, with the same grid, but a new
#' mapping, node sizes and mean values. We assume the data is already
#' compensated and transformed, but not scaled yet. The same scaling parameters
#' as from the original grid will be used.
#' mapping, node sizes and mean values. The same preprocessing steps (compensation,
#' tranformation and scaling) will happen to this file as was specified in the
#' original FlowSOM call. The scaling parameters from the original grid will be
#' used.
#'
#' @param fsom FlowSOM object
#' @param ff Flow frame with the data to map
Expand Down
6 changes: 5 additions & 1 deletion man/AggregateFlowFrames.Rd

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

7 changes: 4 additions & 3 deletions man/NewData.Rd

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

4 changes: 3 additions & 1 deletion man/PlotOverview2D.Rd

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

0 comments on commit 7d1fcfc

Please sign in to comment.