Class RowNameFilter<M extends Matrix2D<R,C,V>,R,C,V>

java.lang.Object
ubic.basecode.datafilter.AbstractFilter<M,R,C,V>
ubic.basecode.datafilter.RowNameFilter<M,R,C,V>
All Implemented Interfaces:
Filter<M,R,C,V>

public class RowNameFilter<M extends Matrix2D<R,C,V>,R,C,V> extends AbstractFilter<M,R,C,V>
Remove or retain rows that are on a list.
Author:
Paul Pavlidis
  • Constructor Details

    • RowNameFilter

      public RowNameFilter()
    • RowNameFilter

      public RowNameFilter(Set<R> namesToFilter)
      Parameters:
      namesToFilter -
    • RowNameFilter

      public RowNameFilter(Set<R> namesToFilter, boolean exclude)
      Parameters:
      namesToFilter -
      exclude - Set to true if you want the list to indicate items to be skipped, rather than selected.
  • Method Details

    • filter

      public M filter(M data)
      Filter according to row names.
      Parameters:
      data -
      Returns:
    • setFilterNames

      public void setFilterNames(Set<R> namesToFilter, boolean exclude)