|
IMP Reference Guide
2.23.0
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 204 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 222 of file crosslink.py.