Trees | Indices | Help |
|
---|
|
Mutates a set of residues in a protein structure allowing concurrent mutations as well as the option to limit concurrent mutations to sequential residues only.
Here is an example of a mutation of a Ser residue to: Asp, Glu, Asn, & Gln (one-letter codes are D, E, N, & Q respectively). The Ser residue is in chain A and has a residue number of 22. This example will write a file named 'mutated_structures.maegz' that has the reference structure as the first CT and each mutation CT after that. Five total structures will be in the output file:
from schrodinger import structure from schrodinger.application.bioluminate import protein # Get the input structure reference_st = structure.StructureReader('receptor.maegz').next() # Create the writer for the output file and append the reference writer = structure.StructureWriter('mutated_structures.maegz') writer.append(reference_st) # Define the residues and mutations residues = ['A:22'] muts = 'DENQ' # Get a compatible list of mutations. The above turns into # [('A', 22, 'DENQ')] mutations = protein.Mutator.convert_residue_list(residues, muts) # Construct the mutator mutator = protein.Mutator(st, mutations) # Loop over each mutation for mutation in mutator.generate(): # mutated_structure = mutation.struct residue_map = mutation.residue_map res_str = ", ".join(str(res) for res in residue_map.values()) print 'Residues affected by this mutation: %s' % res_str # Do something with the mutated structure (refine maybe) writer.append(mutated_structure)
To Do: Add logging
|
|||
|
|||
|
|||
|
|||
|
|||
generator |
|
||
|
|||
|
|
|||
|
|||
|
|||
list of tuples |
|
||
|
|||
list of tuples |
|
|
|||
MUTATIONS_PROPERTY = "s_bioluminate_Mutations"
|
|||
UNFOLDED_PROPERTY = "r_bioluminate_Unfolded_Contribution"
|
|||
UNFOLDED_PROPERTY_PRIME = "r_bioluminate_Unfolded_Contribution
|
|||
GXG_DATA = {"ALA":-100.736, "ARG":-118.478, "ARN":-118.478, "A
|
|||
GXG_DATA_PRIME = {"ALA":-112.635, "ARG":-142.467, "ARN":-142.4
|
|||
SUPPORTED_BUILD_RESIDUES = ['ALA', 'ARG', 'ASN', 'ASP', 'CYS',
|
|
See Also: For easy creation of mutations variable Mutator.convert_residue_list |
Method for validating the residues used in mutations passed in to the C{MutateProtein} class. @raise ValueError: If the 3-letter residue name is not supported by the L{build,mutate} method. @todo: Convert the return to raise a custom MutateProteinError. This will help in letting front-end know why it fails. @todo: Add validation for assuring chain and resnum are in self.struct |
Private method for validating the mutations passed in to the C{MutateProtein} class. @raise ValueError: If the C{mutations} passed in is not a list, if each item in the list is not a tuple, if the tuple is not of length 4 (chain, resnum idx, inscode, mutation resnames), if the resnum is not an integer, or any of the 3-letter residue names in "mutation resnames" is not supported by the L{build,mutate} method. @todo: Convert the return to raise a custom MutateProteinError. This will help in letting front-end know why it fails. @todo: Add validation for assuring chain and resnum are in self.struct |
The setter method for
|
Total number of mutations that will be generated
|
Converts lines in filename into a list of mutations to use. Returns a list of tuples where each tuple is ( "chain", "resnum", "inscode", "three-letter resnames for mutation"). Each line could be multiple mutations (one residue to multiple mutation states)
|
Converts lines in filename into a list of mutations to use. Returns a list of tuples where each tuple is ( "chain", "resnum", "inscode", "three-letter resnames for mutation"). Also supports loop insertion and deletion. Each line is one mutation (could be multiple residues) |
Convert a list of residues and mutations to a standard list of mutations. Returns a list of tuples where each tuple is ( "chain", "resnum", "inscode", "three-letter resnames for mutation").
|
Used to loop over all mutations. Each mutation consists of the mutated structure and a residue mapping dict. The structure is raw, that is, unrefined in any way.
|
|
UNFOLDED_PROPERTY_PRIME
|
GXG_DATA
|
GXG_DATA_PRIME
|
SUPPORTED_BUILD_RESIDUES
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:25 2015 | http://epydoc.sourceforge.net |