Skip to content

Commit

Permalink
support logtGml #30
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejiang committed Dec 9, 2017
1 parent d064ea2 commit c018cf4
Show file tree
Hide file tree
Showing 5 changed files with 849 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/cytobank2GatingSet.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ compare.counts <- function(gs, file, id.vars = c("FCS Filename", "population")){
#load stats from cytobank
id.vars <- match.arg(id.vars)
variable.name <- ifelse(id.vars == "population", "FCS Filename", "population")
cytobank_counts <- fread(file, stringsAsFactors = FALSE)
cytobank_counts <- fread(file, stringsAsFactors = FALSE, blank.lines.skip = TRUE)

if(id.vars == "population"){
#modify column name because cytobank always put FCS filename
Expand Down
2 changes: 2 additions & 0 deletions R/graphGML_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ setMethod("getTransformations", signature = c(x = "graphGML"), function(x){
trans.obj <- asinhtGml2_trans(thisTrans@T, thisTrans@M, thisTrans@A)
}else if(extends(trans.type, "logicletGml2")){
trans.obj <- logicleGml2_trans(thisTrans@T, thisTrans@M, thisTrans@W, thisTrans@A)
}else if(extends(trans.type, "logtGml2")){
trans.obj <- logtGml2_trans(thisTrans@T, thisTrans@M)
}else
stop("Don't know how to inverse transformation: ", trans.type)

Expand Down
6 changes: 6 additions & 0 deletions inst/extdata/cytotrol_tcell_cytobank_logt_counts.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FCS Filename,CytoTrol_CytoTrol_1.fcs
cd3_EventCounts,56392
tsubUR_EventCounts,896
tsubUL_EventCounts,16721
tsubLL_EventCounts,2485
tsubLR_EventCounts,36290
Loading

0 comments on commit c018cf4

Please sign in to comment.