本文整理汇总了Python中Constants.getMass方法的典型用法代码示例。如果您正苦于以下问题:Python Constants.getMass方法的具体用法?Python Constants.getMass怎么用?Python Constants.getMass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Constants
的用法示例。
在下文中一共展示了Constants.getMass方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getReferenceSequence
# 需要导入模块: import Constants [as 别名]
# 或者: from Constants import getMass [as 别名]
refSeqDict = {}
for reference in refList:
refSeqDict[reference] = getReferenceSequence(seqDict[reference[0]], subjSequence, start=reference[1]-1, end=reference[2])
scanData['DB Peptide'] = refSeqDict
scanData['References'] = [ref[0] for ref in refList]
else:
modLists = {}
refDict = {}
for reference in refList:
ntermMass, ctermMass = 0, 0
if int(entry['Query Start']) > 1:
ntermMass = Constants.getMass(scanData['Unmod Peptide'][:int(entry['Query Start'])-1]) + 250
if int(entry['Query End']) < len(scanData['Unmod Peptide']):
ctermMass = Constants.getMass(scanData['Unmod Peptide'][int(entry['Query End']):]) + 250
extendedSequence = getExtendedSequence(seqDict, reference, nTermMass, cTermMass)
if extendedSequence not in modLists:
dbPept, modList, maxScore = alignDeNovoToDBSequence(scanData['Peptide'], scanData['Unmod Peptide'], extendedSequence, spec, hashedUnimodDict, unimodDict, paramsDict, deNovoAmbigEdges = ambigEdges, tagLength=2, isobaricPenalty=-0.5, defModPenalty=-1, inDelPenalty=-3, undefModPenalty=-3, defaultScore=0)
modLists[extendedSequence] = [dbPept, modList, maxScore]
refDict[extendedSequence] = [reference]
else:
refDict[extendedSequence] += [reference]