Description Usage Arguments Details See Also Examples
View source: R/GatingSetToCOMPASS.R
This code expects a GatingSet
or GatingSetList
.
It expects a regular expression for the node name
(i.e. '/4\+$' would match '/4+' in a node name with the plus
sign at the end of the string. Alternatively, you can supply a
partial path.
The user must supply the 'individual_id', which has the default value suitable for the data we commonly see.
'sample_id' is the 'rownames' of 'pData' of 'GatingSet'.
Sometimes the child node names don't match the marker names exactly.
This function will try to make some guesses about how to match these up.
The filter.fun
parameter is a function that does some regular expression string
substitution to try and clean up the node names by removing
various symobls that are often added to gates, {+/-}. The user can provide their
own function to do string cleanup.
Counts are extracted as well as metadata and single cell data, and these are fed into the
COMPASSContainer
constructor.
1 2 3 4 5 6 7 8 9 10 11 |
gs |
a |
node |
a |
filter.fun |
a |
individual_id |
a |
mp |
a |
matchmethod |
a |
markers |
a |
swap |
a |
countFilterThreshold |
|
There is likely not sufficient error checking.
1 2 3 4 5 | ## Not run:
## gs is a GatingSet from flowWorkspace
COMPASSContainerFromGatingSet(gs, "4+")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.