PEATSA/Tools/HIVTools/CombinationConverter.py
def codesToCombinations(mutationCodes):

	'''Converts a mutation code, which involves both chains, to a list of non-chain specific codes
	
	e.g. A84V+B84V+A32F+B32F => 84V, 32F'''

	holder = []
	for code in mutationCodes:
		mutationSet = Core.Data.MutationSet(code)
		holder.append(list(set([code[1:] for code in mutationSet.reducedMutationCodes()])))

	return holder
Converts a mutation code, which involves both chains, to a list of non-chain specific codes
	
	e.g. A84V+B84V+A32F+B32F => 84V, 32F
Converts a mutation code, which involves both chains, to a list of non-chain specific codes
e.g.
Converts a mutation code which involves both chains to a list of non - chain specific codes e . g .
def codesToCombinations(mutationCodes):
	holder = []
	for code in mutationCodes:
		mutationSet = Core.Data.MutationSet(code)
		holder.append(list(set([code[1:] for code in mutationSet.reducedMutationCodes()])))
	return holder
def codesToCombinations ( mutationCodes ) : holder = [ ] for code in mutationCodes : mutationSet = Core . Data . MutationSet ( code ) holder . append ( list ( set ( [ code [ 1 : ] for code in mutationSet . reducedMutationCodes ( ) ] ) ) ) return holder
Converts a mutation code, which involves both chains, to a list of non-chain specific codes
e.g.
Converts a mutation code which involves both chains to a list of non - chain specific codes e . g .
'''Converts a mutation code, which involves both chains, to a list of non-chain specific codes
	
	e.g. A84V+B84V+A32F+B32F => 84V, 32F'''
mutationCodes