I am trying to mutate a pose with beta-amino acid residues. From what I've tried and read, it's impossible with both mutate_residue and MutateResidue mover, because they only take one letter representations of the residues. My hope is that I can figure out how to do it through packing. I'm not sure how to make it work properly.
This was just my test code to see what would work:
pose = pose_from_sequence('A'*20)
test_pose = Pose()
mutant_position = 3
from pyrosetta.rosetta.core.pack.palette import CustomBaseTypePackerPalette
pp = CustomBaseTypePackerPalette()
tf = pyrosetta.rosetta.core.pack.task.TaskFactory()
packer = pyrosetta.rosetta.core.pack.task.PackerTask()
I don't know that kind of operations should be added here. How to specify which position will be changed and make sure it's going to be changed to the residue I want? I did read the mutants script and the ALA scan script, but I still don't understand this...
I will be grateful for any help!! Thank you