GetIndices_BasedOnConditions: Search lines which respects request on one or more...

View source: R/missingValuesFilter.R

GetIndices_BasedOnConditionsR Documentation

Search lines which respects request on one or more conditions.

Description

This function looks for the lines that respect the request in either all conditions or at least one condition.

Usage

GetIndices_BasedOnConditions(metacell.mask, type, conds, percent, op, th)

Arguments

metacell.mask

xxx

type

Available values are: * 'AllCond' (the query is valid in all the conditions), * 'AtLeatOneCond' (the query is valid in at leat one condition.

conds

xxx

percent

xxx

op

String for operator to use. List of operators is available with SymFilteringOperators().

th

The theshold to apply

#' @examples utils::data(Exp1_R25_pept, package='DAPARdata') obj <- Exp1_R25_pept[1:10] level <- GetTypeofData(obj) pattern <- 'missing' metacell.mask <- match.metacell(metadata=GetMetacell(obj), pattern=pattern, level=level) type <- 'AllCond' conds <- Biobase::pData(obj)$Condition op <- '>=' th <- 0.5 percent <- TRUE ind <- GetIndices_BasedOnConditions(metacell.mask, type, conds, percent, op, th)


samWieczorek/DAPAR documentation built on May 6, 2022, 5:30 p.m.