def __init__(self, fragment_type=<NUM_LIT:3>, min_length=<NUM_LIT:2>, max_length=<NUM_LIT:10>, cgr_dynbonds=<NUM_LIT:0>, doallways=False,<EOL>useformalcharge=False, header=None, workpath='<STR_LIT:.>', version=None, verbose=False, remove_rare_ratio=<NUM_LIT:0>,<EOL>return_domain=False):
self.fragment_type = fragment_type<EOL>self.min_length = min_length<EOL>self.max_length = max_length<EOL>self.cgr_dynbonds = cgr_dynbonds<EOL>self.doallways = doallways<EOL>self.useformalcharge = useformalcharge<EOL>self.version = version<EOL>self.verbose = verbose<EOL>self.header = header<EOL>self.remove_rare_ratio = remove_rare_ratio<EOL>self.return_domain = return_domain<EOL>self.__init_header()<EOL>self.set_work_path(workpath)<EOL>
ISIDA Fragmentor wrapper

:param workpath: path for temp files.
:param version: fragmentor version. need for selecting Fragmentor executables named as fragmentor-{version}
:param header: if None descriptors will be generated on train set
               if False Fragmentor will work in headless mode. in this mod fit unusable and Fragmentor return
                   all found descriptors
               else path string to existing header file acceptable
:param remove_rare_ratio: if descriptors found on train less then given ratio it will be removed from header.
                          if partial fit used, be sure to use finalize method.
                          unusable if headless mode set
:param return_domain: add AD bool column. if False molecule has new features