IMP Reference Guide
develop.1b08965de4,2025/02/17
The Integrative Modeling Platform
|
This class allows to create filter functions that can be passed to the CrossLinkDataBase in this way: More...
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
Definition at line 200 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... | |
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)
Definition at line 218 of file crosslink.py.