MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / _addDataProcessing

Function _addDataProcessing

src/pyOpenMS/pyTOPP/common.py:16–31  ·  view source on GitHub ↗
(item, params, action)

Source from the content-addressed store, hash-verified

14 return result
15
16def _addDataProcessing(item, params, action):
17 dp = item.getDataProcessing()
18 p = pms.DataProcessing()
19 p.setProcessingActions(set([action]))
20 sw = p.getSoftware()
21 sw.setName(os.path.basename(sys.argv[0]))
22 sw.setVersion(pms.VersionInfo.getVersion())
23 p.setSoftware(sw)
24 p.setCompletionTime(pms.DateTime.now()) # TODO: check if this is the reason for the many data processing entries
25
26 for k, v in params.asDict().items():
27 p.setMetaValue(b"parameter: "+k, v)
28
29 dp.append(p)
30 item.setDataProcessing(dp)
31 return item
32
33def writeParamsIfRequested(args, params):
34 if args.write_dict_ini or args.write_ini:

Callers 1

addDataProcessingFunction · 0.85

Calls 13

setProcessingActionsMethod · 0.95
setSoftwareMethod · 0.95
setCompletionTimeMethod · 0.95
DataProcessingMethod · 0.80
basenameMethod · 0.80
setVersionMethod · 0.80
nowMethod · 0.80
getDataProcessingMethod · 0.45
setNameMethod · 0.45
getVersionMethod · 0.45
setMetaValueMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected