IMP logo
IMP Reference Guide  develop.cc86c9801d,2022/11/22
The Integrative Modeling Platform
IMP.pmi1.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 211 of file /io/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.pmi1.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)

Definition at line 227 of file /io/crosslink.py.


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