PEATSA/Core/Data.py
def mutationSetFromRotamerOperations(operations):

	'''Returns the MutationSet instance corresponding to operations.
	
	operations: 
		A list returned by MutantCollection::rotamerOperationsForMutant()
		
	Note: operations can't contain any whole residue deletions or insertions'''
		
	mutationSet = MutationSet()	
	codes = set()
	for operation, atomCode, atomData in operations:
		#Skip delete operations as the RESAME will be the original residue name
		if atomData != {} and operation != 'delete':
			chainId = atomData['CHAINID']
			residueIndex = atomData['RESNUM']
			mutation = atomData['RESNAME']
			residueCode = Utilities.CreateResidueCode(chain=chainId, number=residueIndex)
			if not residueCode in codes:
				mutationSet.addMutation(chain=chainId, residueIndex=residueIndex, mutation=mutation)
				codes.add(residueCode)
			
	return mutationSet
Returns the MutationSet instance corresponding to operations.
	
	operations: 
		A list returned by MutantCollection::rotamerOperationsForMutant()
		
	Note: operations can't contain any whole residue deletions or insertions
Returns the MutationSet instance corresponding to operations.

operations can't contain any whole residue deletions or insertions
Returns the MutationSet instance corresponding to operations . operations can ' t contain any whole residue deletions or insertions
def mutationSetFromRotamerOperations(operations):
	mutationSet = MutationSet()	
	codes = set()
	for operation, atomCode, atomData in operations:
		if atomData != {} and operation != 'delete':
			chainId = atomData['CHAINID']
			residueIndex = atomData['RESNUM']
			mutation = atomData['RESNAME']
			residueCode = Utilities.CreateResidueCode(chain=chainId, number=residueIndex)
			if not residueCode in codes:
				mutationSet.addMutation(chain=chainId, residueIndex=residueIndex, mutation=mutation)
				codes.add(residueCode)
	return mutationSet
def mutationSetFromRotamerOperations ( operations ) : mutationSet = MutationSet ( ) codes = set ( ) for operation , atomCode , atomData in operations : if atomData != { } and operation != 'delete' : chainId = atomData [ 'CHAINID' ] residueIndex = atomData [ 'RESNUM' ] mutation = atomData [ 'RESNAME' ] residueCode = Utilities . CreateResidueCode ( chain = chainId , number = residueIndex ) if not residueCode in codes : mutationSet . addMutation ( chain = chainId , residueIndex = residueIndex , mutation = mutation ) codes . add ( residueCode ) return mutationSet
Returns the MutationSet instance corresponding to operations.
Returns the MutationSet instance corresponding to operations .
'''Returns the MutationSet instance corresponding to operations.
	
	operations: 
		A list returned by MutantCollection::rotamerOperationsForMutant()
		
	Note: operations can't contain any whole residue deletions or insertions''' #Skip delete operations as the RESAME will be the original residue name
operations