PEATSA/Core/Utilities.py
def WhatIfCommandBoilerPlate(inputFile, renumber=False):
	
	'''Returns the following string
	
	getmol PDBName
	Y
	1
	set
	%renum
	tot
	1
	
	The last three lines are omitted by default.
	PDBName is the last path component of inputFile'''
	
	command='getmol '+os.path.split(inputFile)[1]+' \n Y \n 1\n set \n'
	if renumber:
		command=command+' %renumb \n tot \n 1 \n '
		
	return command
Returns the following string
	
	getmol PDBName
	Y
	1
	set
	%renum
	tot
	1
	
	The last three lines are omitted by default.
	PDBName is the last path component of inputFile
Returns the following string
getmol PDBName
Y
1
set
%renum
tot
1

The last three lines are omitted by default.
PDBName is the last path component of inputFile
Returns the following string getmol PDBName Y 1 set %renum tot 1 The last three lines are omitted by default . PDBName is the last path component of inputFile
def WhatIfCommandBoilerPlate(inputFile, renumber=False):
	command='getmol '+os.path.split(inputFile)[1]+' \n Y \n 1\n set \n'
	if renumber:
		command=command+' %renumb \n tot \n 1 \n '
	return command
def WhatIfCommandBoilerPlate ( inputFile , renumber = False ) : command = 'getmol ' + os . path . split ( inputFile ) [ 1 ] + ' \n Y \n 1\n set \n' if renumber : command = command + ' %renumb \n tot \n 1 \n ' return command
Returns the following string
getmol PDBName
Y
1
set
%renum
tot
1
Returns the following string getmol PDBName Y 1 set %renum tot 1
'''Returns the following string
	
	getmol PDBName
	Y
	1
	set
	%renum
	tot
	1
	
	The last three lines are omitted by default.
	PDBName is the last path component of inputFile'''
inputFile
renumber