Package schrodinger :: Package structutils :: Module createfragments :: Class _Options
[hide private]
[frames] | no frames]

Class _Options

object --+
         |
        _Options

A class to hold a list of options. Mimics the object returned by parseargs.

Instance Methods [hide private]
 
__init__(self, atoms=2, bonds=100, smarts=None, carbon_hetero=False, maxatoms=200, removedup=False, murcko=False, recap=False, recap_use=None, complete=False, add_h=True, verbose=False)
Create an _Options object

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, atoms=2, bonds=100, smarts=None, carbon_hetero=False, maxatoms=200, removedup=False, murcko=False, recap=False, recap_use=None, complete=False, add_h=True, verbose=False)
(Constructor)

 

Create an _Options object

Parameters:
  • atoms (int) - Minimum number of non-hydrogen atoms in a fragment (default=2)
  • bonds (int) - Maximum number of broken bonds allowed in creating a fragment (default=100)
  • smarts (str) - Path to a file of SMARTS patterns (one per line) to identify and eliminate fragments containing undesired features.
  • carbon_hetero (bool) - Allows cutting of bonds between ring-carbon and hetero atoms (default=False)
  • maxatoms (int) - Maximum number of atoms allowed in molecule to be fragmented (default=200).
  • removedup (bool) - Keep only one copy of identical fragment but with different coordinates. (default=False)
  • murcko (bool) - Generate Murco Assembly scaffold instead of regular fragments. (default=False)
  • recap (bool) - Use RECAP rules to find bonds to break.
  • recap_use (list of int) - Specify which RECAP rules to use (default is to use all). Value must be a list of integers (example: [1, 2, 10, 11]).
  • complete (bool) - Retain the complete list of fragments created, including intermediates. Only works with RECAP rules. (Default: False)
  • complete (bool) - Add hydrogens to complete lewis structures. I some calses, you do not want to do this (Default: True)
  • verbose (bool) - True if progress should be logged, False if not
  • add_h (bool)
Overrides: object.__init__