tools Package

Elastix Module

class WORC.tools.Elastix.Elastix[source]

Bases: object

__dict__ = mappingproxy({'__module__': 'WORC.tools.Elastix', '__init__': <function Elastix.__init__>, 'getparametermap': <function Elastix.getparametermap>, 'create_network': <function Elastix.create_network>, 'addchangeorder': <function Elastix.addchangeorder>, 'create_bbox': <function Elastix.create_bbox>, 'execute': <function Elastix.execute>, '__dict__': <attribute '__dict__' of 'Elastix' objects>, '__weakref__': <attribute '__weakref__' of 'Elastix' objects>, '__doc__': None})
__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'WORC.tools.Elastix'
__weakref__

list of weak references to the object (if defined)

addchangeorder()[source]
create_bbox(seg, pad=[2, 25, 25])[source]

Create a bounding box around an input segmentation with a certain padding

create_network(nettype)[source]
execute()[source]
getparametermap(model='affine', size=(512, 512, 128))[source]

Evaluate Module

class WORC.tools.Evaluate.Evaluate(label_type, ensemble=50, scores='percentages', parent=None, features=None, fastr_plugin='LinearExecution', name='Example')[source]

Bases: object

__dict__ = mappingproxy({'__module__': 'WORC.tools.Evaluate', '__init__': <function Evaluate.__init__>, 'create_network': <function Evaluate.create_network>, 'create_links_Standalone': <function Evaluate.create_links_Standalone>, 'create_links_Addon': <function Evaluate.create_links_Addon>, 'set': <function Evaluate.set>, 'execute': <function Evaluate.execute>, '__dict__': <attribute '__dict__' of 'Evaluate' objects>, '__weakref__': <attribute '__weakref__' of 'Evaluate' objects>, '__doc__': None})
__init__(label_type, ensemble=50, scores='percentages', parent=None, features=None, fastr_plugin='LinearExecution', name='Example')[source]

Build a network that evaluates the performance of an estimator.

network: fastr network, default None

If you input a network, the evaluate network is added to the existing network.

__module__ = 'WORC.tools.Evaluate'
__weakref__

list of weak references to the object (if defined)

create_network()[source]

Add evaluate components to network.

execute()[source]

Execute the network through the fastr.network.execute command.

set(estimator=None, pinfo=None, images=None, segmentations=None, config=None, features=None, sink_data={})[source]

Set the sources and sinks based on the provided attributes.

Slicer Module

class WORC.tools.Slicer.Slicer(images=None, segmentations=None, network=None, fastr_plugin='ProcessPoolExecution', name='Example')[source]

Bases: object

__dict__ = mappingproxy({'__module__': 'WORC.tools.Slicer', '__init__': <function Slicer.__init__>, 'create_network': <function Slicer.create_network>, 'set': <function Slicer.set>, 'execute': <function Slicer.execute>, '__dict__': <attribute '__dict__' of 'Slicer' objects>, '__weakref__': <attribute '__weakref__' of 'Slicer' objects>, '__doc__': None})
__init__(images=None, segmentations=None, network=None, fastr_plugin='ProcessPoolExecution', name='Example')[source]

Build a network that evaluates the performance of an estimator.

network: fastr network, default None

If you input a network, the evaluate network is added to the existing network.

__module__ = 'WORC.tools.Slicer'
__weakref__

list of weak references to the object (if defined)

create_network()[source]

Add evaluate components to network.

execute()[source]

Execute the network through the fastr.network.execute command.

set(images=None, segmentations=None, sink_data={})[source]

Set the sources and sinks based on the provided attributes.

Transformix Module

class WORC.tools.Transformix.Transformix[source]

Bases: object

__dict__ = mappingproxy({'__module__': 'WORC.tools.Transformix', '__init__': <function Transformix.__init__>, 'create_network': <function Transformix.create_network>, 'execute': <function Transformix.execute>, '__dict__': <attribute '__dict__' of 'Transformix' objects>, '__weakref__': <attribute '__weakref__' of 'Transformix' objects>, '__doc__': None})
__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'WORC.tools.Transformix'
__weakref__

list of weak references to the object (if defined)

create_network()[source]
execute()[source]

createfixedsplits Module

WORC.tools.createfixedsplits.createfixedsplits(label_file=None, label_type=None, patient_IDs=None, test_size=0.2, N_iterations=1, regression=False, stratify=None, modus='singlelabel', output=None)[source]

Create fixed splits for a cross validation.