public class RowAbsentFilter<M extends Matrix2D<R,C,V>,R,C,V> extends AbstractFilter<M,R,C,V>
The flags can be 'A', 'P' or 'M', for absent, present and marginal, following the Affymetrix convention. By default, Marginal flags are counted as "absent", but this can be changed by the user.
log
Constructor and Description |
---|
RowAbsentFilter() |
Modifier and Type | Method and Description |
---|---|
M |
filter(M data)
The data is going to be filtered in accordance to strings in 'flags'.
|
void |
setFlagMatrix(StringMatrix<R,C> f) |
void |
setKeepMarginal(boolean k) |
void |
setMinPresentCount(int k) |
void |
setMinPresentFraction(double k) |
getOutputMatrix
public M filter(M data)
data
- The input matrixpublic void setFlagMatrix(StringMatrix<R,C> f)
f
- the matrix containing the flags.public void setKeepMarginal(boolean k)
k
- whether to count 'marginal' as 'present'. Default is false.public void setMinPresentCount(int k)
k
- the minimum number of present values there must be in order to keep the row.public void setMinPresentFraction(double k)
k
- the minimum fraction of present values that there must be, in order to keep the row.Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.