cluster_manually.Rd
Cluster the cells using a manual cutoff
cluster_manually(ts, value, cutoff, transform = identity)
ts | A tissue slide object. |
---|---|
value | The name of the column to use for classification. (enquoted) |
cutoff | A value to use as the cutoff point for the manual classification of the cells. |
transform | A callable (function) the apply to the data before classification. |
The tissue slide object with a value in the "manual_classification" attribute.
pancreas_slide <- tissue_slide(pancreas) pancreas_slide <- cluster_manually(pancreas_slide, fitc, cutoff = 4, transform = log10 ) get_manual_classification(pancreas_slide)#> [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 #> [38] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 #> [75] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 2 2 1 1 1 1 #> [ reached getOption("max.print") -- omitted 66931 entries ] #> attr(,"cutoff") #> [1] 4 #> attr(,"transform") #> function (x) .Primitive("log10") #> Levels: 1 2