本文整理汇总了Python中Constants.parseModifications方法的典型用法代码示例。如果您正苦于以下问题:Python Constants.parseModifications方法的具体用法?Python Constants.parseModifications怎么用?Python Constants.parseModifications使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Constants
的用法示例。
在下文中一共展示了Constants.parseModifications方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: open
# 需要导入模块: import Constants [as 别名]
# 或者: from Constants import parseModifications [as 别名]
AAs = Analytics.getAllAAs(heavySeq, ambigEdges=ambigEdges)
return True
else:
return False
except KeyError:
return False
if __name__ == '__main__' :
options = ArgLib.parse(['init', 'dtadir', 'config', 'model', 'output', 'columns', 'verbose', 'paircutoff', 'ppmsyserror', 'ppmstd', 'ppmpenalty', 'ambigpenalty', 'minedge', 'maxedge', 'alpha', 'subgraphcut', 'symbolmap', 'modalpha', 'unimoddict'])
epStep = 0.00025
maxEp = 0.1
# Any peptides generated using this dictionary will not have any static modifications
with open(options.unimoddict, 'r') as fin:
unimodDict = pickle.load(fin)
modAAsDict = Constants.parseModifications(unimodDict)
unimodPeptDict = Constants.getUnimodPeptDict(200, modAAsDict)
hashedMods = Constants.hashUnimodModAAsEpsilonRange(unimodPeptDict, epStep, maxEp)
modAAsDict['C-term'].update(modAAsDict['Anywhere'])
modAAsDict['N-term'].update(modAAsDict['Anywhere'])
paramsDict = ArgLib.parseInitFile(options.init, options)
with open(options.symbolmap, 'r') as fin:
symbolMap = pickle.load(fin)
seqMap = DataFile.generateSeqMap({'LADS Unit Test': 'LADS'}, symbolMap, paramsDict)
if options.columns:
with open(options.columns) as fin:
cols = pickle.load(fin)
else: