Description Usage Arguments Details Value Author(s) See Also Examples
Filters trajectory features that are detected in a minimum number of samples.
1 | filterTrajFeaturesByDL(sce, threshold, show_plot = TRUE)
|
sce |
An |
threshold |
Minimum number of samples; if value < 1 it is interpreted as fraction, otherwise as absolute sample count |
show_plot |
Indicates if plot should be shown (default: TRUE) |
The detection level denotes the fraction of samples in which a
feature was detected. For each trajectory feature listed in the
CellTrailsSet object the relative number of samples having a feature
expression value greater than 0 is counted. Features that are expressed in
a fraction of all samples greater than threshold
remain labeled as
trajectory feature as listed in the SingleCellExperiment
object,
otherwise they may be not considered for dimensionality reduction,
clustering, and trajectory reconstruction. If the parameter threshold
fullfills threshold
>= 1 it becomes converted to a relative
fraction of the total sample count. Please note that spike-in controls
are ignored and are not listed as trajectory features.
A character
vector
Daniel C. Ellwanger
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Example data
set.seed(1101)
dat <- simulate_exprs(n_features=15000, n_samples=100)
# Create container
alist <- list(logcounts=dat)
sce <- SingleCellExperiment(assays=alist)
# Filter features
tfeat <- filterTrajFeaturesByDL(sce, threshold=2)
head(tfeat)
# Set trajectory features to object
trajFeatureNames(sce) <- tfeat
# Number of features
length(trajFeatureNames(sce)) #filtered
nrow(sce) #total
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.