IMP logo
IMP Reference Guide  2.6.0
The Integrative Modeling Platform
IMP.pmi.io.crosslink.FilterOperator Class Reference

This class allows to create filter functions that can be passed to the CrossLinkDataBase in this way: More...

Inherits object.

Detailed Description

This class allows to create filter functions that can be passed to the CrossLinkDataBase in this way:

fo=FilterOperator(cldb.protein1_key,operator.eq,"AAA")|FilterOperator(cldb.protein2_key,operator.eq,"BBB")

where cldb is CrossLinkDataBase instance and it is only needed to get the standard keywords

A filter operator can be evaluate on a CrossLinkDataBase item xl and returns a boolean

fo.evaluate(xl)

and it is used to filter the database

Note
This class is only available in Python.

Definition at line 122 of file crosslink.py.

Public Member Functions

def __init__
 (argument1,operator,argument2) can be either a (keyword,operator.eq|lt|gt...,value) or (FilterOperator1,operator.or|and...,FilterOperator2) More...
 

Constructor & Destructor Documentation

def IMP.pmi.io.crosslink.FilterOperator.__init__ (   self,
  argument1,
  operator,
  argument2 
)

(argument1,operator,argument2) can be either a (keyword,operator.eq|lt|gt...,value) or (FilterOperator1,operator.or|and...,FilterOperator2)

we need to implement a NOT

Definition at line 138 of file crosslink.py.


The documentation for this class was generated from the following file: