scales | R Documentation |
Interact with scale endpoints. Data are rarely presented exactly as they were acquired on the instrument. Learn more about data scaling.
## S4 method for signature 'UserSession'
scales.list(
UserSession,
experiment_id,
output = "default",
timeout = UserSession@short_timeout
)
## S4 method for signature 'UserSession'
scales.show(
UserSession,
experiment_id,
scale_id,
output = "default",
timeout = UserSession@short_timeout
)
## S4 method for signature 'UserSession'
scales.update(
UserSession,
scale,
output = "default",
timeout = UserSession@short_timeout
)
UserSession |
Cytobank UserSession object |
experiment_id |
integer representing an experiment ID |
output |
character representing the output format [optional] |
timeout |
integer representing the request timeout time in seconds |
scale_id |
integer representing a scale ID |
scale |
dataframe representing a scale |
scales.list
List all scales from an experiment. Outputs a dataframe [default] or raw list with all fields present.
- Optional output parameter, specify one of the following: ("default", "raw")
scales.show
Show scale details from an experiment.
- Optional output parameter, specify one of the following: ("default", "raw")
scales.update
Update a single scale from an experiment.
(all parameters are optional, except for experiment_id and scale_id)
- Scale Types – 1: Linear, 2: Log, 4: Arcsinh
- Optional output parameter, specify one of the following: ("default", "raw")
## Not run: # Authenticate via username/password
cyto_session <- authenticate(site="premium", username="cyril_cytometry", password="cytobank_rocks!")
# Authenticate via auth_token
cyto_session <- authenticate(site="premium", auth_token="my_secret_auth_token")
## End(Not run)
## Not run: # Dataframe of all scales with all fields present
scales.list(cyto_session, 22)
# Raw list of all scales with all fields present
scales.list(cyto_session, 22, output="raw")
## End(Not run)
## Not run: scales.show(cyto_session, 22, scale_id=2)
## Not run: # Update any number of parameters (scale_type, cofactor, minimum, maximum)
# Scale Types -- 1: Linear, 2: Log, 4: Arcsinh
scales.update(cyto_session, scale=cyto_scale)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.