Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gegnew committed Aug 1, 2021
1 parent d185da0 commit f041008
Show file tree
Hide file tree
Showing 10 changed files with 302 additions and 183 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ export(setServer)
export(updateExperiment)
export(updateGate)
export(updateGateFamily)
export(updateScaleSets)
export(uploadAttachment)
export(uploadFcsFile)
24 changes: 24 additions & 0 deletions R/convertFlowCore.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,27 @@ convertFromFlowCore <- function (flowObject, scaleSet, name=NULL) {
}
)
}

# this is a pretty annoying function
# appendToScaleSet <- function (tl) {
# browser()
# scales = c()
# channels = names(tl@transforms)
# mapply(
# function (tf) {

# tf@f
# _scale = list(channelName = tf@input)
# },
# tl@transforms
# )
# list(
# `_id` = "foo",
# experimentId = "bar",
# name = tl@transformationId,
# scales = scales,
# )
# }

scaleSetToTransformList <- function (scaleSet) {
}
21 changes: 21 additions & 0 deletions R/updateScaleSets.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#' Update scale set
#'
#' Updates a scale set.
#'
#' @param experimentId ID of experiment.
#' @param properties Properties to set on the gate.
#' @param params Optional query parameters.
#' @export
#' @examples
#' \dontrun{
#' updateScaleSets(experimentId, gid, list("name" = "new gate name"))
#' }

updateScaleSets = function(experimentId, gid, properties = list(), params = list()) {
checkDefined(experimentId)
checkDefined(gid)
experimentId = lookupByName("experiments", experimentId)
body = jsonlite::toJSON(properties, null = "null")
base = paste("experiments", experimentId, "scalesets", sep = "/")
basePatch(url, body, params)
}
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ reference:
- title: Scales
contents:
- getScaleSets
- updateScaleSets
- applyScale

- title: Compensations
Expand Down
14 changes: 14 additions & 0 deletions man/covarToParameters.Rd

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

30 changes: 15 additions & 15 deletions man/downloadFcsFiles.Rd

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

6 changes: 4 additions & 2 deletions man/getFcsFiles.Rd

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

23 changes: 23 additions & 0 deletions man/updateScaleSets.Rd

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

Loading

0 comments on commit f041008

Please sign in to comment.