schrodinger.protein.process_enamine_db module

schrodinger.protein.process_enamine_db.parse_args()
schrodinger.protein.process_enamine_db.main(options)
schrodinger.protein.process_enamine_db.process_enamine_db(enamine_db_path, skip_minimization=False, allow_non_alpha_aa=False) tuple[list[schrodinger.structure._structure.Structure], Dict[int, str], Dict[int, str]]

Process Enamine database to extract only the amino acids that are compatible with mmshare workflows

Parameters
  • enamine_db_path – path to Enamine database

  • skip_minimization – if True, skip minimization step

  • allow_non_alpha_aa – if True, allow non-alpha amino acids to be processed

schrodinger.protein.process_enamine_db.get_built_in_aa_names() set[str]

Get the names of all built-in standard and non-standard amino acids

Returns

a set of built-in amino acid names

schrodinger.protein.process_enamine_db.get_reserved_aa_names() set[str]

Get amino acid names that are reserved for built-in amino acids or custom amino acids from the nonstandard amino acid panel residue sketcher

Returns

a set of reserved amino acid names

schrodinger.protein.process_enamine_db.contains_built_in_aa(st) bool

Check if an enamine residue structure contains any built-in amino acids

schrodinger.protein.process_enamine_db.get_unique_aa_names(reserved)

Generate unique amino acid names

Parameters

reserved – a set of reserved amino acid names that should not be generated

schrodinger.protein.process_enamine_db.get_natural_analog_map(residue_sts: list[schrodinger.structure._structure.Structure]) dict[str, tuple[str, float]]

Get a map of residue names to their natural analogs

Parameters

residue_sts – a list of processed residues

Returns

a map of Enamine amino acid names to their natural analogs

schrodinger.protein.process_enamine_db.write_preprocessed_tmp_db(res_sts: list[schrodinger.structure._structure.Structure], filename: str) None

Preprocess standard database to remove capping groups and standardize the backbone for comparison with enamine database

Residues in peptide.bld are stored as ACE-X-NMA tripeptides. This causes the canvas fingerprinting to produce scores of <1 even for residues with identical side chains, unless the residues are preprocessed accordingly

Parameters
  • res_sts – a list of residues structures

  • filename – output file path

schrodinger.protein.process_enamine_db.apply_natural_analog_properties(processed_residues: list[schrodinger.structure._structure.Structure]) None

Apply natural analog properties to processed residues

Parameters

processed_residues – a list of processed residues

schrodinger.protein.process_enamine_db.get_standardized_aa_structure(st, skip_minimization=False, allow_non_alpha_aa=False)

Standardize an amino acid structure by removing any solvent molecules, applying pdb atom names, and minimizing. Confirm the structure is a valid alpha amino acid and not a built-in amino acid.

Parameters
  • st – a structure containing a single amino acid

  • skip_minimization – if True, skip minimization step

  • allow_non_alpha_aa – if True, allow non-alpha amino acids to be processed

Raises

ValueError – if the structure is not a valid alpha amino acid for any reason

schrodinger.protein.process_enamine_db.process_one_aa(mol_st, skip_minimization=False, allow_non_alpha_aa=False)

Process a structure containing one molecule is a valid amio acid

Parameters
  • mol_st – a structure containing one molecule

  • skip_minimization – if True, skip minimization step

  • allow_non_alpha_aa – if True, allow non-alpha amino acids to be processed

Raises

ValueError – if the molecule is not a valid amino acid for any reason

schrodinger.protein.process_enamine_db.attempt_tripeptide_mutation(mol_st: schrodinger.structure._structure.Structure) schrodinger.structure._structure.Structure

Attempt to mutate the middle residue of a tripeptide to the residue in the provided structure. The final test to see if a residue is valid is to confirm that we can perform a mutation with it

Parameters

mol_st – a structure containing a single molecule

Returns

the tripeptide structure with the middle residue mutated, for debugging purposes

schrodinger.protein.process_enamine_db.set_res_name(st, name)

Set residue name for a structure

schrodinger.protein.process_enamine_db.write_residues_to_file(processed_residues: Iterable[schrodinger.structure._structure.Structure], output_filename: str) None

Write processed residues to a file

Parameters
  • processed_residues – a list of processed residues

  • output_filename – path to output file

schrodinger.protein.process_enamine_db.write_res_log_file(log_dict: Dict[int, str], filename: str) None