Skip to content

Commit

Permalink
closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
pfgherardini committed Sep 25, 2017
1 parent a213ff6 commit 23b5651
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: premessa
Type: Package
Title: R package for pre-processing of flow and mass cytometry data
Version: 0.1.1
Version: 0.1.2
Author: "Pier Federico Gherardini <pfgherardini@parkerici.org> [aut, cre]"
Description: This package includes panel editing/renaming for FCS files, bead-based normalization and debarcoding.
Imports: shiny (>= 0.14), flowCore, reshape, ggplot2, hexbin, gridExtra, rhandsontable
Expand Down
2 changes: 1 addition & 1 deletion R/paneleditor_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ rename_parameters_in_files <- function(working.dir, out.dir, tab) {
file.cols <- grep("Remove|Parameter", names(tab), invert = T)
for(i in file.cols) {
f.name <- file.path(working.dir, names(tab)[i])
print(sprintf("Processing %s ...", f.name))
fcs <- read_fcs(f.name)
to.remove <- row.names(tab)[tab$Remove]
if(length(to.remove) > 0)
Expand All @@ -127,7 +128,6 @@ rename_parameters_in_files <- function(working.dir, out.dir, tab) {
names.map <- tab$Parameter
names(names.map) <- row.names(tab)
fcs <- rename_fcs_parameters_name(fcs, names.map)

names.map <- tab[, i]
names(names.map) <- tab$Parameter
names.map <- names.map[!is.na(tab[, i])]
Expand Down
2 changes: 1 addition & 1 deletion inst/paneleditor_shinyGUI/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ shinyServer(function(input, output, session) {
isolate({
df <- rhandsontable::hot_to_r(input$paneleditorui_panel_table)
for(i in 1:ncol(df))
df[, i] <- gsub("NA", NA, df[, i])
df[, i] <- gsub("^NA$", NA, df[, i])
df$Remove <- as.logical(df$Remove)


Expand Down

0 comments on commit 23b5651

Please sign in to comment.