pop.cutoff | R Documentation |
Once immune cell populations are identified, this function calculates a cutoff from the percentage (or raw counts).
pop.cutoff(
fcs.SCE,
assay.i = "normalized",
cell.clusters,
value = "percentage",
time.var,
event.var,
cutoff.type = "maxstat",
variables
)
fcs.SCE |
A |
cell.clusters |
Name of column containing clusters identified through |
value |
String specifying if final resuls should be proportions ("percentage", default) or raw counts ("counts"). |
time.var |
Survival time variable. |
event.var |
Variable with event censoring. |
cutoff.type |
Method for calculating survival cutoffs. Available methods are "maxstat" (default) |
variables |
Vector with variables for calculating the cutoff. If nothing is detailed ( |
There four available methods for cytoff calculation:
median
quantiles
is leveraged on quantile categorization.
maxstat
(default), based on maximally selected ranks statistics. It takes into account the survival time and censoring event for cutoff calculation.
roc
, the classical ROC-based calculation according Youden's index. It considerates the censoring event for categorizing.
Note: for accessing to cutoff values used for categorization...
`extract.cutoffs(your_cutoff_object)`
## Not run:
ct <- pop.cutoff(fcs.SCE = fcs, cell.clusters = "SOM_named", time.var = "PFS",
event.var = "PFS_c", cutoff.type = "quantiles")
extract.cutoffs(ct)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.