getEvents | R Documentation |
Retrieves events from an FCS file or gated population as either an FCS or TSV file. Optionally transfers directly to S3-compatible storage.
getEvents(
experimentId,
fcsFileId,
populationId = NULL,
compensation = NULL,
compensatedQ = FALSE,
headerQ = TRUE,
format = "FCS",
destination = NULL,
overwrite = FALSE,
subsampling = list(),
addEventNumber = FALSE
)
experimentId |
ID of experiment or a |
fcsFileId |
ID of FCS file or a |
populationId |
Optional ID of population or a |
compensation |
ID of compensation or special compensation type
( |
compensatedQ |
If |
headerQ |
for TSV format only: if true, file will contain a header row. |
format |
One of "TSV" or "FCS". |
destination |
Optional destination for the file. If omitted, the result will be returned as a binary blob (if If a string, the result will be written to disk. If a
|
overwrite |
Optional, if a destination is a string, allows destination file to be overwritten. |
subsampling |
Optional, subsampling parameters in the form
|
addEventNumber |
Optional. Add an event number column to the exported
file. When a |
Tip: FCS files are more compact than TSV files. Use that format for faster downloads. Use a library such as flowCore to parse FCS files.
## Not run:
# Returns the FCS file as a binary blob (requires parsing before use):
getEvents(experimentId, fcsFileId)
# Returns a data.frame:
getEvents(experimentId, fcsFileId, populationId, format = "TSV")
# Saves as an FCS file to disk:
getEvents(experimentId, fcsFileId, destination = "/path/to/output.fcs")
# Saves as a TSV file to disk:
getEvents(experimentId, fcsFileId, destination = "/path/to/output.tsv", format = "TSV")
# Subsamples and gates to only contain events in the specified population:
subsampling <- list(preSubsampleN = 5000, seed = 1.5)
getEvents(experimentId, fcsFileId, populationId, subsampling = subsampling)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.