mmtfPyspark.filters.containsRnaChain module

containsRnaChain.py

This filter passes entries that contain RNA chains. The default constructor passes entries that contain at least one RNA chain. If the “exclusive” flag is set to true in the constructor, all polymer chains must be RNA. For a multi-model structure (e.g., NMR structure), this filter only checks the first model.

class ContainsRnaChain(exclusive=False)[source]

Bases: object

Default constructor matches any entry that contains at least one RNA chain. As an example, an RNA-protein complex passes this filter.

Optional constructor that can be used to filter entries that exclusively contain DNA chains. For example, with “exclusive” set to true, an RNA-protein complex complex does not pass this filter.

Parameters:

exclusive : bool

if true, only return entries that contain RNA chains

Methods

__call__(t) Call self as a function.