RemoveSparseFeatures: Removes features with a lot of 0 counts
Description
This function deals with zero counts in the counts dataset.
If for a feature, the proportion of zeros across the
samples is greater than filter_prop, then we remove the feature.
Usage
RemoveSparseFeatures(data, filter_prop = 0.9)
Arguments
data
count data in a sample by feature matrix.
filter_prop
threshold proportion. If the proportion of zeros for
the feature exceeds this threshold then we remove the
feature altogether. Default is 0.9.
Value
Returns a list with
data
filtered data with sparse features removed
sparse_features
the feature names of the features
found sparse and removed