SmartsFilter

pydantic model openff.qcsubmit.workflow_components.SmartsFilter[source]

Filters molecules based on if they contain certain smarts substructures.

Note

  • The smarts tags used for filtering should be numerically tagged in order to work with the toolkit.

  • The options allowed_substructures and filtered_substructures are mutually exclusive.

Show JSON schema
{
   "title": "SmartsFilter",
   "description": "Filters molecules based on if they contain certain smarts substructures.\n\nNote:\n    * The smarts tags used for filtering should be numerically tagged in order to work with the toolkit.\n    * The options ``allowed_substructures`` and ``filtered_substructures`` are mutually exclusive.",
   "type": "object",
   "properties": {
      "type": {
         "title": "Type",
         "default": "SmartsFilter",
         "enum": [
            "SmartsFilter"
         ],
         "type": "string"
      },
      "allowed_substructures": {
         "title": "Allowed Substructures",
         "description": "The list of allowed substructures which should be tagged with indices.",
         "type": "array",
         "items": {
            "type": "string"
         }
      },
      "filtered_substructures": {
         "title": "Filtered Substructures",
         "description": "The list of substructures which should be filtered.",
         "type": "array",
         "items": {
            "type": "string"
         }
      }
   }
}

Config
  • allow_mutation: bool = True

  • validate_assignment: bool = True

Fields
  • allowed_substructures (Optional[List[str]])

  • filtered_substructures (Optional[List[str]])

  • type (Literal['SmartsFilter'])

Validators
  • _validate_mutually_exclusive » all fields

field type: Literal['SmartsFilter'] = 'SmartsFilter'
Validated by
  • _validate_mutually_exclusive

field allowed_substructures: Optional[List[str]] = None

The list of allowed substructures which should be tagged with indices.

Validated by
  • _validate_mutually_exclusive

  • check_environments

field filtered_substructures: Optional[List[str]] = None

The list of substructures which should be filtered.

Validated by
  • _validate_mutually_exclusive

  • check_environments

classmethod description()[source]

Returns a friendly description of the workflow component.

Return type

str

classmethod fail_reason()[source]

Returns a friendly description of why a molecule would fail to pass the component.

Return type

str

classmethod properties()[source]

Returns the runtime properties of the component such as parallel safe.

Return type

openff.qcsubmit.common_structures.ComponentProperties